# Carrental | Computer Science homework help

AP Computer Science Weekly Project

Weekly Project 2
CarRental
Background:
When you rent a car from an agency, the key ring has several pieces of information: license plate, make
and year of car, and usually a special code. This code could be used for some data processing within the
company’s computers. This lab will practice determining that special car rental code from the license
plate.
Assignment:
1. The following sequence of steps will be used to convert a sample license plate into a car rental code.
a. A license plate consists of 3 letters followed by a space, followed by a 3-digit integer. For
example, CPR 607.
b. Add up the ASCII values of the 3 letters, 67 + 80 + 82 = 229.
c. Add the sum of the letters to the 3-digit integer. For example, 229 + 607 = 836.
d. Take this sum (836) and determine the integer remainder after dividing by 26:
836 % 26 = 4.
e. Determine the 4th letter in the alphabet after the letter ‘A’: 4th letter after ‘A’ = ‘E’
f. Combine the letter and the sum. Thus, we have CPR 607 = E836.
2. You may assume that all sample data will be in the format of 3 alphabet characters, then a space,
followed by a 3-digit integer.
Instructions:
1. Use either Scanner or GUI to get input.
2. Prompt and retrieve the make, model, and license plate of the car.
3. Print the run output in this format.
Make = Chevrolet
Model = Suburban
CPR 607 = E836
4. Test the following sample inputs and have it print the corresponding output:
Make = Ford, Model = Explorer, Plate = RJK 492
Make = Aston Martin, Model = Coupe, Plate = SPT 309
Considerations:
What instance variables, methods, and imports do you need for this class? What String methods will
be helpful? What ASCII values do you need to know? How do mixed data types interact?
HOW TO SUBMIT: SUBMIT YOUR JAVA CODE ONLINE TO SCHOOLOGY. BE SURE
OTHERS BUT THE CODE MUST BE SOLELY YOURS.

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

### Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Order your essay today and save 10% with the coupon code: best10