Exercise 6 –
A concert hall has three seating categories: Orchestra, Main floor, and Balcony. Orchestra seats are $25, Main floor seats are $30, and Balcony seats are $15. The manager wants an application that allows him to enter the number of tickets sold in each seating category. The application should calculate the amount of revenue generated by each category, and then display each result using the “N0” format. The application should also calculate the total revenue, displaying the result using the “C0” format.
1. List the output, processing (if any), and input items, and then code an appropriate algorithm.
2. Develop a Visual Basic Windows application. Use the following names for the solution and project, respectively; Concert Solution and Concert Project. Change the name of the form file to frmMain.vb. If necessary, change the form’s name to frmMain.
3. Develop a suitable interface. Include an Exit button.
4. Code the Exit button’s Click event procedure and the problem’s algorithm. Be sure to use the TryParse method.
5. Save the solution. Desk-Check the program using your own sample data.
6. Start and test the application. Close the Code Editor window and then close the solution.