DESIGN and COMPLTE a program ACCORDINGLY that determines fin

DESIGN and COMPLTE a program ACCORDINGLY that determines final letter grade for a student with encouraging comment. Three exams and two assignment scores as well as the student name will be entered by the user. Every score should range from 0.00 – 100.00. The program will give user only one chance to correct invalid score and provide meaningful feedback. Exams and assignments have equal weights for the final score (i.e. 50% by each category) that determines the final grade. Final grade and comment are determined by the following scale: A – 90 or above (Excellent!!) B – between 80.00 – 89.99 (Good job!) C – between 70.00 – 79.99 (Happy? Not happy?) D – between 60.00 – 69.99 (Could be better, right?) F – below 60.00 (Could be improved next time?)

Solution

#include <iostream>
#include <string>
#include <iomanip>
using namespace std;

int main ()
{
float exam_1;
float exam_2;
float exam_3;
float assignment_1;
float assignment_2;
float weighted_exam = .1667;
float weighted_assignment = .25;
string name;

cout << \"Please enter student name <First Last>: \"; // this will ask for the students first and last name
getline(cin, name);

cout << \"\ \";

cout << \"\\t Be sure to include the decimal point for scores.\ \";

cout <<\"\\t !!! All scores should range from 0.00 to 100.00!!! \ \";

cout << \"\\t For example: 80.50 \ \";

cout << \"\ \";

cout << \"Please enter your exam 1 score: \";
cin >> exam_1;

cout << \"Please enter your exam 2 score: \";
cin >> exam_2;

cout << \"Please enter your exam 3 score: \";
cin >> exam_3;

cout << \"Please enter your assignment 1 score: \";
cin >> assignment_1;

cout << \"Please enter your assignment 2 score: \";
cin >> assignment_2;

cout << endl;

cout << \"-\" << \"OUTPUT\" << \"-\ \";

DESIGN and COMPLTE a program ACCORDINGLY that determines final letter grade for a student with encouraging comment. Three exams and two assignment scores as wel

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site