Create a program that allows the user to enter four test scores. The program sho
ID: 3667545 • Letter: C
Question
Create a program that allows the user to enter four test scores. The program should average the four test scores. Be sure to validate the input data. The lowest valid test score is 0 and the highest valid test score is 100. Anything out of that range should display an appropriate invalid test score message. Make sure you have appropriate comments and output to explain the program's function. After completion and testing, zip the folder and submit via the Assignments link in BlackBoard. You should browse and attach the folder via the local file button and then select the submit button. The final date/time to submit this assignment is Friday, Feb. 12th at midnight.Explanation / Answer
#include "stdafx.h" #include using namespace std; using namespace System; int main() { int scores[5], temp; do { cout > scores[0]; } while(scores[0] < 0 || scores[0] > 100); for(int i = 1; i < 5; i++){ do { cout > scores[i]; } while(scores[i] < 0 || scores[i] > 100); if(scores[i]Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.