Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ please! 2. (50 points] A teacher wants a program to give students bonus points in a test. The program should ask for the original

c++ please! image text in transcribed
2. (50 points] A teacher wants a program to give students bonus points in a test. The program should ask for the original test scores of 5 students, and it should store them in an array. The program then uses a function giveBonus to give each student 5 points in addition to the original score. However, the new score (i.e. the sum of the original score and 5 bonus points) cannot exceed 100. If it is higher than 100, the function must change the new score to 100. The function main() will display the new score of every student on the screen. At a minimum turn in the C++ code

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

More Books

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago