The program should allow the user to enter the age of the child and the number of days per week the child will be at the day care center. The program should output the appropriate weekly rate. The file provided for this lab contains all of the necessary variable declarations, except the two-dimensional array. You need to write the input statements and the code that initializes the two-dimensional array, determines the weekly rate, and prints the weekly rate. Comments in the code tell you where to write your statements. 1. Open the source code file named DayCare.cpp using Notepad or the text editor of your choice. 2. Declare and initialize the two-dimensional array. 3. Write the C++ statements that retrieve the age of the child and the number of days the child will be at the day care center. 4. Determine and print the weekly rate. 5. Save this source code file in a directory of your choice, and then make that directory your working directory. 6. Compile the source code file DayCare.cpp. 7. Execute the program. The declarations are: int age int numDays
The
1. Open the source code file named DayCare.cpp using Notepad or the text editor of your choice.
2. Declare and initialize the two-dimensional array.
3. Write the C++ statements that retrieve the age of the child and the number of days the child will be at the day care center.
4. Determine and print the weekly rate.
5. Save this source code file in a directory of your choice, and then make that directory your working directory.
6. Compile the source code file DayCare.cpp.
7. Execute the program.
The declarations are:
int age
int numDays
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images