can help with the pseudocode

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question

can help with the pseudocode

Based on the description given below, draw a complete flowchart for a program
develop for Cyberia Mart, to take orders from customer.
• Set all necessary variables.
• Ask if customer is an existing customer of the mart
o If existing customer, they will get exemption from 6% tax.
Get customer's item name, quantity and price of the item.
Ask if customer would like to have delivery.
Delivery charges for quantity under 10 is $2.00, for quantity equal to 10 or
more delivery is $5.00.
If the quantity is more than 10, additional $6.00 will be added at the
delivery charge for safety box wrapping.
• Calculate the total and grand total.
• Display the Item name, quantity, delivery and total.
Repeat as long as customer wish to add other item.
If user wish to stop add item, calculate the tax amount and total price plus
tax.
• Display the total price, tax amount and total price after add with tax.
Refer to Sample Output 1 and Sample Output 2 below.
SAMPLE OUTPUT 1:
**************
********************************************
**********************WELCOME TO CYBERIA MART***************
*********************
***************
Existing customer? (0 = No, 1 = Yes): 0
Enter the item name : Mouse
Enter the quantity : 4
Enter the price ($): 10.90
Delivery? (0 = No, 1 = Yes): 1
Invoice (in $):
Item
Price
Mouse
4
Delivery
2.00
Total
45.60
More item? (0 = No, 1 = Yes): 1
Enter the item name: Keyboard
Enter the price ($): 15.00
Enter the quantity : 12
Transcribed Image Text:Based on the description given below, draw a complete flowchart for a program develop for Cyberia Mart, to take orders from customer. • Set all necessary variables. • Ask if customer is an existing customer of the mart o If existing customer, they will get exemption from 6% tax. Get customer's item name, quantity and price of the item. Ask if customer would like to have delivery. Delivery charges for quantity under 10 is $2.00, for quantity equal to 10 or more delivery is $5.00. If the quantity is more than 10, additional $6.00 will be added at the delivery charge for safety box wrapping. • Calculate the total and grand total. • Display the Item name, quantity, delivery and total. Repeat as long as customer wish to add other item. If user wish to stop add item, calculate the tax amount and total price plus tax. • Display the total price, tax amount and total price after add with tax. Refer to Sample Output 1 and Sample Output 2 below. SAMPLE OUTPUT 1: ************** ******************************************** **********************WELCOME TO CYBERIA MART*************** ********************* *************** Existing customer? (0 = No, 1 = Yes): 0 Enter the item name : Mouse Enter the quantity : 4 Enter the price ($): 10.90 Delivery? (0 = No, 1 = Yes): 1 Invoice (in $): Item Price Mouse 4 Delivery 2.00 Total 45.60 More item? (0 = No, 1 = Yes): 1 Enter the item name: Keyboard Enter the price ($): 15.00 Enter the quantity : 12
Delivery? (0 = No, 1 = Yes): 1
Invoice (in $):
Keyboard
12
Item
Price
Delivery
Total
11.00
155.00
More item? (0 = No, 1 = Yes): 0
Total price
$200.60
$12.04
$212.64
Тах
Total Price with Tax
******************:
****************************HAVE A NICE DAY!********************** S
********
******************
SAMPLE OUTPUT 2:
************
**********************WELCOME TO CYBERIA MART***************
*******
Existing customer? (0 = No, 1 = Yes): 1
Enter the item name : Headset
Enter the quantity: 5
Enter the price ($): 30.50
Delivery? (0 = No, 1 = Yes): 0
Invoice (in $):
Item
Headset
Price
30.50
Quantity
Delivery
Total
0.00
152.50
More item? (0 = No, 1 = Yes): 0
Total price
Тах
$152.50
$0.00
$152.50
Total Price with Tax
b) Based on the description given in (a), write the pseudocode.
Transcribed Image Text:Delivery? (0 = No, 1 = Yes): 1 Invoice (in $): Keyboard 12 Item Price Delivery Total 11.00 155.00 More item? (0 = No, 1 = Yes): 0 Total price $200.60 $12.04 $212.64 Тах Total Price with Tax ******************: ****************************HAVE A NICE DAY!********************** S ******** ****************** SAMPLE OUTPUT 2: ************ **********************WELCOME TO CYBERIA MART*************** ******* Existing customer? (0 = No, 1 = Yes): 1 Enter the item name : Headset Enter the quantity: 5 Enter the price ($): 30.50 Delivery? (0 = No, 1 = Yes): 0 Invoice (in $): Item Headset Price 30.50 Quantity Delivery Total 0.00 152.50 More item? (0 = No, 1 = Yes): 0 Total price Тах $152.50 $0.00 $152.50 Total Price with Tax b) Based on the description given in (a), write the pseudocode.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage