Assign tickets | Computer Science homework help

Assign tickets | Computer Science homework help

Full Question:

Project 12-2: Assign tickets with time slots

For this project, you’ll develop an application that assigns tickets that include a time slot when a guest can return to visit an attraction without waiting in line, similar to the way the Fast Pass system works at Disneyland.

The design of the Tickets form

Operation

·         To issue a ticket, the user clicks the Issue Ticket button. A ticket with the next ticket number in the next available time slot is issued.

·         Each time a ticket is issued, it is added to the list box.

·         The title bar for this form displays the current time and an indication of whether the current time slot is open or closed. This information is updated once per second.

·         The labels in the Ticket Availability section of the form indicate how many tickets are outstanding and the time slot that will be assigned to the next ticket that’s issued. These labels are updated as tickets are issued and the time changes.

·         When a time slot begins, any outstanding tickets for that time slot are removed from the list box and the beginning and ending ticket numbers assigned to that slot are displayed in the label inside the group box at the top of the form.

·         To change the options for issuing tickets, the user clicks the Options button. Before the Options dialog box is displayed, a dialog box is displayed that warns the user that all outstanding tickets will be deleted and confirms that the user wants to continue.

The design of the Options form

Operation

·         The user can enter values into the Options dialog box to specify the number of minutes for each time slot, the number of guests allowed into the attraction during each time slot, the time the attraction opens, the time the attraction closes, and the number for the first ticket. The defaults are five minutes per time slot, five guests per time slot, a start time of the current time, an end time of four hours after the current time, and an initial ticket number of 1.

·         When the user clicks the OK button, the Tickets form is displayed.

Specifications

·         Use a Timer control to display the current time in the title bar of the main form and to determine the current time slot.

·         When the application starts, it should display the Options dialog box from the Load event handler for the Tickets form. For this to work without an exception being thrown, you’ll need to disable the Timer control until the Options dialog box is completed.

·         The data the user enters in the Options dialog box should be validated to be sure that the minutes per time slot, guests per time slot, and first ticket number are integers; that the start and end times are DateTime values; and that the difference between the start time and the end time provides for at least two time slots.

·         Create a class that represents a time slot for assigning tickets. This class should have public fields that indicate the time the time slot begins, the length of the time slot, and the number of tickets that have been issued for the time slot. This class should also have a property that gets the time the time slot ends. Use this class to create a time slot object for each time slot between the start and end times entered on the Options dialog box, and store these objects in a collection.

·         Create a class that represents a ticket. This class should have public fields that store the ticket number and the time slot that’s assigned to the ticket and a method that sets the next ticket number. As each ticket is issued, the application should create a ticket object with the next ticket number and add it to a queue. Then, when the time slot for the ticket begins, the ticket should be removed from the queue.

·         Once a time slot begins and the tickets in that time slot are removed from the outstanding list of tickets, the user should not be able to issue any more tickets in that time slot even if the maximum number of tickets for that time slot haven’t been issued.

Notes:

This project requires only minimal object-oriented programming skills (chapter 12 is sufficient) but has extensive collection and date/time requirements. It also requires that you research and use the Timer control, which isn’t presented in the book.

The complexity of the project can be varied as follows:

·         Implement just the ticket assignment portion of the application, with no real-time monitoring of the time.

·         Issue a ticket for the current time slot if tickets are still available.

·         Instead of issuing a ticket for the next available time slot, let the user choose the time slot for the ticket. Then, the tickets in the current time slot will have to be listed individually at the top of the form. Depending on how you design the data store, this may result in a major redesign of the application.

·         Use NumericUpDown controls to select the minutes per window and guests per window from the Options dialog box, and use the DateTimePicker control to select the start and end times. This will require some additional research.

Answer for this question was provided by a homeworkslaves.net tutor. Order your custom-written answer from the best tutors, affordably.

Tutors are waiting 24/7. Hire an Expert for this homework.

Fresh Signup Form

Approximate Cost: $9

Post now and get:

Free Plagiarism Report.
Free Revisions.
10% off on all orders.
Preferred tutor.

Homeworkslaves.net ScamAdviser
University of Suffolk, Ipswich, Bury St Edmunds, Great Yarmouth, Lowestoft assignment help
Homeworkslaves.net Trustpilot

Why work with Homeworkslaves.net Tutors

There are numerous academic assistance websites on the internet. So, what sets Homeworkslaves.net tutors apart? Is it our vocal answer to whether homework, specifically homework is a form of slavery? or is it the affordable & cheap assignment help services offered on our site? Is it the expertise of our premium tutors or is it the professionalism of our support staff? Is it the privacy that is upheld on our system or is it our money back guarantees.

We say, it is all of these:

Verified and Qualified Tutors.
High quality work.
100% Moneyback Guarantee.
Satisfaction Guarantee.
Timely delivery on all posted questions.
Responsive support on all homework related queries.
WhatsApp support for all homework queries.

We’ve also been asked whether ours is a site where students looking for an online homework slave find loads of them. We are categorical about this. our platform is not about homework slaves, instead its about relieving students off the burden of feeling like slaves. Our services are global and draw players from all walks of life. We do not regard our expert tutors as homework slaves. From our wide pool of players, we have native experts for US Students, UK Students, South African Students, Canadian Students, Australian Students, Saudi Arabian Students, among others. The biggest beneficiaries of our academic help services are international students in the US, UK, Canada, and Australia.

You can see our expert tutors and the most recent questions on our platform from students.

Tutor Profiles on Homeworkslaves.net

    • $19.00/hr
    • Experience: 9 years
    • Engineering & Architecture
    • +1
    • $25.00/hr
    • Experience: 7 years
    • Professional Academic Research and Writing with 0% Plagiarism.
    • +1
    • $12.00/hr
    • Experience: 5 years
    • Capstone Proficiency
    • Professional Academic Research and Writing with 0% Plagiarism.
    • $12.00/hr
    • Experience: 12 years
    • Data Analysis
    • Professional Academic Research and Writing with 0% Plagiarism.
    • $10.00/hr
    • Experience: 11 years
    • Professional Academic Research and Writing with 0% Plagiarism.
    • +1
    • Experience: 12 years
    • Professional Academic Research and Writing with 0% Plagiarism.
    • +1
    • $6.00/hr
    • Experience: 3 years
    • Full Stack Programming
    • +1
    • Experience: 23 years
    • Full Stack Programming
    • +1
    • $10.00/hr
    • Experience: 10 years
    • Professional Academic Research and Writing with 0% Plagiarism.
    • $10.00/hr
    • Experience: 2 years
    • Professional Academic Research and Writing with 0% Plagiarism.
    • +1
    • $20.00/hr
    • Experience: 6 years
    • Data Analysis
    • Financial Analysis
    • +2
    • $2.00/hr
    • Experience: 3 years
    • Capstone Proficiency
    • $10.00/hr
    • Experience: 3 years
    • Professional Academic Research and Writing with 0% Plagiarism.
    • +1
    • $22.00/hr
    • Experience: 6 years
    • Engineering & Architecture
    • +1
    • Experience: 0 years

Recently Posted Homework Questions

PROJECT TITLE

Reviews from Our Students

Very Supportive

Rated 5 out of 5
November 1, 2020

I hired a very supportive writer here.= and she delivered high-quality work. I will be coming back.

Donstudent

Homeworkslaves.net subject assistance efforts has everything.

No schema found. No schema found.

Post to Get 10% OFF now and on 

ALL QUESTIONS

you post, FOR LIFE

Hire the best tutor for this assignment here on Homeworkslaves.net at a student-friendly cost today, and always.

10% OFF

Get This Assignment Done NOW

Happy New Year 2022