Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include #include #include using namespace std; int main() { //Initialize variables double score[5]; double min = 0.0, max = 0.0, median = 0.0; double total
#include
using namespace std;
int main() { //Initialize variables double score[5]; double min = 0.0, max = 0.0, median = 0.0; double total = 0.0; char grade; //Prompt user to enter five test scores cout > score[i]; //Check if user entered valid test score if(score[i] 100) { cout = 89.5) grade = 'A'; else if(avg >= 79.5 && avg = 69.5 && avg = 59.5 && avg
please solve in C++ but remove the use of arrays
Assignment: 1. ask the user to enter five (5) test scores 2. report the data entered by the user (echo print) 3. if any of the scores are less than zero (100), print an error message 4. if all the scores are between 0 and 100 - report the average (rounded to two decimal places) - use cout fixed setprecision (2) - report the letter grade that should be assigned using the following scale - Also report: =min =max - median >=89.5A79.589.49B69.579.49C59.569.49DStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started