Computers and Technology, 22.06.2021 04:40 natalyarenassalgado
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".
Answers: 3
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
Problem Specification
1. Your program will compare that temperature from the observation with the k...
Mathematics, 14.08.2020 03:01
English, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Chemistry, 14.08.2020 03:01
History, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Medicine, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01
Mathematics, 14.08.2020 03:01