Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started