Question: I'm getting errors when I submit my code. Please include comments on the code. Language is C The errors: https://imgur.com/a/zvuN5rZ The exercise: My code: 3.

I'm getting errors when I submit my code. Please include comments on the code. Language is C

The errors: https://imgur.com/a/zvuN5rZ

The exercise:I'm getting errors when I submit my code. Please include comments on

My code:

the code. Language is C The errors: https://imgur.com/a/zvuN5rZ The exercise: My code:

3. Boiling Point Table 1 shows the normal boiling points of several substances. Write a program that prompts the user for the observed boiling point of a substance in degrees Celsius 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, it should output Unknown substance Enter the temperature: 105 105 C is the boiling point of Water Enter the temperature: 5000 5000 C is the boiling point of unknown substance Substance Boiling Point (C) Methane Butane Water Nonanc Mercury Copper Silver Gold 161.7 0.5 100 150.8 357 1187 2660 #include 2 #include 4 int main)f 6 float i,j,t[8--161.7,-0.5,100,150.8,357,1187,2193,2660; 7 char a[10][8] {"Methane", "Butane", "Water", "Nonane", "Mercury", "Copper", "Sliver", "Gold"); = 9 10 printf("Enter the temperature: "); scant( "%f", &i); //temperature enter by user 12 if(i!-0) // temperature not equal to e 13 14 for(int k 0; k t(k)) // f temp " great er than defined 27 28 if( <: j and less or equal to extra printf c is the boiling point of puts break else s unknown substance f not match return e>

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!