Question: Develop a program that will read in a positive integer that represents an integer test score between 0 and 100and then output an appropriate letter

 Develop a program that will read in a positive integer thatrepresents an integer test score between 0 and 100and then output an

Develop a program that will read in a positive integer that represents an integer test score between 0 and 100and then output an appropriate letter grade (using the standard grading scale). However, you must come up with a solution without using if statement(s).

Please write in C++!

Exercise 5 - Simple Vending Machine Version 1 - more points for this exercise Your program would read an integer value between 0 and 100 (inclusive), representing the amount of a purchase in cents from a vending machine. Produce an error message if the input value is not in that range. If the input is valid determine the amount of change that would be returned from one dollar, and print the number of quarters, dimes, and nickels. Since pennies are not available, round the changes to the nearest multiple of 5 as needed. Assume that there are exactly 2 quarters, 2 dimes, and 1 nickel in the machine. It is important to maximize the coins with the highest value first and utilize the next denomination if the current denomination is exhausted. Reject a valid purchase if it cannot be processed (1.e., not enough available coins to make the change). Follow the format below and you must plan and write down the pseudocode before attempting your code on the computer. Run the following five test cases (5 separate runs): Vending Machine Version 1 by Your Name There are 2 quarters, 2 dimes, and 1 nickel. Enter a purchase amount to - 1001 --> 36 You entered a purchase amount of 36 cents. Your change of 65 cents is given as: quarter(s): 2 dime (s): 1 nickel(s): 1 Vending Machine Version 1 by Your Name There are 2 quarters, 2 dimes, and 1 nickel. Enter a purchase amount to - 100) --> 105 You entered a purchase amount of 105 cents. You entered an invalid amount (not between 0 and 100). Vending Machine Version 1 by Your Name There are 2 quarters, 2 dimes, and 1 nickel Enter a purchase amount 10 - 100) --> 38 You entered a purchase amount of 30 cents. Your change of 60 cents is given as: quarter(s): 2 dime(): nickel(s): 0 Vending Machine Version 1 by Your Name There are 2 quarters, 2 dimes, and 1 nickel. Enter a purchase amount to - 100) --> 25cEnter> You entered a purchase amount of 25 cents. Your change of 75 cents is given as: quarter(s): 2 dime(): nickel(s): 1 Vending Machine Version 1 by Your Name) There are 2 quarters, 2 dimes, and 1 nickel. Enter a purchase amount to - 100) --> 20-CEnter> You entered a purchase amount of 20 cents. Your change of 80 cents cannot not be processed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!