Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help pseudocode and raptor flowchart. You will ask the user for how many packages and then determine what the discount percentage will be. Once you

Help pseudocode and raptor flowchart. You will ask the user for how many packages and then determine what the discount percentage will be. Once you determine the discount percentage then calculate the total amount of the sale after the discount. Each item is priced at $99 dollars. So if I buy 30 items at $99 each, that qualifies me for a discount percentage of 30% ( or .30). My original sales amount is 30 * 99 or $ 2970 then I get a 30% discount or $ 891 (2970 * .30). then I subtract the discount from the original sales amount ( 2970 - 891 ) for a final total amount of $ 2079.

is pseudoecode okay ?

// Declaring variables Declare Integer numberOfPackages Declare discount Declare total

//Display number of package purchased Display Please enter the number of packages purchased. Input numberOfPackages

//Verify the discount of the purchase If numberOfPackages >= 1 And numberOfpackages <= 9 Then

Set discount = ( numberOfpackages * 99) *0.1 Else If numberOfPackages >= 10 And numberOfpackages <=19 Then

Set discount = (numberOfPackages * 99) *0.2 Else If numberOfPackages >=20 And numberOfPackages<=30 Then

Set discount = (numberOfPackages*99)*0.3 Else Set discount = 0 End If

//Calculate the total amount Set total = ( numberOfPackages * 99) +discount Display Discount of purchase is $, discount Display Grand total is $, total

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

5. A review of the key behaviors is included.

Answered: 1 week ago

Question

3. An overview of the key behaviors is presented.

Answered: 1 week ago