Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Lab 4.1.1 Multi-dimensional arrays of variable length Objectives Familiarize the student with: Scenario creating two-dimensional arrays; accessing two-dimensional arrays; creating variable-length arrays. Write a
C++
Lab 4.1.1 Multi-dimensional arrays of variable length Objectives Familiarize the student with: Scenario creating two-dimensional arrays; accessing two-dimensional arrays; creating variable-length arrays. Write a program that will calculate the average grade of a student and print a summary report. The following rules apply: . a student may sign up for any number of courses; during a course, the student may receive any number of grades; grades are integer numbers in the range [1..5]; the final grade for a course is the arithmetic mean of all grades received during the course; the overall final grade is the arithmetic mean of the final grades received for all the courses the student has taken. All floating-point numbers printed by the program should be limited to two decimal points. The input is given in the following form: C N1 G11 G12.. Gin N2 621 622 62n Ne Gel Ge2.. Gcn Where: C Nx number of courses taken by the student number of grades received during course number x Gabb-th grade received in course number a Example input 3 42345 245 3445 Example output Course 1: final 3.50, grades: 2 3 4 5 Course 2: final 4.50, grades: 4 5 Course 3: final 4.33, grades: 4 3 5 Overall final 4.11
Step by Step Solution
★★★★★
3.45 Rating (152 Votes )
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