Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

#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 = 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.49D

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

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions

Question

Identify three types of physicians and their roles in health care.

Answered: 1 week ago

Question

Compare the types of managed care organizations (MCOs).

Answered: 1 week ago