Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ia Raptor you righ dick any componest ec Assignment Wnite a Raptor program that performs the following tasks All comment lines will be color-coded Ask

image text in transcribed

ia Raptor you righ dick any componest ec Assignment Wnite a Raptor program that performs the following tasks All comment lines will be color-coded Ask the user for a number repr of an item and calculate and display the cost before application of discount, discount percentage, the actual amount of discount, and the final cost. The input must be in the order given above. The following table states the discount percentage based on quantity the quantity of a product sold, and the unit cost Quantity 1-19 50-99 100 or more 40% Check the input amount for the quantity and make sure the input value is not 0 or a negative number. If the input value is invalid, print the error message TNVALID Quantity" and do not perform any calculations. Once you have a vald input from the user, perform the computations. ia Raptor you righ dick any componest ec Assignment Wnite a Raptor program that performs the following tasks All comment lines will be color-coded Ask the user for a number repr of an item and calculate and display the cost before application of discount, discount percentage, the actual amount of discount, and the final cost. The input must be in the order given above. The following table states the discount percentage based on quantity the quantity of a product sold, and the unit cost Quantity 1-19 50-99 100 or more 40% Check the input amount for the quantity and make sure the input value is not 0 or a negative number. If the input value is invalid, print the error message TNVALID Quantity" and do not perform any calculations. Once you have a vald input from the user, perform the computations

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

2. Carry out the customers wishes:

Answered: 1 week ago

Question

6. What questions would you suggest should be included?

Answered: 1 week ago