Write a program called gradebook.cpp. The program should ask the user for the name, points possible, and points earned for assignments, this information should be stored in a struct called assignment....

I’m stuck on this assignment and am unsure of how to structure the code. (The assignment requires the use of a struct) (Code has to stop repeating when user enters “stop” and then takes all values to calculate and display the final output)Write a program called gradebook.cpp. The program should ask the user for the name,<br>points possible, and points earned for assignments, this information should be stored in a struct<br>called assignment. It should keep asking the user for this information until the user enters<br>

Extracted text: Write a program called gradebook.cpp. The program should ask the user for the name, points possible, and points earned for assignments, this information should be stored in a struct called assignment. It should keep asking the user for this information until the user enters "stop" as the assignment name. At this point, the program should print each assignment with appropriate formatting and also the student's average as both a fraction and a percentage. Sample Output What is the assignment name? Week 14 Lab How many points is it worth? 20 How many points were earned? 20 What is the assignment name? Week 13 Lab How many points is it worth? 20 How many points were earned? 15 What is the assignment name? stop GRADES Week 14 Lab 20/ 20 Week 13 Lab 15/ 20 AVG 35/ 40 (87.5)

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here