NOTE: This is the second time I am submitting this question. Please, read the question carefully. There are just 2 attri

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

NOTE: This is the second time I am submitting this question. Please, read the question carefully. There are just 2 attri

Post by answerhappygod »

NOTE: This is the second time I am submitting
this question.
Please, read the question carefully. There are just 2
attributes (keys) for the parent class, and their value will be
input by the user and saved in a dictionary. The program allows the
user to make a choice between car, pickup, or end the
program.
Please see the screenshot above of the execution
provided.
This week we will work with classes by creating a virtual
garage. Your program will use the inheritance diagram below in
order to create a parent class and two child classes.
Your program will prompt the user to create at least one object
of each type (Car and Pickup). Using a menu system and capturing
user input your program will allow the user the choice of adding a
car or pickup truck and define the vehicle's attributes. The
program will use user input to define the vehicle's attributes.
Here is a short video that will demonstrate the expected
execution of your virtual garage. It also has several helpful
hints.
Virtual Garage Execution
The following is a detailed list of what your virtual garage
must include.
A Pickup class that is a child class of the Vehicle class with
the methods detailed in the class diagram below. Note you must
override the displayOptions method in your Pickup class.
Class Diagram
The following information provides students with a breakdown of
how this assignment will be assessed.
Note This Is The Second Time I Am Submitting This Question Please Read The Question Carefully There Are Just 2 Attri 1
Note This Is The Second Time I Am Submitting This Question Please Read The Question Carefully There Are Just 2 Attri 1 (20.01 KiB) Viewed 55 times
Note This Is The Second Time I Am Submitting This Question Please Read The Question Carefully There Are Just 2 Attri 2
Note This Is The Second Time I Am Submitting This Question Please Read The Question Carefully There Are Just 2 Attri 2 (74.06 KiB) Viewed 55 times
NOTE: Please, read the question carefully. There are
just 2 attributes (keys) for the parent class, and their value will
be input by the user and saved in a dictionary. The program allows
the user to make a choice between car, pickup, or end the
program.
Please see the screenshot above of the execution
provided.
Class Diagram: Vehicle Attributes vehicle_options: dictionary Methods setMakel) setModel) displayOptions() Car Pickup Methods setDoors() displayOptions() Methods setBedLength() displayOptions()

Drawing Tools Format Tell me what you want to do... F Aan Week Eight Homework.docx - Word File Home Insert Design Layout References Mailings Review View ACROBAT & Cut La Copy C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe Paste Format Welcome to the Bellevue University Garage Clipboard Enter 1 to create a car and 2 to create a pickup 3 to quit: 1 X AaBbCcDa AaBbcd Subtle Em... Empha 5 Enter make: Ford Enter model: Taurus Enter number of doors: 4 You successfully created a car and here are the options you entered. The make: Ford The model: Taurus The number of doors: 4 Enter 1 to create a car and 2 to create a pickup 3 to quit: 2 Enter make: Ford Enter model: F150 Enter bed length: displayOptions(). displayOptions()
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply