Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use visual basic 2019!! Write a program that will take orders for upcoming football game tickets and will let the user know the total

Please use visual basic 2019!!image text in transcribedimage text in transcribedimage text in transcribed

Write a program that will take orders for upcoming football game tickets and will let the user know the total cost of their order. The fan is to be prompted (using textboxes) to enter their name (in lastName, (space)firstName format), number of sideline tickets, and number of end zone tickets. Both number of ticket textboxes should contain 0 initially. Your program should display (using a listbox) the name (in firstName(space)lastName format), invoice number, sideline ticket subtotal, endzone ticket subtotal, and total order cost. The subtotals and total should formatted to currency. Tickets prices are set as follows: Sideline tickets - $25 End Zone tickets - $15 In addition to the above ticket cost, the fan has to pay a $1.00 service charge per ticket. For each order (each time Calculate Cost is clicked), an invoice number needs to be generated. The format of this number is: First two letters of the first name (Upper Case) First two letters of the last name (Upper Case) Hyphen (dash/minus). Current order number 0 (Note: Order number should be set as a class variable. The initial value should be 1000. After successfully processing an order, the order number should be incremented by 1.) Hyphen (dash/minus) - Total number of tickets Your program should have three button events. These should perform the following tasks: Calculate Cost (perform the calculations and display the output). Clear Form (clear the name, reset tickets to 0. clear the listbox. and set the focus to the first textbox). First two letters of the first name (Upper Case) First two letters of the last name (Upper Case) Hyphen (dash/minus) . - Current order number o (Note: Order number should be set as a class variable. The initial value should be 1000. After successfully processing an order, the order number should be incremented by 1.) Hyphen (dash/minus) "" - Total number of tickets Your program should have three button events. These should perform the following tasks: Calculate Cost (perform the calculations and display the output). Clear Form (clear the name, reset tickets to 0, clear the listbox, and set the focus to the first textbox). Exit (end the program). - Seating Cost Calculator o x Seating Cost Calculator Customer's Name (Last, First: , ) Customer's Name (Last. First): Wiliams. Tom Sideline Tickets 0 O Sideline Tickets 2 End Zone Tickets 0 End Zone Tickets: 2 Calculate Cost Clear Form Exct Calculate Cout Clear Form Ed 1st Output Customer Name: Tom W1111am Invoice Number: TWIFB1002 Sideline Tickets: End Zone Tickets: $40.00 $20.00 Total Cost: $71.40 Steps required for planning and completing Programming Project 1: 1. Analyze: Make sure you understand the problem and ask questions if you don't. Identify Inputs, Outputs, and Processes a. Steps required for planning and completing Programming Project 1: a. a. c. 1. Analyze: Make sure you understand the problem and ask questions if you don't. a. Identify Inputs, Outputs, and Processes b. The analysis can be typed in Word. Name the file PP1_ .docx 2. Design: Generate the pseudocode for the program. b. You should type the pseudocode in a Word document (use the same file as analysis) 3. Design the interface: Name the project PP1_ b. Create the controls on the form Set the properties for a nice interface (see given sample form - problem statement page) d. Give each control as well as the form meaningful names using proper prefixes. e. Tab order should be set from top to down for fields that need to have focus. f. Name textbox should have appropriate mask. g. Textboxes for Sideline and End Zone tickets should have an initial value of zero (). h. Make sure the form 'looks good'; all controls are lined up. i. The text properties should have appropriate values when needed. 4. Code: a. Following your pseudocode, translate into VB code. b. Use camel casing and meaningful names for all variables. Select appropriate data types as needed. d. Before you submit your program, you must remove any empty stubs and unused variables. Make the spacing consistent. Blank lines can be used within the code to make it more readable, but don't leave gaps in the program where you inserted too many blank lines accidentally. f. The program should include a general comment section just after the Public Class statement. Include: i. Programmed by: Your full name ii. CIS 115 and your section number and class time iii. Programming Project 1 Comments (again) - Each event procedure should begin with a comment just after the header that states the purpose of that event. h. Other comments may be included if you feel they are needed. 5. Test and Debug: Find and correct syntax, execution, and logic errors. b. Test your program with a variety of input to be sure it works properly. c. e. a

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago