Categories
Uncategorized

COIT20245 Introduction to Programming:Java Console Program

$20 Bonus + 25% OFF

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

COIT20245 Introduction to Programming

Question:

Task Details

For this assignment, you are required to develop a Java Console Program to demonstrate you can use Java constructs including input/output via a command line, Java primitive and built-in data types, Java defined objects, selection and looping statements, methods, and various other Java commands. Your program must produce the correct results.

You are only allowed to use techniques which have been covered in the first six weeks of the course, you must use the Scanner object for input and no advanced data structures like arrays will be used. Instructions for this appear in the implementation section of this specification.

What to submit for this assignment

The Java source code:

Hotel.java
A report including a flow chart (UML activity diagram) to depict your validation loop for reading the days, how long it took to create, any problems encountered and screen shots of the output produced. (Use Alt-PrtScrn to capture just the console window and you can paste it into your Word document). You should test every possibility in the program.

Assignment specification

The Rocky Budget Hotel management has asked you to write a program to help employees determine the charges for customers staying at their hotel and to also produce some statistics.

You are to write a Java Console Application (Hotel.java) which will allow employees to enter the details of N customers’ names and the number of days to stay at the Rocky Budget Hotel. 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 customer the program will prompt for and accept the name of the customer and the length of stay at the hotel (in whole days), it will then display the total cost of the stay (see sample output below for formatting details).

The pricing structure for staying at the hotel is (maximum fourteen days):

The first day will cost $110.
The next two days will cost $100 per day. 
The next four days will cost $90 per day. 
The next week will cost $70 per day. 

The sliding price scale is to encourage customers to stay longer at the Rocky Budget Hotel, the management has imposed a maximum of fourteen days stay, after that the pricing structure will repeat with another booking needed to be made.

When all customer’ names and days to stay have been entered you need to report the maximum and minimum stay (in days) and the relevant customer’s name, the average stay and the total charges which have been collected.

The required Java Console Application should allow the user to:

1. For each of the N customers: enter the Name, and then enter the Length of stay in whole days. The program will output the charge for the customer’s stay. All dollar values will be formatted to two decimal places (see implementation below with help for doing this).

2. You must ensure the name is not blank so you must implement a validation loop so a valid name is entered. The number of days must be between 1 and 14 inclusive and you will also need to implement a validation loop so valid days are entered.

The program will number each customer in the input prompt.
3. When N customers have been entered, you will output a heading for the statistics “Statistical information for the Rocky Budget Hotel”, the minimum and maximum stays (in days) and the name of the customers with these minimums and maximums, and then what the average stay is in days (formatted to two decimal places) (see sample output below). Note: if more than one customer has an equal maximum or minimum stay you just need to only output one of the customer’s name.

4. Display a welcome message at the beginning “Welcome to the Rocky Budget Hotel system” and an end message “Thank you for using the Rocky Budget Hotel system” and the final line “Program written by ” (see sample output below).

COIT20245 Introduction to Programming

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

18 More Pages to Come in This Document. Get access to the complete answer.

Why only students from Australia, UK and USA, rather our exclusive assignment help services persuade learners from the entire globe. MyAssignmenthelp.com employs handpicked writers to tailor the assignments as par your needs. Chat live with our writer’s team and resolve your homework queries right there! Our content is processed through series of quality check to guarantee 100 percent fresh and superior assignments. Unlimited revisions and free amendments polish the assignments to match the benchmark. We make sure our customers are always protected, so is your information. Our customer service team is online 24×7 a day to let you enjoy hassle free services according to your convenience. Get our academic Assignment Help in three easy steps. Place your order, make the payment and get ready to receive!

More COIT20245 COIT20245 Introduction to Programming: Questions & Answers

Fibonacci numbers

Task 1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 114, … etc. By definition, …

View Answer

COMP 10062 Java Programming

.What is the main difference between a static variable and an instance variable?2.What is the difference between overriding and overloading a method? Give a Java example of overriding.  3.Write a single Java statement to declare and create an array of 5 integers without specifying values for th …

View Answer

Business Management

We are doing a MBA project where we are planning to develop an app. As we have not developed the app and we are just having an idea of the app. We have just done the 1st round of customer discovery, we have tested 3 hypotheses. So for this assignment we want 3 new hypotheses to test, but remember we …

View Answer

ICT321 Architecture and Systems Integration

After evaluating various platforms, RetailCo finally decided to adopt Service Oriented Architecture (SOA) for its future IT infrastructure. The EA team also noticed the trends of new technologies including data analytics, cloud-based services, social media, and mobile devices. It was a shared belief …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Draven Howell

I have completed my Ph.D. in Audit from the London School of Economics.

400 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

38983 Genuine Reviews With a Rating of 4.9/5.

Business Law

Assignment: 1 Page, Deadline:
20 days

Good work but there missing w6 answer. moreover i think few questions required explanation i think can explain little more.

User ID: 8***63 Australia

Civil Law

Home Work: 6 Pages, Deadline:
7 days

Assignment delivered before the deadline. Great work by the team and appreciate the support.

User ID: 8***13 Canberra, Australia

Economics

Assignment: 3.2 Pages, Deadline:
3 days

The assisgnment was properly written with great content and structure. Thank You for the assistance.

User ID: 1***22 Canberra, Singapore

Management

Home Work: 2 Pages, Deadline:
9 days

I am glad to use assignment help. I get nice assignment help from the different trainers.

User ID: 4***45 Canberra, Australia

Psychology

Thesis: 1 Page, Deadline:
6 days

I am very satisfied the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 8***47 Canberra, Singapore

Management

Essay: 4.4 Pages, Deadline:
18 hours

Thank you for the effort of both the author and the expert. Thank you for the effort. The topic is excellent, and I hope to continue at this high leve …

User ID: 9***3 Canberra, Kuwait

HRM

Assignment: 3 Pages, Deadline:
4 days

very good paper, all aspects covered by the author, which was not easy given the scope

User ID: 3***61 Budapest, Hungary

Management

Home Work: 2 Pages, Deadline:
15 days

The information provided is very clear and used good examples and references. There are no grammatical mistakes at all and the standard of writing is …

User ID: 7***15 Berlin, Germany

Nursing

Assignment: 1 Page, Deadline:
5 days

Thank you for the quality assignment , I always trust and get good mark from assignment help . Thank you for helping .

User ID: 4***73 Berlin, Australia

Healthcare

Assignment: 8 Pages, Deadline:
3 days

I have passed my assignment. I got my assignment back on time. Thank you very much.

User ID: 6***42 Berlin, Australia

Psychology

Essay: 8 Pages, Deadline:
10 days

Good work. I will do business again. Great customer service. Greta expert…….

User ID: 8***51 Berlin, United Arab Emirates

Assignment

Home Work: 3 Pages, Deadline:
5 days

I love the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 5***00 Berlin, United States

Healthcare

Assignment: 4 Pages, Deadline:
5 days

I got a good grade on this paper thank you for help and I will order more papers

User ID: 7***29 Garden City, United States

Accounting

Programming: 2.8 Pages, Deadline:
3 days

like the work and the way of writing and the marks was good as i got 79 marks and i like the formate of the writing.

User ID: 6***31 Leichhardt, Australia

Management

Assignment: 7 Pages, Deadline:
5 days

the paper was well written and I passed thank you for your service I would pay again

User ID: 7***29 Garden City, United States

Economics

Assignment: 2 Pages, Deadline:
20 hours

The assignment was received on time and I have to check the assignment and will get back for the feedback thank you

User ID: 8***40 Vancouver, Canada

Accounting

Course Work: 0 Pages, Deadline:
11 hours

Everything was met and done perfectly! It hasn’t been graded but through the explanations, I was able to understand the assignment and how the expe …

User ID: 8***57 Vancouver, Canada

HRM

Assignment: 9 Pages, Deadline:
2 days

Got the great and satisfied result. Thank you the expert team. But the expert team need to write more real and work life example for each assignment i …

User ID: 4***0 Central District, Hong Kong

Management

Home Work: 9 Pages, Deadline:
2 days

Got the great and satisfied result for this assignment. Thank you the expert team, but give little suggest to the team, the assignment need to more re …

User ID: 4***0 Central District, Hong Kong

Management

Assignment: 8 Pages, Deadline:
8 hours

Really impressed by your work. the report really good. all the points are detailly explained and the report format looks great.

User ID: 4***87 Melbourne, Australia

Business Law

Assignment: 1 Page, Deadline:
20 days

Good work but there missing w6 answer. moreover i think few questions required explanation i think can explain little more.

User ID: 8***63 Australia

Civil Law

Home Work: 6 Pages, Deadline:
7 days

Assignment delivered before the deadline. Great work by the team and appreciate the support.

User ID: 8***13 Canberra, Australia

Economics

Assignment: 3.2 Pages, Deadline:
3 days

The assisgnment was properly written with great content and structure. Thank You for the assistance.

User ID: 1***22 Canberra, Singapore

Management

Home Work: 2 Pages, Deadline:
9 days

I am glad to use assignment help. I get nice assignment help from the different trainers.

User ID: 4***45 Canberra, Australia

Psychology

Thesis: 1 Page, Deadline:
6 days

I am very satisfied the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 8***47 Canberra, Singapore

Management

Essay: 4.4 Pages, Deadline:
18 hours

Thank you for the effort of both the author and the expert. Thank you for the effort. The topic is excellent, and I hope to continue at this high leve …

User ID: 9***3 Canberra, Kuwait

HRM

Assignment: 3 Pages, Deadline:
4 days

very good paper, all aspects covered by the author, which was not easy given the scope

User ID: 3***61 Budapest, Hungary

Management

Home Work: 2 Pages, Deadline:
15 days

The information provided is very clear and used good examples and references. There are no grammatical mistakes at all and the standard of writing is …

User ID: 7***15 Berlin, Germany

Nursing

Assignment: 1 Page, Deadline:
5 days

Thank you for the quality assignment , I always trust and get good mark from assignment help . Thank you for helping .

User ID: 4***73 Berlin, Australia

Healthcare

Assignment: 8 Pages, Deadline:
3 days

I have passed my assignment. I got my assignment back on time. Thank you very much.

User ID: 6***42 Berlin, Australia

Psychology

Essay: 8 Pages, Deadline:
10 days

Good work. I will do business again. Great customer service. Greta expert…….

User ID: 8***51 Berlin, United Arab Emirates

Assignment

Home Work: 3 Pages, Deadline:
5 days

I love the work your company does. My papers have never looked so good. Thank you very much for this.

User ID: 5***00 Berlin, United States

Healthcare

Assignment: 4 Pages, Deadline:
5 days

I got a good grade on this paper thank you for help and I will order more papers

User ID: 7***29 Garden City, United States

Accounting

Programming: 2.8 Pages, Deadline:
3 days

like the work and the way of writing and the marks was good as i got 79 marks and i like the formate of the writing.

User ID: 6***31 Leichhardt, Australia

Management

Assignment: 7 Pages, Deadline:
5 days

the paper was well written and I passed thank you for your service I would pay again

User ID: 7***29 Garden City, United States

Economics

Assignment: 2 Pages, Deadline:
20 hours

The assignment was received on time and I have to check the assignment and will get back for the feedback thank you

User ID: 8***40 Vancouver, Canada

Accounting

Course Work: 0 Pages, Deadline:
11 hours

Everything was met and done perfectly! It hasn’t been graded but through the explanations, I was able to understand the assignment and how the expe …

User ID: 8***57 Vancouver, Canada

HRM

Assignment: 9 Pages, Deadline:
2 days

Got the great and satisfied result. Thank you the expert team. But the expert team need to write more real and work life example for each assignment i …

User ID: 4***0 Central District, Hong Kong

Management

Home Work: 9 Pages, Deadline:
2 days

Got the great and satisfied result for this assignment. Thank you the expert team, but give little suggest to the team, the assignment need to more re …

User ID: 4***0 Central District, Hong Kong

Management

Assignment: 8 Pages, Deadline:
8 hours

Really impressed by your work. the report really good. all the points are detailly explained and the report format looks great.

User ID: 4***87 Melbourne, Australia

Have any Query?

Get Homework Help Online From Expert Tutors

X
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?