Question: Terminal Objectives: 1 : Modifying Lab 1 b by adding a Dynamic array to retain the grades of the student. The size of the Array
Terminal Objectives: : Modifying Labb by adding a Dynamic array to retain the grades of the student. The size of the Array which is the desired number of grades will be prompted at run time from the user. Procedure: : Open a new program calling it: Labc Add a new source file calling it: LabWithDynamicArray Paste into it: LabWithFunctionCallByValue : Add to the ServiceSelectionUsingIfElse an array that will be loaded with the student grades. The student grades will be loaded into the array as they are read from the keyboard using the loops functions. In this lab the program will prompt the user for the number of grades to be entered which is the size of the array thus a fixed size array cannot be used and a Dynamic array must be used instead. : Add to the function DisplayStudentRecord the code that will also display the individual grades from the array as part of the student record display. Output example shown: Student Record: Student Name: Screw Hammer Grades: Grade Average: Letter Grade: D Press to Continue: : Test your complete program with various tests inputs that will demonstrate all possible operations including the continuous operation of your program multipass feature for at least three students. The output should be the display of your banner with the appropriate entries and the results of the operations performed for the students, each using a different menu selection. CPSC C Labc Using Dynamic Array Page Rev A Modules Hierarchy: void mainvoid DisplayBanner char PromptUserForSelection void ServiceSelectionUsingIfElsecharfloat ExecuteWhileLoopint int float ExecuteDoWhileLoopint int float ExecuteForLoopint int char DetermineLtrGradeUsing Switchfloatvoid DisplayStudent Record float char, int int CPSC C Labc Using Dynamic Array Page Rev A Program Skeleton void main char MenuSelection; void DisplayBanner; char PromptUserForSelection; void ServiceSelectionUsingIfElsechar; void DisplayBanner char PromptUserForSelection char Selection; return Selection; void ServiceSelectionUsingIfElsechar MenuChoice int NumberOfGrades; float GradeAverage; char LetterGrade; int GradesArray; float ExecuteWhileLoopint int ; float ExecuteDoWhileLoopint int ; float ExecuteForLoopint int ; char DetermineLtrGrdUsingSwitchfloat; void DisplayStudentRecordfloat char, int int; float ExecuteWhileLoop int numgrades, int GradesList int count grade, GradesTotal ; return float GradesTotal numgrades; float ExecuteDoWhileLoop int numgrades, int GradesList int count grade, GradesTotal ; return float GradesTotal numgrades; CPSC C Labc Using Dynamic Array Page Page LabB float ExecuteForLoopint numgrades, int GradesList int count grade, GradesTotal ; return float GradesTotal numgrades; char DetermineLtrGrdUsingSwitchfloat grdavg char ltrgrd; return ltrgrd; void DisplayStudentRecordfloat avg, char LtrGrd int GradesList int numgrades string int FirstName, LastName; count;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
