Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:image text in transcribed

My code:

image text in transcribed

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

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

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

Students also viewed these Databases questions

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago