Question: General Requirements: Write following program using Python API Specifications: Create folder labtest2_YOUR_STUDENT_ID In the folder create a file labtestpy and following code to the file

General Requirements:

Write following program using Python API

Specifications:

  1. Create folder labtest2_YOUR_STUDENT_ID
  2. In the folder create a file labtestpy and following code to the file

import os

PATH = os.path.dirname(os.path.realpath(__file__))

FILE = out.txt

  1. Write your name and studentID in the first line of the file
  2. Your script should be able to accept Cars data from the user and add the information in a FILE that will be located in the PATH. Give the option to user to enter more than one car data. (hint: you may ask user how many set of car data they have or ask the user at end of each entry to confirm if they have another input)

  1. Student Data should include the following in the CSV format

LicensePlate, Make, Model, Color, Year, Price

Example:

ABC123, Ford, Mustang, Red, 1995, 599

  1. Your application should provide the functionality to display the student data as needed using license plate number.

  1. Marking scheme:

UI: 3 points

File creation: 3 points

Writing to file: 3 points

Search function: 1 points

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!