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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started