Create a pseudocode and flowchart. Phoenix store wants a daily sales transaction. Computer will compute and display total sales per transaction and discount amount given to senior citizen, person with disabilities and with membership card. This store only sells the following books. English 1, English 2, English 3, Physics 1, Physics 2, Physics 3, Introduction to Computer Science, Python, WPF, Web Development, Psychology, Chemistry 2, Our Daily Bread. Price are not permanent and depends based on entry of staff. The books not sold per transaction, corresponding prices equivalent to zero, books sold per transaction and prices of each book vary to entry of the staff. Get the total sales and discount amount.
Total sales= sum of the prices each book sells by bookstore
Discount for Senior Citizen= 30% of total sales per transaction
Discount for PWD=20% of total sales per transaction
Discount for Members=15% of total sales per transaction
Note: no discounts will be given to regular customers
Start
Print English 1
Print English 2
Print English 3
Print Physics 1
Print Physics 2
Print Physics 3
Print Introduction to Computer Science
Print Python
Print WPF
Print Web Development
Print Psychology
Print Chemistry 2
Print Our Daily Bread
Read name of book
Read number of books
Read price of book
Print Senior Citizen
Print PWD
Print Member with card
Print Regular customers
Read type of customer
Total sales = number of books * price
discount amount=0
if type of customer ="Senior Citizen"
discount amount=total sales*0.3
end if
if type of customer ="PWD"
discount amount=total sales*0.2
end if
if type of customer ="Member with card"
discount amount=total sales*0.15
end if
Print total sales per transaction
Print discount amount
Stop
Comments
Leave a comment