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.

 

 

 

Sample Solutions

Item arrangement is the manner by which brands are put into non-promoting media like PC amusements, books, famous tunes and stage plays for e.g. supported activitys for the advancement of Cadbury’s chocolate put in the UK TV cleanser ‘Crowning liturgy Street’ after the opening titles and after and before the business breaks; this is influencing the youngsters and attracting them to purchase the Cadbury chocolate since little kids can’t separate this is an include. It is a developing wonder in market, which has gotten generally little consideration from business ethicists. In advertising at the large scale level, there are issues of maintainability and misuse of assets through overconsumption by encouraging covetousness and realism. Promoting works at the center point of riches creation; it pulls in a ton of the general analysis coordinated at free enterprise concerning the disintegration of regular assets and the devastation of nature. At smaller scale level, it pulls in a ton of reactions for explicit instances of double dealing or conning, for example, deluding/wrong sustenance marks or differential value publicizing. There is across the board analysis of showcasing works on advancing items that are unsafe to wellbeing, similar to high-fat and high-salt sustenances, cigarettes and liquor. UK has made Ofcom(Office of Communication) to make the laws with respect to item situation in a way depicted above.The code incorporates an area on ‘Business references and different issues’. Inside this segment, three standards are indicated (under Section 10): (1) supporters must keep up full publication command over customized content, (2)editorial and publicizing must be plainly isolated, and (3) item position is restricted (http://www.ofcom.org.uk/television/ifi/codes/bcode/business/). Item arrangement and regular promoting morals Moral assessment of promoting rehearses has commonly utilized three noteworthy strands of good reasoning, utilitarianism, deontology and excellence morals (Robin and Reidenbach 1987). We are examining 2 of them. An utilitarian assessment of showcasing is for the most part to concentrate on its convenience to society, the way that at a miniaturized scale level, it helps common trades among makers and purchasers, while at a full scale level, it empowers the general public to appreciate the advantages of the division of work. The moral worries of purchasers in regards to item position fit into this classification – item arrangement of firearms and cigarettes, for instance, might be viewed as deceptive by a few customers. An utilitarian assessment may well arrive at the resolution that item arrangement is in fact, a moral practice. This is under the thinking that the expanded deals are the indications of consumer loyalty as can be sensibly accepted in any event for instances of express item situation. Then again, there is the hazard that expanded item situation may, undermine the nature of intervened amusement and data,, hence decreasing social, utility notwithstanding when it increments financial utility. Goodness morals may give the best study of item situation since it centers around the aims and the character of the individual starting the activity as opposed to the moral status of the demonstration itself. By assessing the virtual morals in item position ome focuses which can be attracted are promoting, lawfulness must be the principle basis for passing judgment on the moral status of the motive.A showcasing effort improved the situation the buyers who are very much educated and who realize this is a kind of ad contrasts in moral terms from publicizing to kids who can’t recognize TV programs, amusements, melodies and publicizing. On the off chance that numerous customers know about the method of item position, it will have less impact morally. Numerous youthful shoppers undoubtedly think about the nature and degree of item arrangement as it happens in films, TV appears and other amusement items. Yet, the degree to which even an insightful gathering of people knows about an item situation correspondence while they are simply appreciating the sensational stimulation is extremely hard to build up. Numerous shoppers will say that they are not affected by promoting, but rather this case appears to be not any more tenable than the case of thinking about item position as a showcasing procedure, it doesn’t invulnerable one to trickiness. Consequently, there is a requirement for a moral investigation that bargains with item arrangement, which again can apply an utilitarian, a deontological and an uprightness morals point of view; aside from this it likewise needs to consider circumstance explicit components that emerge from the idea of the item, the level of buyer information, the ramifications of, showcase division techniques, the expectation, of the advertiser and, the natural genuineness of, the strategy for influence utilized.

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.