Home HTML →True Basic →Chapter 1 →Chapter 1_2 →Chapter 2 →Chapter 3 →Chapter 4 →Chapter 5 →Linear Functions Program Article Reviews |
! Jeremy Fallick ! September 9, 2004 ! Period 6 ! Chapter 1, Problem 3 let side1=3.152 let side2=5.67 let area=side1*side2 print "Given a rectangle with one side"; side1 print "feet long, and the other side"; side2 print "feet long, the area would be"; area print "square feet." end ! Jeremy Fallick ! September 9, 2004 ! Period 6 ! Chapter 1, Problem 4 let side=124 let height=73 let volume=side^2*height/3 print "Given a square pyramid with each side"; side print "feet long, and a height of"; height print "feet, the volume will be"; volume print "cubic feet." end ! Jeremy Fallick ! September 9, 2004 ! Period 6 ! Chapter 1, Problem 5 let start_miles=43276 let end_miles=44871 let gallons_of_gas=62.3 let miles_driven=end_miles-start_miles let miles_per_gallon=miles_driven/gallons_of_gas print "If the odometer started at"; start_miles print "miles, and ended at"; end_miles print "miles, and"; gallons_of_gas print "gallons of gas were used, then the car got"; miles_per_gallon print "miles per gallon." end ! Jeremy Fallick ! September 9, 2004 ! Period 6 ! Chapter 1, Problem 6 let end_value=13.56 let start_value=11.35 let total_increase=end_value-start_value let average_monthly_increase=total_increase/12 print "If the stock started the year at $"; start_value print "and ended the year at $"; end_value print "then the average monthly increase is $"; average_monthly_increase; "." end ! Jeremy Fallick ! September 9, 2004 ! Period 6 ! Chapter 1, Problem 7 let Celsius=15 let Fahrenheit=9/5*Celsius+32 print "If the temperature is"; Celsius print "degrees Celsius, then it is"; Fahrenheit print "degrees Fahrenheit." end !Jeremy Fallick !September 13, 2004 !Period 6 !Chapter 1, Problem 8 let miles=3.2 let feet=miles*5280 let inches=feet*12 let centimeters=inches*2.54 print "There are"; centimeters print "centimeters in"; miles print "miles." end !Jeremy Fallick !September 13, 2004 !Period 6 !Chapter 1, Problem 9 let ounces_1=48 let pounds=5 let ounces_2=pounds*16 let price_1=2.25 let price_2=4.10 let unit_price_1=price_1/ounces_1 let unit_price_2=price_2/ounces_2 print "If the"; ounces_1 print "-ounce box costs $"; price_1 print ", and the"; pounds print "-pound box costs $"; price_2 print ", then the cost per ounce for the"; ounces_1 print "-ounce box is $"; unit_price_1 print ", and the cost per ounce for the"; pounds print "-pound box is $"; unit_price_2 end |