subject

Problem Specification 1. Your program will compare that temperature from the observation with the known boiling point of items on the chart above. If the temperature is t3 percent of the boiling point on the chart, then your program should report which material it is. If the observation is more than 3% away from any of the substances on the table, then your program should report the message This substance is unidentified.
2. When your program starts running, it should display a nice banner to the user explaining what the program does, along with your name and the date and time the program was compiled. Don't forget to include your header and your function from the previous laboratory assignments.
3. Your program should create as many functions as you need to make the algorithm work, but you must create at least the following function: int is substance within x percent which will take as parameters • a reference value substance from the table • an observation value data • a percentage value percent Page 2 of 5 and returns true if data is within percent % of substance. That is, substance - percent substance) S datas (substance + percent substance If not, the function should return false.
4. Write a driver program to test your version of the function is substance within x percent (name the driver file lab7_percent_driver. c), and use the driver to demonstrate the function works correctly before including it in your program Script a run of it, and include the output of the driver and the testing in your final submission.
5. Put the boiling point values into a header file you create as constants. Call the header file boiling points. h, and follow the instructions given in the Creating a Personal Header File document on our class web site. Use the header file in your program by entering the preprocessor directive #include "../include/boiling points. h" BOO in your source code. Note that this assumes you're working on Astro, and that you've created the include directory one above the lab directory you're working in. If you're working elsewhere, you can create the header file in the same directory as your source code and include it with #include "boiling points. h" Remember that constants, by convention, are generally written in ALL UPPER CASE in C source code. The Australian Kangaroo, which weighs over thirty Ounces, is the heaviest gold coin minted in the modern era. Page 3 of 5
6. Make sure to prompt for the input, and to echo print what is entered, and also, of course, print the answer. You should also show how many percent away the observation entered is from the official boiling temperature. Your display may be something like this: You entered a boiling point of 102, which is within 3% of the substance "Water". 102 is 1.96% away from the reference temperature of 100 for "Water".

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
You install teamviewer on your workstation at home so that you can ac ess it when on the road. how can you be assured that unknown users cant access your computer through team viewer?
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
Problem Specification 1. Your program will compare that temperature from the observation with the k...
Questions
question
Mathematics, 16.06.2020 16:57
question
Arts, 16.06.2020 16:57
Questions on the website: 13722360