# Ticket Sales Revenue Calculator

5 Pages547 Words358 Views
|
|
|
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

## End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
|7
|844
|174

|5
|626
|376

|7
|1222
|412

|10
|1536
|67

|5
|2460
|160

|16
|1420
|253

### Support

#### +1 306 205-2269

Chat with our experts. we are online and ready to help.