Question: Just need the algorithm only nothing else, no programs of any kind algorithm can be in C++. I DO NO NOT NEED ANY PROGRAM ONLY

Just need the algorithm only nothing else, no programs of any kind algorithm can be in C++. I DO NO NOT NEED ANY PROGRAM ONLY ALGORITHM

Balls Selling Company

Design an algorithm and draw a flowchart for a company that sells three types of balls: tennis ball (T), billiards ball (B), and rugby ball (R). They sell for $5.00, $7.50, and $10.00 respectively. This algorithm should read two inputs by the user. The first input should be a letter (T or B or R) indicates which type of ball customer want to order. The second input should be a number indicates how many balls the customer has ordered. It should then calculate and print to the screen the total cost of the balls, the sales tax charged at a rate of 7.5% and the total sale including sales tax. Input Validation: Be sure the user only input letters T, B, or R. Also, the number of balls entered by user cannot be zero or a negative number. Exit the program if user enters incorrect information.

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!