Help me making this script

This script is executed whenever a new vehicle is added to the cycle-motor park
of campus. The script asks for the following information about the car and adds a new
line to the vehicle file.txt: name (name of an animal, unique identifier), color, mark,
model, type (e.g., electrical, manual), number of changes, and enrollment. You should verify that the name
already exists in the file, in order to prevent the creation of duplicates.

What have you attempted so far? Is this in a class you are taking?

In addition to what wbport has already said...

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in the Homework & Coursework forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

If this thread is not about a homework assignment, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.