Question: Python Functional description: Create a python program that will allow a user to store vehicle objects with the following attributes: O ID, Make, Model, Year,

Python

Python Functional description: Create a python program that will allow a userto store vehicle objects with the following attributes: O ID, Make, Model,

Year, Body-type Body type attribute is, e.g.: coupe, sedan, SUV, truck, etc.

Functional description: Create a python program that will allow a user to store vehicle objects with the following attributes: O ID, Make, Model, Year, Body-type Body type attribute is, e.g.: coupe, sedan, SUV, truck, etc. A user should be able to locate cars by various attribute / value pairs Create a basic CLI with the following commands: CRUD (create, read, update, delete) create select_by_id update delete . . . . O note: it's important that you make the dictionary keys exactly those attribute names. printing: print a message from each error handling: "cannot - missing or invalid parameter(s)" "cannot - car not found" o O Reading / selecting These commands will select from your current selection select Reset your current selection clear_selection o 2 ULJ Printing prints current selection o print_selection . only print the attributes shown, even if there are others in the database sample output for print_selection printing selection: 0 ID: 0 Make : Toyota Model : Highlander Year : 2015 Body-type : SUV . Sample 1/0 for additional test cases, see Mimir test case 1 input output create 0 Toyota Highlander 2015 SUV create 1 BMW 3-Series 2020 Convertible select_by_id 0 print_selection select_by_id 1 print_selection update 1 body_type Coupe print_selection delete 1 exit created car with id 0 created car with id 1 selected car o print_selection: 0 id : 0 make: Toyota model : Highlander year : 2015 body_type: SUV selected car 1 print_selection: 1 id: 1 make : BMW model: 3-Series year: 2020 body_type : Convertible updated 1 body_type Coupe print_selection: 1 id : 1 make : BMW model: 3-Series year: 2020 body_type : Coupe deleted car 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!