Question: 1)Minimum of three (3) comments in each function: Pre: (name and description of each parameter), Post: (what is being returned), and Purpose:(what the function does).
1)Minimum of three (3) comments in each function: Pre: (name and description of each parameter), Post: (what is being returned), and Purpose:(what the function does). Use Week 5 Canvas Training Heart Rate: Beginning Code, Video, Code Completeas your model for these statements. These comments demonstrate how well you are understanding function.
2) Use a globally defined constant for the allotment per person, i.e. 50 gallons
3) All input must be done in main(). Input may not be case sensitive. That is, if user enters s change it to S immediately. Only an error message should be output and nothing more if data is erroneous(not S,s,C,c,A,a).
4) One function which must be called from main() to calculate the budget based on number of people. Use C++ Style with prototype before main() and the function definition after main().
5) One function which must be called from main() to calculate the budget for landscape. Use C++ Style with prototype before main() and the function definition after main().
6) One function which must be called from main() to calculate the cost based on total budget (people budget + landscape budget) and CCFs used. Use C++ Style with prototype before main() and the function definition after main().
7) One function which must be called from main() to be used for all the output. Output must be formatted using 2 decimal places for all values and a dollar sign for the amount as shown in examples.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
