Problem 1. Variables. INTEGER CONSTANT PRICECATEGORY1 =

Added on -2019-09-24

| 5 pages
| 547 words
| 462 views

Trusted by 2+ million users,
1000+ happy students everyday

Showing pages 1 to 2 of 5 pages

Problem 1VariablesINTEGER CONSTANT PRICECATEGORY1 = 250 INTEGER CONSTANT PRICECATEGORY2 = 200INTEGER CONSTANT PRICECATEGORY3 = 150INTEGER TICKETCATEGORY1 = 0INTEGER TICKETCATEGORY2 = 0INTEGER TICKETCATEGORY3 = 0INTEGER AMOUNTGENERATEDIPOInput(s)Process(es) Output(s)ticketCategory1ticketCategory2ticketCategory3amountGenerated = (priceCategory1*ticketCategory1) + (priceCategory2*ticketCategory2) + (priceCategory3*ticketCategory3)amountGeneratedPseudocodeStart1.Define global constant Integer priceCategory1 = 2502.Define global constant Integer priceCategory2 = 2003.Define global constant Integer priceCategory3 = 1504.Define global Integer ticketCategory1 = 05.Define global Integer ticketCategory2 = 06.Define global Integer ticketCategory3 = 07.8.Module main()9. Call setSeats()10. Call getAmount()11. End Module12.13. Module setSeats()14. Set ticketCategory1=quantity(“Number of tickets sold of category 1“)15.
16. Set ticketCategory2=quantity(“Number of tickets sold of category 2“)17. Set ticketCategory3=quantity(“Number of tickets sold of category 3“)18.End Module19.20.Module getAmount ()21. Set amountGenerated = (priceCategory1*ticketCategory1) + (priceCategory2*ticketCategory2) + (priceCategory3*ticketCategory3)22. Display “Total income generated”,amountGenerated23.End ModuleEnd

Found this document preview useful?

You are reading a preview
Upload your documents to download
or
Become a Desklib member to get accesss

Students who viewed this