Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Are these written ground rules?

Answered: 1 week ago

Question

Have ground rules been established for the team?

Answered: 1 week ago