Question: f 1 . ( HOTCOLD ) The table lists the freezing and boiling point of several substances. Create a program that will accept a temperature

f1.(HOTCOLD) The table lists the freezing and boiling point of several substances. Create a program that will accept a temperature as input. It should output all substances that will freeze or boil at that temperature. For example, at a temperature of 0 the program should report that water will freeze and that oxygen will boil.
Substance Freezing Point (F) Boiling Point (F)
Ethyl Alcohol -173172
Mercury -38676
Oxygen -362-306
Water 32212
5 points - correct input
20 points - correct output each substance at any temperature
`2.(WIDGET) The XYZ company sells only one product called the Widget. Create a program that will accept the number of widgets a customer wants to buy and output the total cost of the order. The cost of a single unit is 10 dollars. For 2 to 4 units the cost per unit is 9 dollars. For 5 to 9 units the cost per unit is 8 dollars. For 10 and over the cost is only 6 dollars per unit.
20 points - correct output for each of the 4 discount levels
5 points - user friendly input / output
3.(DROP) Write a grading program that will accept a student name and three numeric grades as input. Grade values should be between 0 and 100. It should output the name and grade average. ***The program should drop the lowest grade.
20 points - correct inputs
20 points - correct average output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!