Question: 1. 2. Write a medium C program of the following: Table below shows the normal boiling points of different substances. Write a program that prompts

1.

 1. 2. Write a medium C program of the following: Table

2.

below shows the normal boiling points of different substances. Write a program

Write a medium C program of the following: Table below shows the normal boiling points of different substances. Write a program that prompts the user for the observed boiling points of a substance in C and identifies the substance if the observed boiling point is within 5% of the expected boiling point. If the data input is more than 5% higher or lower than any of the boiling points in the table, the program should output the message Substance unknown. Substance Normal boiling point. C water 100 mercury 357 1187 copper silver 2193 gold 2660 The program should define and call a function within_x_percent that takes as parameters a reference value ref, a data value data and a percentage value x and returns 1 meaning true if data is within x % of ref-that is, (ref - x%* ref) s data (ref + x%* ref). Otherwise within_x_percent would return sero, meaning false. Also create a dedicated directory and save it as "boiling points.ca + Write a medium C program that has the following: 1. If statements 2. Switch statements

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!