Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Guidelines for Homework: Use the 1 st page of this file as the cover page for your homework. Comment your Name and ID at the

Guidelines for Homework:

  • Use the 1st page of this file as the cover page for your homework.
  • Comment your Name and ID at the beginning of the code.
  • Use comments for documentation.
  • Use flowcharts.
  • Copy of the code.
  • Use screenshot.
  • Use meaningful variable names using camelCase or PascalCase or snake_case naming convention.
  • Use an online C++ platform.

Objective: by the end of the experiment the student should be able to use For loops with 2D array.

Task:

Draw a FLOWCHART and Write a C++ program the declare 2 D array for fractional numbers 3 rows and 6 columns, assign values to the array using the same line of declaration using nested curly braces, (show the code then comment) how to assign values to the array using the same line of declaration using single curly braces, (show the code then comment) how you ask the user to enter each element of the array content, compute the sum of each row and store the result in the last column, starting from cell 0,0 compute the average of the diagonal elements, handwriting trace of the code for all iterations and epochs are required.

Solution

Flowchart:

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

=+How should it be delivered?

Answered: 1 week ago

Question

=+4 How does one acquire a global mindset?

Answered: 1 week ago