Skip to content

jedmondson6614/cars

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Identifying Information

  1. Name: Josh Edmondson
  2. Student ID: 2369726
  3. Email: [email protected]
  4. Class: CPSC-298
  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

References

Instructions

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%