New! Hire Essay Assignment Writer Online and Get Flat 20% Discount!!Order Now

COIT20245 Introduction to Programming

  • Subject Code :  

    COIT20245

  • Country :  

    AU

  • University :  

    Central Queensland University

You are to write a Java Console Application (RockyCatering.java) which will allow employees to enter the details of N booking names and the number of guests for each booking. N should be equal to the highest digit in your student ID, use N=3 if your highest digit is less than three. For each booking the program will prompt for and accept the booking name and the number of guests for the booking, it will then display the charge (see sample output below for formatting details).When all the bookings have been entered you need to report the maximum and minimum number of guests per booking and the relevant booking name, the average number of guests per booking and the total charges which have been collected.
The required Java Console Application should allow the user to:
1. For each of the N bookings: enter the Booking name, and then enter the Number of guests. The program will output the charge for the booking. All dollar values will be formatted to two decimal places (see implementation below with help for doing this).
2. You must ensure the booking name is not blank so you must implement a validation loop so a booking name is entered. The number of guests must be greater than or equal to ten and you will also need to implement a validation loop so a valid number of guests are entered.The program will number each booking in the input prompt.
3. When N bookings have been entered, you will output a heading for the statistics “Statistical information for Rocky Catering Service”, the minimum and maximum number of guests in the booking groups and the booking name with these minimums and maximums, and then what the average number of guests per booking is (formatted to two decimal places) (see sample output below). Note: If more than one booking has an equal maximum or minimum guests you just need to only output one booking name

Get An Awesome Price Quote For Your Paper – Absolutely FREE!
    Add File
    Files Missing!

    Please upload all relevant files for quick & complete assistance.

    Getting started with MyEssayAssignmentHelp is FREE

    15,000+ happy customers and counting!

    Rated 4.7/5 based on
    1491 reviews
    ;