= 0
width = build_car(width)
car print(car, end="")
CSC 110 Lab Week 1
Vehicle – Printing the Model-T
In the this program, you will print out ASCII-art of one of the most famous vehicles of all time - the Model-T automobile! Name your program modelt.py
.
Your program should be able to print different cars based on the width of the car. The number that your program accepts should control the width of the center part of the vehicle. A larger width value should make for a longer car, and vice-versa. The height of the vehicle will remain the same regardless of the width entered. Below are several examples of this program running with different values provided. Your program should match the look of the outputs exactly.
.-----------. | ### || ###\ | ### || ####\. D || <> |------+ | ______ /______ | \/ /..\ \_____/ /..\ \| \__/ \__/
= 5
width = build_car(width)
car print(car, end="")
.----------------. | ### || ########\ | ### || #########\. D || <> |------+ | ______ /______ | \/ /..\ \__________/ /..\ \| \__/ \__/
= 12
width = build_car(width)
car print(car, end="")
.-----------------------. | ### || ###############\ | ### || ################\. D || <> |------+ | ______ /______ | \/ /..\ \_________________/ /..\ \| \__/ \__/
Any integer number 0 or greater should be supported. You don’t need to worry about handling negative numbers, fractions, or numbers with decimals.