They have a magnificent team. These people are always kind and willing to listen to your concerns or issues. Better yet, your assignment is always ready before the time, they usually send you a draft to double-check before they finalize your paper.
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
TO INCLUDE YOUR NAME IN COMMENTS. YOU CAN TALK ABOUT IDEAS WITH
OTHERS BUT THE CODE MUST BE SOLELY YOURS.
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.
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.
Read moreEach 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.
Read moreThanks 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.
Read moreYour 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.
Read moreBy 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.
Read more