CS 1181
Upload the following programs using your Moodle account.
Asg6a.cpp
Write a program to store the results of a lab experiment involving daily temperatures in a text file named temperatures.txt. Prompt the user for the 6:00AM, Noon, and 6:00PM temperatures for a period of 7 days. The temperatures cannot be less than -50 or greater than 110. Write each temperature to the file using the following format:
field 1: day
field 2: 6:00AM temperature
field 3: Noon temperature
field 4: 6:00PM temperature
The file should have 7 records, one for each day.
NOTE: Store the temperatures.txt file in the same folder as the program source code.
Asg6b.cpp
Write a program to read the temperatures.txt file you created for asg6a and create a temperature report for each day with an average for each period using the following format:
Day Morning Noon Evening
1 45 63 57
…
7 41 57 43
Average nn.n nn.n nn.n
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more