3. 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. bad program.py O == 18 19 20 21 22 23 24 24 25 26 27 28 29 30 31 32 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 #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 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"]}')
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Alert dont submit
Step by step
Solved in 4 steps with 2 images