Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12. Write a program that asks students how many tests they have taken so far in a course. The program should accept any number from

12. Write a program that asks students how many tests they have taken so far in a course. The program should accept any number from 1 to 5, but reprompt the user if the entry is invalid. The user can then enter the appropriate number of test scores, which you store in an array. Pass the number of tests and the array of test scores to a function that aver- ages the students test scores and displays the average. The function should compute a correct average whether the student has taken one, two, three, four, or five tests. Save the file as StudentAverage.cpp.

Any coding assignments will have to be submitted in .cpp format and a Word document with the code copy/pasted and screenshots of the output.

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

Identify cultural barriers to communication.

Answered: 1 week ago