PerformanceObjectives: 1. Give the specification of the requirement,detailed alg
ID: 3614118 • Letter: P
Question
PerformanceObjectives:
1. Give the specification of the requirement,detailed algorithm solution for the problem in pseudo code.Students should analyze the data and write complete C++ programusing visual C++ software.
2. Use appropriate datatypes.
3. Use techniques to write input and outputoperations with files.
4. Use output statements.
5. Use arithmetic operators and assignmentoperators.
6. Use stream manipulators to format output correctlyand neatly.
Problem Scenario:
Write a program that calculates the total rainfallfor six months and the average rainfall for six months. The programreads the input data from a file (rainfall.txt). The program shoulddisplay all of the following:
• display each month and the rainfall for eachmonth o display the monthsin a column and the rainfall in a separate column
• display the total rainfall of allmonths
Notes:
•Follow all programmingguidelines
• Outputshould be labeled (do not display onlynumbers).
• Do notchange the name of the input file.
• Be sure thatyour input file is located in the correctplace.
• Allmathematical expressions must contain variables (i.e. total =price1 + price2;). Do not use any numerical values in mathematicalexpressions (i.e. total = 25 + 99;).
• Pleaseformat your output (using appropriate streammanipulators).