Problem 1: Calculate income generated from ticket sales
5 Pages547 Words358 Views
Added on 2019-09-24
About This Document
This program calculates the income generated from ticket sales of three different categories. It takes input for the number of tickets sold for each category and calculates the total income generated based on the price of each category. The output displays the total income generated.
Problem 1: Calculate income generated from ticket sales
Added on 2019-09-24
BookmarkShareRelated Documents
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
Define Global Real Insurancelg...
|7
|844
|174
IPO Chart: Input Phone Number Processlg...
|5
|626
|376
Managing Financial Resources: Calculation of Profitable Output Level, Cost-Plus Pricing, and Financial Ratioslg...
|7
|1222
|412
MODELLING AND SIMULATION OF ENGINEERINGlg...
|10
|1536
|67
Economic Value of Medi-Cult's IVM, New Product Adoption for Pono's Music System, and Customer Lifetime Value for Amazon's Fire Phonelg...
|5
|2460
|160
Amplitude Shifting Keying and Frequency Shift Keyinglg...