Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ I AT&T 12:14 PM 87% Back Lab 4 Budget.docx Lab 4: Budget Lab Chapter 7: Using one-dimensional and two-dimensional arrays 50 points You will

C++
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
I AT&T 12:14 PM 87% Back Lab 4 Budget.docx Lab 4: Budget Lab Chapter 7: Using one-dimensional and two-dimensional arrays 50 points You will be using arrays to track the budgets for three families. Each of the three families will be collecting their total household costs for one week. The program needs to track all the costs, determine the average daily costs, and determine the highest and lowest amount spent on a single day Step 1) Declare 2 global constants The number of families (value 3) The number of day (value 7) In main, declare a one-dimensional string array that will hold the names of 3 families. (make up your own names for your families; at least one family name MUST contain multiple words; that means you cannot use "cin"). In main, declare a t money (in dollars) that each of the three families spent in a period of 7 days. NOTE: Be sure to use the test data from below l array that will hold the total amount of Step 2) Fill the arrays Options for filling the arrays: Optionl Declare the two arrays (one-dimensional for the three names and two- dimensional for money spent), initialize the arrays with the data to be used in the project. Use my test data (see the next page). Option2: Declare the name array, initializing the array with the word "none" for all three names. Declare the two-dimensional array using 0 as the initial values for all 21 days. Call a function and use a loop to ask the user for the family names. In the same function, ask the user for the amount spent by each of the Dashboard Calendar To Do Notifications Inbox

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_2

Step: 3

blur-text-image_3

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Appreciate the importance of developing potential managers

Answered: 1 week ago