You will create a Grade Program that will calculate students’ weighted averages. You are going to have the user enter lab grades, test grades, and project grades. You will then display a grade report of each individual average along with their overall average and letter grade.
When completed with the program there should be 4 functions in addition to the MAIN function.
#include<iostream>
#include <iomanip>
using namespace std;
float averageGrade()
{
float temp;
int count = 0;
float sum = 0;
float avg;
cout<<"enter grade or -1 to quit:\t";
cin>>temp;
count++;
sum += temp;
while(temp != -1)
{
cout<<"enter grade or -1 to
quit:\t";
cin>>temp;
count++;
sum += temp;
}
avg = sum/count;
return avg;
}
float classAverage(float avg_lab_grade, float avg_test_grade, float
avg_project_grade)
{
float avg;
float temp_lab = (avg_lab_grade * 50)/100;
float temp_test = (avg_test_grade * 40)/100;
float temp_project = (avg_project_grade *
10)/100;
avg = temp_lab + temp_test + temp_test;
return avg;
}
void getLetterGrade(float marks, char* letter)
{
if(marks >= 90)
{
*letter = 'A';
}
else if(marks >= 80 && marks < 90)
{
*letter = 'B';
}
else if(marks >= 70 && marks < 80)
{
*letter = 'C';
}
else if(marks >= 60 && marks < 70)
{
*letter = 'D';
}
else
{
*letter = 'F';
}
}
void displayReports(float avg_lab_grade, float avg_test_grade,
float avg_project_grade, float final_grade, char letter)
{
cout<<"*****************REPORTS******************"<<endl;
cout<<"Average Lab
Grade:\t"<<setprecision(3)<<avg_lab_grade<<endl;
cout<<"Average Test
Grade:\t"<<setprecision(3)<<avg_test_grade<<endl;
cout<<"Average Project
Grade:\t"<<setprecision(3)<<avg_project_grade<<endl;
cout<<"Average Final
Grade:\t"<<setprecision(3)<<final_grade<<endl;
cout<<"Average Letter
Grade:\t"<<letter<<endl;
cout<<"*******************************************"<<endl;
}
int main()
{
char ch;
do
{
cout <<
"\033[2J\033[1;1H";
cout<<"enter lab
grades:\t"<<endl;
float avg_lab_grade;
avg_lab_grade =
averageGrade();
cout<<"enter test
grades:\t"<<endl;
float avg_test_grade;
avg_test_grade =
averageGrade();
cout<<"enter project
grades:\t"<<endl;
float avg_project_grade;
avg_project_grade =
averageGrade();
float final_avg =
classAverage(avg_lab_grade, avg_test_grade,
avg_project_grade);
char letter;
getLetterGrade(final_avg,
&letter);
displayReports(avg_lab_grade,
avg_test_grade, avg_project_grade, final_avg, letter);
cout<<"want to enter reports
of another student (y/n):\t";
cin>>ch;
}while(ch != 'n');
cout<<"Thank You"<<endl;
}


If you have any doubts please comment and please don't dislike.
You will create a Grade Program that will calculate students’ weighted averages. You are going to...
MATLAN Quiz 2 Create a MATLAB function that calculates the average of values in a vector that also drops the slowest values. Call this function average_drop(). The function must have a single input (the vector) and a single output (the average without the lowest score). 1. 2. Create a MATLAB program that asks the user to input grades for a student and calculates the final grade and letter grade. The user must enter 5 quiz grades (worth 50% of the...
DO NOT USE ARRAYS IF YOU KNOW ABOUT ARRAYS, I WANT YOU TO USE 3 VARIABLES, IT WILL FORCE YOU TO USE COMPOUND LOGICAL STATEMENTS FOR THE IF STATEMENTS. Create a program that will display a menu to the user. The choices should be as follows: Enter 3 grades Show average (with the 3 grades) and letter grade Show highest grade Show lowest grade Exit If you want to put the menu into a function you may. The program should...
Write a C++ program that asks user number of students in a class and their names. Number of students are limited to 100 maximum. Then, it will ask for 3 test scores of each student. The program will calculate the average of test scores for each student and display with their names. Then, it will sort the averages in descending order and display the sorted list with students’ names and ranking. Follow the Steps Below Save the project as A4_StudentRanking_yourname....
You are to write a program which will ask the user for number of students (dynamic array of class Student). For each student, you will ask for first name and number of grades (dynamic array of grades as a variable in Student). **The program should give the student random grades from 0-100** Find the averages of each student and display the information. **Display name, grades, and average neatly in a function in the Student class called Display()** Sort the students...
You are to write a program which will ask the user for number of students (dynamic array of class Student). For each student, you will ask for first name and number of grades (dynamic array of grades as a variable in Student). **The program should give the student random grades from 0-100** Find the averages of each student and display the information. **Display name, grades, and average neatly in a function in the Student class called Display()** Sort the students...
using java
Program: Please read the complete prompt before going into coding. Write a program that handles the gradebook for the instructor. You must use a 2D array when storing the gradebook. The student ID as well as all grades should be of type int. To make the test process easy, generate the grade with random numbers. For this purpose, create a method that asks the user to enter how many students there are in the classroom. Then, in each...
Create a class called Student. This class will hold the first name, last name, and test grades for a student. Use separate files to create the class (.h and .cpp) Private Variables Two strings for the first and last name A float pointer to hold the starting address for an array of grades An integer for the number of grades Constructor This is to be a default constructor It takes as input the first and last name, and the number...
Create a C++ program to calculate grades as well as descriptive statistics for a set of test scores. The test scores can be entered via a user prompt or through an external file. For each student, you need to provide a student name (string) and a test score (float). The program will do the followings: Assign a grade (A, B, C, D, or F) based on a student’s test score. Display the grade roster as shown below: Name Test Score ...
Write a program that will calculate your letter grade at the end of the semester for CSIS130. Your program will read an input file that shall contain all the tests scores and lab scores for the semester, and the input file data should be in the following format: full name of student Test1 Score (0…100), Test2 Score (0..100) , Final Exam Score (0..100), Total Number of Labs: N NLab Scores (0=Fail, 1=Pass) [You will have N lab scores each separated...
Java program
Program: Grade Stats In this program you will create a utility to calculate and display various statistics about the grades of a class. In particular, you will read a CSV file (comma separated value) that stores the grades for a class, and then print out various statistics, either for the whole class, individual assignments, or individual students Things you will learn Robustly parsing simple text files Defining your own objects and using them in a program Handling multiple...