Write a program (C++) to read the date and average from the temps.txt file. Use a string data type for the date and a doub e average. The program should then convert the average (Fahrenheit) to Celsius. The conversion formula is subtract 32 from the average (Fahrenheit) and then multiply by five and divide by nine, e. 32) * 5/9. Output the date, the average temperature (Fahrenheit) and the Celsius temperature to a file named celsi Use the manipulators you have learned about in this chapter to format the output as shown in the sample be low and print each number value to one decimal space. 1. Identify the following parameters to complete the specification above. Input parameters? Output parameters? Constant parameters? 2. Attach the input and output of a successful execution of your program below (Hint: Use the snipping tool to take screenshots):3. Run the program
Write a
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images