Question

Week 5 Programming Lab - Broadway Ticket Group Discount ( Web Design With Visual Basic)

Submit Assignment

  • Due No Due Date
  • Points 100
  • Submitting a text entry box or a file upload

Complete the following case programming assignment. To upload and submit the program and materials you created, click the Choose File button to find and select your saved documents. Make sure that the files are saved with your last name in the file name (Example: ch4_case1_Jones.doc).

BROADWAY TICKET GROUP DISCOUNT

Based on the case project shown in Figure 5-100, create a requirements document and a Use Case Definition document and then design a Windows application. Before writing the code, create an event-planning document for each event in the program.

To create a perfect evening for your group, the Broadway Ticket Group Discount Program offers a discount based on group size

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code :-

Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim TicketNo As Double = TextBox1.Text 'decelare ticket value
Dim value As String = ComboBox1.Text 'decelare age range
Dim ticketPrice As Long
If (TicketNo >= 1 AndAlso TicketNo <= 100) Then 'validate no of tickets
Select Case value ' check range based on value using case
Case "1-8"
ticketPrice = 249 * TicketNo ' calculate the final ticket amount
MessageBox.Show("Ticket Price = $" + ticketPrice.ToString())
Case "9-12"
ticketPrice = 219 * TicketNo
MessageBox.Show("Ticket Price = $" + ticketPrice.ToString())
Case "13-24"
ticketPrice = 199 * TicketNo
MessageBox.Show("Ticket Price = $" + ticketPrice.ToString())
Case "25-99"
ticketPrice = 169 * TicketNo
MessageBox.Show("Ticket Price = $" + ticketPrice.ToString())
Case Else
MessageBox.Show("Please Select valid range")
End Select
Else
MessageBox.Show("Please put ticket range 1-100 only")
End If
End Sub
End Class

Output :-

0 Form1 x BROADWAY TICKET COUNTER Select Age Group 13-24 No of Tickets 20 Book Ticketx 0 Form1 BROADWAY TICKET COUNTER Select Age Group : 13-24 No of Tickets: 20 Book Ticket х Ticket Price = $3980 OKForm1 x 0 BROADWAY TICKET COUNTER Select Age Group : 13-24 No of Tickets: 200 Book Ticket X Please put ticket range 1-100 onl

Source Code screen shot :-

Public class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.click Dim TicketNo As Double =

Add a comment
Know the answer?
Add Answer to:
Week 5 Programming Lab - Broadway Ticket Group Discount ( Web Design With Visual Basic) Submit...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • CMSC 256 – Project 5 Programming Assignment 5 Note: When you turn in an assignment to...

    CMSC 256 – Project 5 Programming Assignment 5 Note: When you turn in an assignment to be graded in this class, you are making the claim that you neither gave nor received assistance on the work you turned in (except, of course, assistance from the instructor or teaching assistants). Program: Ticketing System Points: 100 A set of classes is used to handle the different ticket types for a theater event. All tickets have a unique serial number that is assigned...

  • CSC151 JAVA PROGRAMMING LAB #7 OBJECTIVES . . . In this lab assignment, students will learn:...

    CSC151 JAVA PROGRAMMING LAB #7 OBJECTIVES . . . In this lab assignment, students will learn: To get an overview of exceptions and exception handling • To explore the advantages of using exception handling • To declare exceptions in a method header • To throw exceptions in a method • To write a try-catch block to handle exceptions To develop applications with exception handling To use the finally clause in a try-catch block To write data to a file using...

  • Lab #7 CSE110 - Arizona State University Topics • Basic arrays Coding Guidelines • Give identifiers...

    Lab #7 CSE110 - Arizona State University Topics • Basic arrays Coding Guidelines • Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc). • Keep identifiers to a reasonably short length. • Use upper case for constants. Use title case (first letter is upper case) for classes. Use lower case with uppercase word separators for all other identifiers (variables, methods, objects). • Use tabs or spaces to indent code within blocks (code surrounded by braces)....

  • Assignment 6 Due: Apr 12, 2019 at 11:59 PM A6 OOP 3 "PreferredCustomer Class" (need to...

    Assignment 6 Due: Apr 12, 2019 at 11:59 PM A6 OOP 3 "PreferredCustomer Class" (need to create Person, Customer classes described in the previous problem) Access A6 from pdf assignment file. Turn in the following files: a6main.java Customer.java Person.java PreferredCustomer.java program compile and run screenshots design document (including UML) A6 7. Person and Customer Classes esign a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator...

  • Week 5 Case Study: 5.5 (Due week 7) Submit Assignment Due Jul 27 by 11:59pm Points...

    Week 5 Case Study: 5.5 (Due week 7) Submit Assignment Due Jul 27 by 11:59pm Points 25 Submitting a text entry box or a file upload Create a non leading multiple choice answer type physician query for the following scenario. A 79-year-old female, Mrs. Carmichael, is admitted on June 15,2015, with a right hip fracture. Her hospital stay is 3 days long. Prior to surgery, her attending physician, Dr. Fellows, orders blood work to check her hemoglobin and hematocrit levels...

  • Project 2 Sorting, CPU Time, and Big O Analysis Note: you will be using Microsoft Visual...

    Project 2 Sorting, CPU Time, and Big O Analysis Note: you will be using Microsoft Visual Studios 2019 as the compiler. This is an individual assignment. You will have lab time to work on this assignment as well as homework time. Each person will analyze two sorts. The first sort will be either bubble sort or insertion sort. The second sort will be either quick sort or merge sort. Create two projects, one for each sort in the given choices....

  • 9:09 PM Fri Sep 27 Ass1.pdf 9/21/2019 Ass1 Submit Assignment Due Sunday by 11:59pm Points 5...

    9:09 PM Fri Sep 27 Ass1.pdf 9/21/2019 Ass1 Submit Assignment Due Sunday by 11:59pm Points 5 Submitting a file upload File Types zip Goals: Write a C++ class with separate.h and.cpp file, use partially filled arrays, Create a new class called Library that uses a private string array to store the list of books The starter code can be downloaded from https://github.com/pisan 342/ass 1-starter (https://github.com/pisan 342/ass 1-starter) You need to submit ass1.zip with the following files in it. Put all...

  • Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture...

    Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture i sent is the first page 5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 tt r) as output argument. Paste the function code below. Paste code here 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. 7. Design an...

  • Programming Assignment 1 Structures, arrays of structures, functions, header files, multiple code files Program description: Read...

    Programming Assignment 1 Structures, arrays of structures, functions, header files, multiple code files Program description: Read and process a file containing customer purchase data for books. The books available for purchase will be read from a separate data file. Process the customer sales and produce a report of the sales and the remaining book inventory. You are to read a data file (customerList.txt, provided) containing customer book purchasing data. Create a structure to contain the information. The structure will contain...

  • As mentioned in Assignment 5. Prolog can be used to solve problems that are quite difficult with other programming languages.This is mainly because of the declarative nature of the languages....

    As mentioned in Assignment 5. Prolog can be used to solve problems that are quite difficult with other programming languages.This is mainly because of the declarative nature of the languages. What kind of difficulties do you think there will be if you are asked to write a program in another language fe.g. Python) to solve the puzzle in Assignment 5 L Introduction Prolog Is a language that Is sultable for solvins problems in the fleld of artifical Intelligence. That is,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT