Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

This answer was rated:

Create a class whose main() method assigns cars and rental…

Create a class whose main()...
Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuously prompts for input data until the user indicates the end of the data has been reached. Input data includes the following: Customer name Code for desired car type—A for Antique Car or L for Luxury Car Numbers of days for rental In the main() method, create four parallel arrays. The first three contain car descriptions, daily rental fees, and the car-type code, as follows: Description Daily Fee Code 1967 Ford Mustang $ 65 A 1922 Ford Model T $ 95 A 2008 Lincoln Continental $135 L 2002 Lexus $140 L 2007 BMW $160 L 1910 Mercer Runabout $165 A 2009 Mercedes Benz $200 L 1930 Cadillac V-16 $205 A The fourth array contains an indicator that specifies whether the car is already rented out or not. At the start of the program, none of the cars are rented. After the user is prompted for the first customer’s data, pass the customer’s name, car type requested, and the four arrays of data to a method named fulfillRequest(). The method finds the first available car of the correct type, displays its description and rental fee, and changes the rental indicator to show the car is no longer available. If no cars are available of the type requested by the customer, display an appropriate message. The method returns the daily rental fee unless no cars of the correct type are available, in which case the method returns 0. The main() method displays the daily rental fee. If a car of the correct type is available, the main() method should pass the daily rental fee, the number of days for the rental, and the car type requested to a method named calculateContractAmount(). The contract amount is the daily fee times the number of days plus tax. The tax is 6 percent of the rental price for an antique car and 8 percent of the price for a luxury car. The method returns the amount of the contract to the main() method, where it is displayed. Be

Read more: http://www.justanswer.com/questions/3geus-create-a-class-whose-main-method-assigns-cars-and-rental#ixzz0sBRO7kdu
Show More
Show Less
Ask Your Own Programming Question
Answered in 12 minutes by:
6/28/2010
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,507
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified
Hi,
Welcome to JustAnswer
Thank you for requesting me.
Download your answer from here.
Ask me if you need more information.
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,507
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified
LogicPro and 87 other Programming Specialists are ready to help you
Ask your own question now
Customer reply replied 8 years ago

LogicPro,

 

Thanks so much. I really appreciate your help in the right direction for this.

 

Customer/p>
Thank you
Ask Your Own Programming Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,507
13,507 Satisfied Customers
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

13,507 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

848 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I need help write a program for the following: Create a class
I need help write a program for the following: Create a class named CarRental that contains fields that hold a renter's name, zip code, size of the car rented, daily rental fee, length of rental in da… read more
Ansh P.
Ansh P.
System Analyst
Bachelor\u0027s Degree
6,393 satisfied customers
Week 4 Case ProblemNeed following java programCase:
Case: Cost Is No Object 1. In earlier chapters you developed classes needed for Cost Is No Object—a car rental service that specializes in lending antique and luxury cars to clients on a short-term ba… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
Hello, I need help on a simple program I am currently writing.
Hello, I need help on a simple program I am currently writing. I am using BlueJ Java language programming. Does anyone on-line have any experience in this sort of field? Many thanks… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Create a class named CarRental that contains fields that hold
Create a class named CarRental that contains fields that hold a renter's name, zip code, size of the car rented, daily rental fee, length of rental in days, and total rental fee. The class contains a … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Hi, I am doing an assignment and i have to use the VLOOKUP
Hi, I am doing an assignment and i have to use the VLOOKUP function. Here is a table that I have: Car Type Code Car Category Date Rented Date Returned Days Rented Odometer Start End Kilometres Travell… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
1. Cost Is No Object is a car rental service that specializes
1. Cost Is No Object is a car rental service that specializes in lending antique and luxury cars to clients on a short-term basis. A typical customer might rent a vintage convertible to transport out-… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
A rent-a-car company has the following system for computing
A rent-a-car company has the following system for computing a customer's rental car bill. 1. The daily rate includes 150 mileage allowance (free miles). An additional 25 cents is charged on each mile … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
In Chapter 1, you thought about the objects needed for programs
In Chapter 1, you thought about the objects needed for programs for Cost Is No Object—a car rental service that specializes in lending antique and luxury cars to clients on a short-term basis. One req… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
102 ADVANCED PROGRAMMING USING VISUAL BASIC 2008 Building Multitier
102 ADVANCED PROGRAMMING USING VISUAL BASIC 2008 Building Multitier Programs with Classes Business Services Tier Calculate the amount due based on the following schedule: Days Destination Standard pri… read more
Jason Jones
Jason Jones
AAS Information Technology
6,327 satisfied customers
Ingo U, I am in need of your assistance again with a programming
Ingo U, I am in need of your assistance again with a programming project that has 2 parts. Please read below. Part 1: Design and code a project to calculate the amount due for rentals. Movies may be i… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
Beginning programming student writing the first program, very
Beginning programming student writing the first program, very basics. However I would like to make sure the question is asnswered properlly. Any Quotes? Overview of Computer Programming Case: Cost Is … read more
Ansh P.
Ansh P.
System Analyst
Bachelor\u0027s Degree
6,393 satisfied customers
Car Assignments Create a class whose main() method assigns
Car Assignments Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuously prompts for input data until the user indicates the end of th… read more
Ansh P.
Ansh P.
System Analyst
Bachelor\u0027s Degree
6,393 satisfied customers
You have provided an answer to a homework assignment. Id
You have provided an answer to a homework assignment. I'd like access as well. Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuousl… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Car Assignments Create a class whose main() method assigns
Car Assignments Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuously prompts for input data until the user indicates the end of th… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Create a class whose main() method assigns cars and rental
Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuously prompts for input data until the user indicates the end of the data has been … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
I need this one in pseudocode also. Create a class whose main()
I need this one in pseudocode also. Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuously prompts for input data until the user ind… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Hopefully somebody can help me out on this one. Just needs
Hopefully somebody can help me out on this one. Just needs to be a simple program that will do all of this...Thanks.. Create a class whose main() method assigns cars and rental fees to customers for t… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Create a class whose main() method assigns cars and rental
Create a class whose main() method assigns cars and rental fees to customers for the current day. The program continuously prompts for input data until the user indicates the end of the data has been … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,507 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x