Using Multidimensional Arrays
In this lab, you will complete a lava program that uses a two-dimensional array to store data for the Building Block Day Care Center. The program is described in Chapter 8, Exercise 10, in Programming Logic and Design. The day care center charges varying weekly rates depending on the age of the child and the number of days per week the child attends. The weekly rates are shown in Table 8-2.
The program should allow users 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.java using Notepad or the text editor of your choice.
2. Declare and initialize the two-dimensional array.
3. Write the Java 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.java.
7. Execute the program.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.