Program that processes people as they arrive at a concert

Assignment Help JAVA Programming
Reference no: EM132430731

Problem: Implement a program that processes people as they arrive at a concert. Your program should prompt the user for their role. It then prompts for their credentials. Here are the four types of people (their roles) and the credentials they need to enter the concert venue:

  • regular fan - ticket
  • VIP fan - ticket and backstage pass
  • roadie - backstage pass
  • venue employee - employee ID

After prompting the user for their role and whether they have the proper credentials to enter, your program should print instructions, telling the user where to go. The sample sessions show the messages your program should display when the user is properly credentialed. If the user is not properly credentialed, your program should display "Sorry, you need to leave."

For the user's role question (which asks for 1, 2, 3, or 4), you may assume the user enters an integer.

For the credentials questions, you may assume the user enters "y" or "Y" for yes or "n" or "N" for no.

As always, you must mimic the sample session precisely. In particular, note the colons, blank spaces, blank lines, and so on.

Sample session:

Are you a 1) regular fan, 2) VIP fan, 3) roadie, or 4) venue employee?

Enter 1, 2, 3, or 4: 1

Do you have a ticket? (y/n): Y

Proceed to the standard seating area.

Sample session:

Are you a 1) regular fan, 2) VIP fan, 3) roadie, or 4) venue employee?

Enter 1, 2, 3, or 4: 3

Do you have a backstage pass? (y/n): y

Find the band and do what they need.

Sample session:

Are you a 1) regular fan, 2) VIP fan, 3) roadie, or 4) venue employee?

Enter 1, 2, 3, or 4: 4

Do you have an employee ID? (y/n): y

Go to your work area.

Sample session:

Are you a 1) regular fan, 2) VIP fan, 3) roadie, or 4) venue employee?

Enter 1, 2, 3, or 4: 2

Do you have a ticket? (y/n): Y

Do you have a backstage pass? (y/n): y

Proceed to the VIP seating area.

Sample session:

Are you a 1) regular fan, 2) VIP fan, 3) roadie, or 4) venue employee?

Enter 1, 2, 3, or 4: 2

Do you have a ticket? (y/n): n

Do you have a backstage pass? (y/n): y

Sorry, you need to leave.

Sample session:

Are you a 1) regular fan, 2) VIP fan, 3) roadie, or 4) venue employee?

Enter 1, 2, 3, or 4: 6

Sorry, invalid input. You need to leave.

Reference no: EM132430731

Questions Cloud

Prepare an effective-interest amortization table : Premiere Auto-parts Inc. issued $190,000 of 7%, 10-year bonds at a price of 83 on January 31, 2017. Prepare an effective-interest amortization table
Ethical hacking : There are many mobile platform vulnerabilities listed in the readings from previous lessons. Which do you feel is the greatest threat to users?
What are the attributes of our system : Select three other attributes of our system and relate them to these three pillars. You may use the attributes provided by Shi and Singh for your selection.
Do you feel the benefits of cloud computing : Do you feel the benefits of cloud computing are worth the threats and vulnerabilities?
Program that processes people as they arrive at a concert : Implement a program that processes people as they arrive at a concert. Your program should prompt the user for their role.
Analyze pathophysiology of learning disorders in childhood : Analyze signs and symptoms of learning and motor disorders in childhood. Analyze pathophysiology of learning and motor disorders in childhood.
Discuss affects communities and population segments : Explain how rural communities and other stakeholders are responding to farm/rural transformation.Discuss affects communities and population segments
Cs 151 intro to java programming : Whenever you cook eggs for breakfast, you must decide how many eggs to use. You like to use this rule of thumb-use approximately one and one-half eggs
Describe three authentication types : Describe three authentication types and give an example of each. Describe some ways that organization can recover it's IT resources from disaster.

Reviews

Write a Review

JAVA Programming Questions & Answers

  How you will handle the pros and cons related to javascript

Assume that you were assigned a project at work that includes JavaScript, discuss how you will handle the Pros and Cons related to JavaScript.

  Write grading program for multiple choice test

The University of Southern North Dakota Testing department needs to write grading program for multiple choice test. It should be capable of grading tests

  Modify java application to meet changed business requirement

PRG 420- Modify the Java application using NetBeans IDE to meet these additional and changed business requirements application will now compare the total annual compensation of at least two salespersons.

  Create a program to manage a student database

This programming project involves writing a program to manage a student database. The interface to the program should be a GUI.

  How to create link buttons on the android app

How to create Link buttons on the Android app? Link the buttons that you created in Unit 2 to the corresponding recipe category in a local database. Test the application in the Android Phone Emulator.

  Write a java program that will read a sequence of names

Write a java program that will read a sequence of names (first name followed by last name, separated by at least one space) from a text file and will 1) remove all duplicate names and 2) write the names (last name followed by a comma, followed by one..

  Complete the method definitions in linkedqueue.java

Complete the method definitions in LinkedQueue.java. Some things to think about- In enqueue() and dequeue() you have to maintain both the front and back pointers - this takes a little thought. In particular, in enqueue be careful of the case where..

  Size of the frame to be set a little bit larger than content

I need the size of the frame to be set a little bit larger than its content, which is a label. Also, the location could be set so that it could be appeared not at the upper left corner of the screen. And we can set the foreground and background co..

  Generate a random number

A method called productsBuilder that takes no parameters and returns a String. In the method body construct a String

  Print a space after each seat

Given numRows and numCols, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print a space after each seat

  Calculate the average rainfall over a period of years

ICT102 - Introduction to Programming - Kings Own Institute - Develop Java applications - calculate the average rainfall over a period of years.

  Create a whole different set of variables

I am asked to generate a set of INPUT TEST VALUES. Is that included into this control structure, or do I have to create a whole different set of variables?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd