Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can an expert help me with my code but cengage is precise so please follow the comments on the assigment thank you Using Multidimensional Arrays

can an expert help me with my code but cengage is precise so please follow the comments on the assigment thank you image text in transcribed
image text in transcribed
Using Multidimensional Arrays store aata for the Bullaing block Day Care Center. Ine day care center cnarges varying weekly rates depending on the age of the child and the number of days pe week the child attends. 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. Weekly rates can be found in the provided table. Instructions 1. Declare and initialize the two-dimensional array. 2. Write the C++ statements that retrieve the age of the child and the number of days the child will bo at the day care center. 3. Determine and print the weekly rate. 4. Execute the program by clicking the Run button at the bottom of the screen. sing namespace std; 1/ Declare two dimensional array here II Declare other variables int numbays; int age; int QUIT =99; 11 This is the work done in the getReady() function 1/ Perform a priming read to get the age of the child while(age I= QUIT) \{ If This is the work done in the determineRatecharge() function II Ask the user to enter the number of days II Print the weekly rate If Ask the user to enter the next child's age 3 If This is the work done in the finish() function cout \&\& "End of program" \&s end; roturn 0: 1 I/ End of main() function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions