Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with a C++ assignment: ?Create, but do not initialize the data, one

ID: 3910608 • Letter: I

Question

I need help with a C++ assignment:

?Create, but do not initialize the data, one array for each of the following situations. Use an appropriate data type and name for each array

?a. holding the serial numbers for all computers at ABC (numbers are similar to 145678) there are 24 computers assigned to each of 8 classroom/labs, on 5 different locations

b. holding payments per year arranged like this table to be printed in a book

year
   1 2 3    4 5
6.5% 123.23 104.32 99.23 80.75    67.45   
6.75%    131.23 111.54    103.23    90.55    78.95
?7.0%    141.54    120.54    107.43    98.67 88.98

?There will be 104 tables like this for different amounts in the book. The percentages and years are not stored in the table. Create an array to hold these 104 tables

?c. Print the 78.95 from the above table using the array you defined in part b. the table is the 49th table.

Explanation / Answer

a. long int serialNumber[5][8][24];

5 locations

8 labs at each location

24 computers in each lab

b.double payments[104][3][5];

104 tables

each table contains 3 rows and 5 columns

c. cout<<payments[48][1][4]; // 49th table,2nd row and 5th column

index starts from 0 to 103 tables , 0 to 2 rows and 0 to 4 columns

DO ask if any doubt. Please upvote.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote