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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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