Your application from activity 1 was able to keep a record


Modify the Gate Takings Application

1. Scenario:

Your application from Activity 1 was able to keep a record of the total attendance and the total cash collected from ticket sales from all events happening at the Games.

In this lab, in order to ease the work you do, we will assume that there are only three events involved in the Games. The events or sports are tennis, golf and swimming.

Since you are modifying Lab 4 Activity 1, the easiest way is to make a copy of Lab 4 Activity 1 project or solution and then make the required modification where necessary.

2. What to do:

a. Modify your program so that now it does the following:

1. In addition to keeping track of total attendance and total cash collected, your application should also display:

- Average attendance at each event
- Average gate-takings at each event.

2. Each event has a different ticket price. For example Tennis = $10, Golf = $15, Swimming = $5..

[Hint: You will have to declare 3 constants to store the ticket prices. In Lab you had just one constant. Then use a conditional if/else statement in the click-event procedure of your ‘Calculate' button to correctly compute the total and average gate-takings for a particular
event].

b. Make the following changes to your application's interface.

1. Add a label object to display the average attendance.

2. Add a label to display the average gate-takings.

[Hint: Write code under the click-event procedure of the ‘Display Totals' button to display the figures for the average]

Request for Solution File

Ask an Expert for Answer!!
Visual Basic Programming: Your application from activity 1 was able to keep a record
Reference No:- TGS01001511

Expected delivery within 24 Hours