Question
Write a SIMPLE program in C++ to demonstrate user input, output to the console screen, arithmetic calculations, output formatting and proper declaration of variables.] The
Write a SIMPLE program in C++ to demonstrate user input, output to the console screen, arithmetic calculations, output formatting and proper declaration of variables.] The program will request five student names, majors and grades from the user, determine the highest grade input, calculate the average grade, compare the grades to the average and highest and output information as specified below. Program Specifications: Include proper libraries to perform math, user input, console output, and output formatting. Your program should properly define variables to store names, major and grade scores for five (5) students. Request the above data from the user. You may choose any data. I will test using my own data set. Input each row and store the data in the appropriate variables. Determine the highest grade by comparing all student grades through programming. Calculate the average grade. Compare the student grades to the calculated average and highest grade through programming. Output the names of the students, and their major, having a grade score LOWER than the average grade using an appropriate message that includes the value of the average grade. Output the names of the students, and their major, having a grade score EQUAL TO the highest grade using an appropriate message that includes the value of the highest grade. Format your program properly for readability. Make your program user friendly and make sure you can enter decimals with the grades.
please enter your name-> asfhdf *enter*
please center your major -> csc *enter*
please enter your grade-> 98.3
Step 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