Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ ( Multiple Functions Required) Save your program as Labll-1-YourLastName.cpp/) Write a C+program that calculates average grade earned by a student in a Computer Science

C++
image text in transcribed
image text in transcribed
( Multiple Functions Required)
Save your program as Labll-1-YourLastName.cpp/) Write a C+program that calculates average grade earned by a student in a Computer Science course which consists of two parts: lecture sessions and lab sessions. The program should also determine the letter grade earned by the student. The average grade earned by a student is determined by adding the student's total points earned in both parts of the course and dividing this value by the total points that were possible for the course. The letter grade is based on the standard 10-point value scale. (A = 90-100, B = 80-89, C = 70-79, etc.) Also determine the highest and lowest average recorded for the course a. Specify a structure named StudentRecord to store the following data for each student 1. Student Name 2. Total Points Earned by the student in the Lecture Sessions. . Total Points Earned by the student in the Lab Sessions. 4. Overall Total Points Earned by the student in the course 5. Average Grade for the student. 6. Letter Grade Earned by the student. b. Specify an array of records (structures) named student to store the data for each student in the course Set the maximum number of students to 50, but let the user specify how many students are in the course c. Use main() as the driver function. You do not have to make the program repeatable d. Write appropriate functions that main) calls to accomplish the following tasks: 1. Read from the user the number of students taking the course and the total points that were possible for the coursce 2. Read the following data for each student and store the data in each StudentRecord structure in the array: the student name, the total points earned in the lecture sessions, total points earned in the lab sessions 3. Calculate the total points earned by each student, the average grade for each student, and determine the earned letter grade based on the calculated average. Store the total points earned, the average grade, and the earned letter grade in the appropriate member of the StudentRecord structure. 4. Determine the highest and lowest average recorded for the course 5. Display the data for each student in a table format. Display all numeric values to a tenth of a decimal. Sample Input Enter the number of students enrolled in the course: 3 Enter the total points that are possible for the course: 1200 Enter the information for Student 1 Name: Mary Hill Lecture Points Earned: 750 Lab Points Earned: 350 Enter the information for Student 2

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

More Books

Students also viewed these Databases questions

Question

4. What advice would you give to Carol Sullivan-Diaz?

Answered: 1 week ago