Prob 1. Write a program that reads a student name followed by five test scores, the program should output the student name, and the five test scores, and the average test score. Output test score with...

1 answer below »


Prob 1.


Write a program that reads a student name followed by five test scores, the program should output the student name, and the five test scores, and the average test score. Output test score with two decimal places.


A sample input is:


Andrew Miller 87.50 89 65.75 37 98.50


Outputthe student name, the five test scores, and the average of five test scores.





Prob 2.Coin change problem


Write a program that takes as input any change expressed in cents. It should compute the number of half-dollars, quarters, dimes, nickels and pennies to be returned. Returning as many as half-dollars as possible, then quarters, dimes, nickels and pennies. For example, 483 cents should return 9 half-dollars, 1 quarter, 1 nickel, and 3 pennies.

Answered 3 days AfterMar 17, 2021

Answer To: Prob 1. Write a program that reads a student name followed by five test scores, the program should...

Aditya answered on Mar 20 2021
147 Votes
#include
using namespace std;
int main()
{
string studentName;
double marks[
5];
double average;
cout<<"Enter student name: ";
getline(cin, studentName);
for(int i =0;i<5;i++)
{
cout<<"Enter mark for subject "< ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here