19. Given the following Python code. Please describe the programming errors in the code and provide the corrections required to fix the program. Please include the line numbers for each correction. Hint: There are 3 errors in the code. Program Description: This program generates a random license place for a user specified car and store the year, make, model, and license plate in a dictionary Author: Faris Hawamdeh 11111 #Prompt the user to enter the year, make, and model of their vehicle year = int(input('Please enter the model year of your vehicle: ')) make int(input('Please enter the maker of your vehicle: ')) model=input('Please enter the model of your vehicle: ') - # Generate the 3-Letter prefix: Can be A-Z letter_a= chr(random.randint (65, 90)) letter_b = chr(random.randint (65, 90)) letter_c= chr(random.randint (65, 90)) # Generate the 4-digit number for the License plate digits = random.randint (1000, 9999) license_plate = letter_a + letter_b + letter_c + digits car = ( 'Year': year, 'Make': make, 'Model': model, 'Plate': license_plate print (f'The license plate for your {car["Year"]} {car["Make"]} {car["Model"]} is {car["Plate"]}')
19. Given the following Python code. Please describe the programming errors in the code and provide the corrections required to fix the program. Please include the line numbers for each correction. Hint: There are 3 errors in the code. Program Description: This program generates a random license place for a user specified car and store the year, make, model, and license plate in a dictionary Author: Faris Hawamdeh 11111 #Prompt the user to enter the year, make, and model of their vehicle year = int(input('Please enter the model year of your vehicle: ')) make int(input('Please enter the maker of your vehicle: ')) model=input('Please enter the model of your vehicle: ') - # Generate the 3-Letter prefix: Can be A-Z letter_a= chr(random.randint (65, 90)) letter_b = chr(random.randint (65, 90)) letter_c= chr(random.randint (65, 90)) # Generate the 4-digit number for the License plate digits = random.randint (1000, 9999) license_plate = letter_a + letter_b + letter_c + digits car = ( 'Year': year, 'Make': make, 'Model': model, 'Plate': license_plate print (f'The license plate for your {car["Year"]} {car["Make"]} {car["Model"]} is {car["Plate"]}')
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
19. Given the following Python code. Please describe the programming errors in the code and provide the corrections required to fix the program. Please include the line numbers for each correction. Hint: There are 3 errors in the code. Program Description: This program generates a random license place for a user specified car and store the year, make, model, and license plate in a dictionary Author: Faris Hawamdeh 11111 #Prompt the user to enter the year, make, and model of their vehicle year = int(input('Please enter the model year of your vehicle: ')) make int(input('Please enter the maker of your vehicle: ')) model=input('Please enter the model of your vehicle: ') - # Generate the 3-Letter prefix: Can be A-Z letter_a= chr(random.randint (65, 90)) letter_b = chr(random.randint (65, 90)) letter_c= chr(random.randint (65, 90)) # Generate the 4-digit number for the License plate digits = random.randint (1000, 9999) license_plate = letter_a + letter_b + letter_c + digits car = ( 'Year': year, 'Make': make, 'Model': model, 'Plate': license_plate print (f'The license plate for your {car["Year"]} {car["Make"]} {car["Model"]} is {car["Plate"]}')
![4567890HDHELYANR12BH567812
30
13
31
bad program.py
3
32
19. Given the following Python code. Please describe the programming errors in the code and
provide the corrections required to fix the program. Please include the line numbers for each
correction. Hint: There are 3 errors in the code.
Program Description:
This program generates a random license place for a user specified car and store
the year, make, model, and license plate in a dictionary
Author: Faris Hawandeh
#Prompt the user to enter the year, make, and model of their vehicle
year= int(input('Please enter the model year of your vehicle: '))
make = int(input('Please enter the maker of your vehicle: '))
model input('Please enter the model of your vehicle: ')
# Generate the 3-Letter prefix: Can be A-Z
letter_a= chr(random.randint (65, 98))
letter_ba chr(random.randint (65, 90))
letter_c= chr(random.randint(65, 90))
# Generate the 4-digit number for the License plate
digits randon.randint (1800, 9999)
license plate letter_a+ letter_b+ letter_c + digits
Ecar = (
"Year': year,
make,
'Make':
'Model': model,
"Plate': license plate
print (f'The license plate for your {car["Year"]} (car["Make"]} (car["Model"]) is (car["Plate"]}')](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe031daf1-5c21-4921-b0ef-e4a42f46f545%2F0dff4ad6-76bc-45eb-8b55-fb5e4612f441%2Fuex5grn_processed.jpeg&w=3840&q=75)
Transcribed Image Text:4567890HDHELYANR12BH567812
30
13
31
bad program.py
3
32
19. Given the following Python code. Please describe the programming errors in the code and
provide the corrections required to fix the program. Please include the line numbers for each
correction. Hint: There are 3 errors in the code.
Program Description:
This program generates a random license place for a user specified car and store
the year, make, model, and license plate in a dictionary
Author: Faris Hawandeh
#Prompt the user to enter the year, make, and model of their vehicle
year= int(input('Please enter the model year of your vehicle: '))
make = int(input('Please enter the maker of your vehicle: '))
model input('Please enter the model of your vehicle: ')
# Generate the 3-Letter prefix: Can be A-Z
letter_a= chr(random.randint (65, 98))
letter_ba chr(random.randint (65, 90))
letter_c= chr(random.randint(65, 90))
# Generate the 4-digit number for the License plate
digits randon.randint (1800, 9999)
license plate letter_a+ letter_b+ letter_c + digits
Ecar = (
"Year': year,
make,
'Make':
'Model': model,
"Plate': license plate
print (f'The license plate for your {car["Year"]} (car["Make"]} (car["Model"]) is (car["Plate"]}')
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education