Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Link to Page in Book https://www.chegg.com/homework-help/Starting-Out-With-Visual-Basic-7th-edition-chapter-3-problem-4PC-solution-9780134400150 ............Beginner Visual basic student very lost in this form. Visual Basic 7th Edition: Tony Gaddis Chapter 3: Variables and

Link to Page in Book

https://www.chegg.com/homework-help/Starting-Out-With-Visual-Basic-7th-edition-chapter-3-problem-4PC-solution-9780134400150

............"Beginner Visual basic student very lost in this form".

Visual Basic 7th Edition: Tony Gaddis

Chapter 3: Variables and Calculations - Programming Challenge 4: Theatre Revenue for

the basics of the assignment. Include enhancements as specified below.

A movie theater only keeps a percentage of the revenue of the revenue earned from ticket sales. The remainder goes to the movie company. Create an application

that calculates and displays the following figures for one night's box office business at a theater.

a. gross revenue for adult tickets sold. This is the amount of money taken in for all adult tickets sold.

b. Net revenue for adult tickets sold. this is the amount of money from adult tickets sales left over after the payment to the movie company has been deducted.

c. Gross revenue for child tickets sold. This is the amount of money taken in for all child tickets sold.

d. Net revenue for child tickets sold. This is the amount of money from child tickets sales left over after the payment to the movie company has been deducted.

e. Total gross revenue. This is the sum of gross revenue for adult and child tickets sold.

f. Total net revenue. This is the sum of net revenue for adult and child tickets sold.

Specifications

1. The form must be renamed and the text changed to Pedro Avila

2. Code must be grouped and commented in compliance with this courses programming standards.

3. All files, forms, and controls MUST be renamed.

4. Option Strict and Option Explicit must be ON.

5. An Accept Button and a CancelButton must be assigned appropriately.

6. Set a logical TabOrder for ALL controls on the form.

7. All buttons and labels (before TextBoxes) must have AccessKeys.

8. Using the GroupBox control create an input area using appropriate labels and TextBoxes. It will allow the user to input the required values.

9. Create a label to display the total number of tickets sold( both Adult and Child). The output to be displayed must use concatenation and should be in the format: "Total Tickets Sold Today: ". where is be calculated from the values entered by the user.

10. Create a Label to display the current date in Long Date format. Use the LOAD event to populate this field.

11. Create three buttons: Calculate Ticket Revenue, Clear, and Exit. Write appropriate code for each button.

12. Use a properly named constate for the percentage kept by the theater. It MUST be a single. Include any required coding to assure its data type is a single.

13. Value from the input fields MUST be assigned to variables and the variables used in calculations.

14. When displaying the gross and net Revenue values, the amounts must be displayed as currency($15,000.00)

15. Exception handlers/s with the appropriate message/s must be included. If the program crashes because of invalid input or processing, It will be eligible or a MAXIMUM of 50% credit, maybe less.

16 CODING:

When the user clicks on the Calculate button, the total count of tickets sold, Gross and Net Revenue values will be computed and displayed in the appropriate labels.

When the user clicks on the Clear button, The contents of the text boxes and the labels used for displaying Revenues will be cleared. The Focus is returned to the first TextBox.

When the user clicks on the Exit button, the program ends.

When the cursor is in one of the four TextBoxes, the background color will be Yellow. When the cursor is no longer in the TextBox, it will return to white.

Hint: GotFocus and LostFocus events.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions