Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions

Question

3. Job rotation is used for all levels and types of employees.

Answered: 1 week ago