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.
The following sequence of steps will be used to convert a license plate into a car rental code.
67 + 80 + 82 = 229
. 229 + 607 = 836
.836
) and determine the integer remainder after dividing by 26
: 836 % 26 = 4
.836 % 26 = 4
then you would take the 4th letter after 'A'
: 4th letter after 'A'
= E
.CPR 607 = E836
.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.
Prompt the user for the make and model of the car. Use strings to create this part. User input is shown in bold below.
Example:
Enter Make: Chevrolet
Enter Model: Suburban
Prompt the user for the license plate.
Example:
Enter Licence Plate: CPR 607
Print a summary of the output in this format:
Make = Chevrolet
Model = Suburban
CPR 607 = E836
Solve the following run outputs:
RJK 492
SPT 309The input values for the make and model strings are your choice.
All files must incude your name and period in the format
PX_LastName_FirstName_Title
You must Sign In to submit to this assignment
Last modified: December 12, 2022
Back to Lab 10.3 Piglatin