GithubHelp home page GithubHelp logo

cars's Introduction

  1. Name: Mitchell Melby
  2. Student ID: 2327121
  3. Email: [email protected]
  4. Class: CPSC298-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

Linux for developers textbook, class lecture slides https://linuxize.com/post/bash-concatenate-strings/ https://linuxhint.com/bash_append_line_to_file/

cars's People

Contributors

melbymm avatar michaelfahy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.