Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the functions in the code below, write a program that prompts the user to

ID: 3636110 • Letter: U

Question

Using the functions in the code below, write a program that prompts the user to input data about as many as 25 students, which should be stored in a table. The program should use the first function (that prompts the user for all the information for one student except the final grade) used in the code below to input the data. Once the table is loaded, the program should use the second function (to compute the final grade of the student as follows: the final grade is 75% of the quiz average plus 25% of the final exam) used in the code below, to compute the final grade average of each student. Finally, the program should display a report that lists the students in alphabetical order. For each student, display the quiz average, the final exam grade, and the final quiz average.
Dear,
#include <iostream>
#include <string>
using namespace std;
// student structure
struct Student
{
string last_name; // last name
string first_name; // first name
string social_security_number; // social security number
string phone_number; // phone number
double grades[5]; // quiz grades
double final_grade; // final exam grade
double average; // final grade
};
// reads data of student structure from the console
void readdata(Student *student)
{
// reads name
cout << "Enter student last name: ";
cin >> student->last_name;
cout << "Enter student first name: ";
cin >> student->first_name;
// reads social security number and phone number
cout << "Enter social security number: ";
cin>> student->social_security_number;
cout << "Enter phone number: ";
cin >> student->phone_number;
// reads 5 quiz grades
cout << "Enter 5 grades: ";
for(int i=0; i<5; i++)
cin >> student->grades[i];
// reads final exam grade
cout << "Enter final exam grade: ";
cin >> student->final_grade;
}
// calculate and returns final grade
double finalgrade(Student *student)
{
double quiz_avg = 0.0;
// calculates quiz average
for(int i=0; i<5; i++)
quiz_avg += student->grades[i];
quiz_avg = quiz_avg/5.0;
// returns final grade
double final_grade = quiz_avg * 0.75 + student->final_grade * 0.25;
return final_grade;
}
// main function
int main()
{
// pointer to student structure
Student *student = new Student();
// reads data
readdata(student);
// displays student data to the console
cout << " Student data: " << endl;
cout << "Name: " << student->first_name << ", " << student->last_name << endl;
cout << "Social security number: " << student->social_security_number << endl;
cout << "Phone number: " << student->phone_number << endl;
cout << "Final grade: " << finalgrade(student) << endl;
return 0;
}

Explanation / Answer

Hi I have done the solution for this in my notebook. But the solution is too big , I cannot type it here because very less time is remaining.. So please rate me Lifesaver and I'll share the answer with you through email or cramster inbox. I don't do this generally, but I have no other option here because there's very less time left... you need not worry as I have the solution ready