fb
$20 Bonus + 25% OFF
$20 Bonus + 25% OFF
Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
loader
Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

250 words

Error goes here

Students Who Viewed This Also Studied

2 Pages
Pathophysiology

Students are required to undertake a presentation working in pairs. The teacher will provide  a scenario  allocate  a partner for this assessment and provide one with a time slot to pre ...

Type

Thesis

Subject

3 Pages
Business Management

Instructions: 1. Answer each of the questions. Each question is worth 30 points. 2. For each of these questions requiring a written answer, write three or four sentences that address the question. In ...

Type

Home Work

Subject

100 Pages
Leadership Strategies for a Changing World

   A minimum of 250 words is required in response to the forum discussion question.   View the following videos:   ·       &nbs ...

Type

Essays

Subject

2 Pages
Organisational Theory

Choose two of the four organisational theory perspectives and discuss how and why they provide us with alternative ways of understanding and analysing Coca-Cola and its relationship with its organisat ...

Type

Thesis

Subject

COIT20245 Introduction to Programming

Question

Answered

Write a Java application that calculates and displays rentals of hiring car for N customers who hire

cars from a local car rental company based in Rockhampton, Australia. N should be declared as a

constant and should be equal to the largest digit of your student id number (e.g. if your student id is

s0705544 then N should be equal to 7). Assume N=4, if the largest digit of your student id number is

less than 4. The standard charges of car rental from this company are shown below in Table 1.

 Table 1. The standard charges for car rentals

 Days of rental Charge

 1 − 5 days $25.0/per day (base rate)

 6 − 10 days $22.5/per day

 More than 10 days $21.0/per day

The application should ask the user to enter the customer name, the number of days for renting a car,

and yes or no to indicate whether the customer receives a special offer or not. The special offer will

give customers a 10% discount of the rental no matter how many days they hire a car. Assume that the

number of days to be entered is an integer type with the range between 1 and 365. An error message

should be issued if a user enters a value beyond this range and the re-entering is required. After

entering the above three data items, the program makes a calculation of rental and displays the result

as shown in Figure 1. The program should be kept running with entering next set of input data. After

all N sets of input data are entered from the keyboard, if the calculation of your program is

successfully finished, the execution of your program will also display the information that includes

the customer spending most rental, the customer spending least rental as well as a simple statistics bar

chart to display how many rents with the number of days are less than 7 days and greater than/equal 7

days in two lines respectively.(Based on historical statistics, most customers hire a car for a period of

7 days). These requirements and the result also can be shown in Figure 2 on next page. Your program

should display a similar screen image when it runs. The application should be user-friendly by

displaying appropriate welcome, exit and error message. Please note: (1)For simplicity, ignore some

complicated factors such as car type, fuel usage, running kilometres in the real-world application.

This is a simplified computation model for our purpose of programming exercise. (2)A special offer

can be represented by a boolean variable with the value of true/false, or an integer variable with the 

value of 1 and 0, or a String variable with the value of yes or no (you can use String class built-in

method equal( ) to compare two strings); and (3) If the value of N is re-set, your program should

be run as normal without changing any source code except setting N with a different value.

The application can be implemented in a few of different ways. One of implementations is to use the

following classes and methods:

public class CarRental

{

 //declare data members

 public CarRental( ) //constructor

 public void setName(String n)

 public String getName()

 public void setDays(int d)

 public int getDays()

 ………...

 public double calulateRental()

 public void displayInfo()

}

public class CarRentalTest

{

 public static main(String [ ] args)

{

 //declare data members

 // create Scanner object, create a CarRental Object

 // use a loop to read data, call methods

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.

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

MyAssignmenthelp.com is a reliable college essay writing service provider that students can trust to overcome their academic problems. With a team of most efficient and hardworking assignment writers, we are capable of providing fast essay writing services in more than 100 subjects. Students, who decide to take urgent essay help from us, are guaranteed to receive completed essay assignments within any short time limit. Some of our popular essay help services include application essay help, argumentative essay paper help, literature essay assistance, etc.

More COIT20245 Introduction to Programming: Questions & Answers

Q

Students are required to undertake a presentation working in pairs. The teacher will provide  a scenario  allocate  a partner for this assessment and provide one with a time slot to present one's presentation in week 10. The learning session is to be presented for 15 minutes during cl ...

View Answer
Q

Instructions: 1. Answer each of the questions. Each question is worth 30 points. 2. For each of these questions requiring a written answer, write three or four sentences that address the question. In all answers, you should use your own wording to demonstrate your understanding. Although you have ac ...

View Answer
Q

   A minimum of 250 words is required in response to the forum discussion question.   View the following videos:   ·         `THINK: A Forum on the Future of Leadership,    http://www.youtube.com/watch?v=YjMTx ...

View Answer
Q

Choose two of the four organisational theory perspectives and discuss how and why they provide us with alternative ways of understanding and analysing Coca-Cola and its relationship with its organisational environment. Draw upon the required textbook and Coca-Cola readings, and your own research to ...

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

expert
student rating student rating student rating student rating student rating
Konnor Bernard

Master of management (Health service management) from Yale School of Public Health

900 - Completed Orders

Hire Me
expert
student rating student rating student rating student rating student rating
Frost Barlow

MS in Statistics

360 - Completed Orders

Hire Me
expert
student rating student rating student rating student rating student rating
Maddox Dowling

PhD in Human Resource Management

161 - Completed Orders

Hire Me
expert
student rating student rating student rating student rating student rating
Arthur McPherson

MSc in Psychology

928 - Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Assignment: 11 Pages, Deadline: 11 days

It was great assignment , i have got very high score on this course . many thanks

flag User ID: 7***78 Saudi Arabia

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Assignment: 12 Pages, Deadline: 17 days

Thank you for another fantastic assignment help, i very pleased on this work i must say once again thank you

flag User ID: 7***88 Melbourne, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Marketing

Assignment: 3 Pages, Deadline: 2 days

I am happy with the result. The paper is concise and ideas are well presented. Key details needed to respond to the task are evident.

flag User ID: 7***73 Indonesia

student rating student rating student rating student rating student rating
08 Dec 2021

Marketing

Assignment: 2 Pages, Deadline: 1 day

The paper is well-written and covered the required task. I am happy for the output.

flag User ID: 7***73 Indonesia

student rating student rating student rating student rating student rating
08 Dec 2021

Finance

Home Work: 1 Page, Deadline: 7 days

thanks for the grades its very nice to get your great and supportive services, appreciate the expert and the whole team.

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Business Law

Home Work: 1 Page, Deadline: 6 days

I got 52 marks out of 100 marks, i am really happy for these grades in business law, because its tough marking subject . really appreciate the expert ...

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Project Management

Home Work: 1 Page, Deadline: 4 days

i got 64 marks out 100 marks, thank you so much for the efforts and supports. I appreciate the whole team.

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Home Work: 1 Page, Deadline: 6 days

i got 70 marks out 100 . Thanks for the grades and efforts made by the whole team.Great!

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Assignment: 8 Pages, Deadline: 13 days

Quick response and doing my escalation properly, satisfied in general and will be happy to make another order anytime soon.

flag User ID: 4***31 Swansea, Great Britain

student rating student rating student rating student rating student rating
08 Dec 2021

Assignment

Home Work: 1 Page, Deadline: 7 hours

This was spot on! Thank you so much for your help! This was spot on! Thank you so much for your help!T his was spot on! Thank you so much for your hel ...

flag User ID: 8***59 United States

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Assignment: 11 Pages, Deadline: 11 days

It was great assignment , i have got very high score on this course . many thanks

flag User ID: 7***78 Saudi Arabia

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Assignment: 12 Pages, Deadline: 17 days

Thank you for another fantastic assignment help, i very pleased on this work i must say once again thank you

flag User ID: 7***88 Melbourne, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Marketing

Assignment: 3 Pages, Deadline: 2 days

I am happy with the result. The paper is concise and ideas are well presented. Key details needed to respond to the task are evident.

flag User ID: 7***73 Indonesia

student rating student rating student rating student rating student rating
08 Dec 2021

Marketing

Assignment: 2 Pages, Deadline: 1 day

The paper is well-written and covered the required task. I am happy for the output.

flag User ID: 7***73 Indonesia

student rating student rating student rating student rating student rating
08 Dec 2021

Finance

Home Work: 1 Page, Deadline: 7 days

thanks for the grades its very nice to get your great and supportive services, appreciate the expert and the whole team.

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Business Law

Home Work: 1 Page, Deadline: 6 days

I got 52 marks out of 100 marks, i am really happy for these grades in business law, because its tough marking subject . really appreciate the expert ...

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Project Management

Home Work: 1 Page, Deadline: 4 days

i got 64 marks out 100 marks, thank you so much for the efforts and supports. I appreciate the whole team.

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Home Work: 1 Page, Deadline: 6 days

i got 70 marks out 100 . Thanks for the grades and efforts made by the whole team.Great!

flag User ID: 6***96 Kashipur, Australia

student rating student rating student rating student rating student rating
08 Dec 2021

Management

Assignment: 8 Pages, Deadline: 13 days

Quick response and doing my escalation properly, satisfied in general and will be happy to make another order anytime soon.

flag User ID: 4***31 Swansea, Great Britain

student rating student rating student rating student rating student rating
08 Dec 2021

Assignment

Home Work: 1 Page, Deadline: 7 hours

This was spot on! Thank you so much for your help! This was spot on! Thank you so much for your help!T his was spot on! Thank you so much for your hel ...

flag User ID: 8***59 United States

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile
Have any Query?