arielmata / cars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Identifying Information:

  1. Name: Ariel Gutierrez
  2. Student ID: 2318163
  3. Email: arigutierrez@chapman.edu
  4. Class: CPSC 298-01
  5. Assignment: cars

Application Purpose

This repo will contain a bash script named “cars.sh” that will help a user maintain an inventory of old cars.

The user will be presented with a menu of three options:

  1. type the number 1 to enter a new car
  2. type the number 2 to display the list of cars
  3. type the number 3 to quit and exit the program
     

If the user chooses to enter a car they will be prompted separately for the:

  • Year
  • Make
  • Model

These values will be combined into a single string with the values separated by colons (:) and appended to the My_old_cars file
 

If the user chooses to list the cars

The program will display the lines of the My_old_cars file, sorted by year

If the user chooses to Quit

The program will display a “Goodbye” message and exit.

Files

  1. cars.sh
  2. cars-input
  3. My_old_cars

Known Errors

N/A

References

N/A

Instructions

To run the script with input from the included numbers-input file: ./cars.sh < cars-input

About


Languages

Language:Shell 100.0%