Write Java program using JGrasp


Notice: Trying to access array offset on value of type bool in /home/onliiuxo/public_html/wp-content/themes/betheme/functions/theme-functions.php on line 1490

Notice: Trying to access array offset on value of type bool in /home/onliiuxo/public_html/wp-content/themes/betheme/functions/theme-functions.php on line 1495

Write Java program using JGrasp


Notice: Trying to access array offset on value of type bool in /home/onliiuxo/public_html/wp-content/themes/betheme/functions/theme-functions.php on line 1490

Notice: Trying to access array offset on value of type bool in /home/onliiuxo/public_html/wp-content/themes/betheme/functions/theme-functions.php on line 1495

After a lengthy bid process, it was announced Super Bowl LIV will be held in Manassas, VA next year. The city has agreed to build a stadium and host the event if Mason students help build a program for ticket sales. One student will be selected from all students who submit programs, based on who submits the best program. Meeting with the NFL Commissioner has helped elicit all of the requirements. The cost of a ticket is based on the seat number of the ticket holder:

  1. Seats in the numeric range of 1-31 cost $656.35
  2. Seats in the numeric range of 32-67 cost $391.29
  3. Seats in the numeric range of 68-106 cost $172.40
  4. Seats in the numeric range of 107-306 cost $89.15

Every ticket has a purchase fee of $5.93. For tickets that are sent via postal mail to the ticket holder, a 2% delivery fee on top of the ticket cost and purchase fee is also added. There is no delivery fee for ticket holders that will pick up their ticket in person.

Your goal is to create a program that gathers the ticket holder’s name, seat number, and how the ticket will be received by the ticketholder (sent via postal mail or picked up) for one ticketholder. While gathering this information, if the user enters at least one invalid value, the program must display one error message telling the user they made a mistake and that they should re-run the program to try again. The program must then end at this point. However, if all valid values are entered, the program should calculate the total cost the ticketholder must pay and then print a well-formatted receipt that shows the ticket holder’s name, seat number, how the ticket will be received by the ticketholder, ticket cost, purchase fee, delivery fee (if applicable), and total ticket cost.

Notes:

– full instructions are attached

– I have done a part of the code

– Write java program using JGrasp

– do NOT USE loops in the program