Computers and Technology

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".

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:20, gracie0818
Q-3 a technician is setting up a computer lab. computers on the same subnet need to communicate with eachother peer to peer communication, a. hardware firewallb. proxy serverc. software firewalld. gre tunneling
Answers: 3
image
Computers and Technology, 22.06.2019 08:00, wgdelgado
What is the first step in creating a maintenance ?
Answers: 2
image
Computers and Technology, 22.06.2019 09:40, cutybrain6054
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
image
Computers and Technology, 22.06.2019 11:20, destinyleisantos
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
Do you know the correct answer?
Problem Specification 1. Your program will compare that temperature from the observation with the k...

Questions in other subjects: