Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago