Problem 1. Variables. INTEGER CONSTANT PRICECATEGORY1 =

Added on - 24 Sep 2019

  • 5

    Pages

  • 547

    Words

  • 271

    Views

  • 0

    Downloads

Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 2 of 5 pages
Problem 1VariablesINTEGER CONSTANT PRICECATEGORY1 = 250INTEGER 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.ModulegetAmount ()21.Set amountGenerated = (priceCategory1*ticketCategory1) +(priceCategory2*ticketCategory2) + (priceCategory3*ticketCategory3)22.Display “Total income generated”,amountGenerated23.End ModuleEnd
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document