ElvinGarciaDev / automobile-speed-distance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚗 Automobile Speed/Distance Tracker

This programming project involves creating a C++ program that simulates the speed of a car and calculates the distance traveled over a period of time. Accepts keyboard input from the user and produces text output on the console. Screen Shot 2022-11-24 at 9 35 00 PM

Screen_Recording_2022-11-24_at_4_21_54_PM_AdobeExpress

How It's Made:

Tech used: C++11

Commands: "a" (accelerate) command increase the speed by 5 miles per hour (MPH) over a time interval of 1 second. Similarly, the “b” (brake) command decreases the speed by 5 MPH over a time interval of 1 second, and the “c” (cruise) command keeps the speed constant for a time interval of 1 second. “d” (demo) command outputs a sequence of steps, where each step in the sequence represents one “time interval”. "h" command to print a menu of commands avaliable

Installation

  1. Clone repo
  2. (https://www.youtube.com/watch?v=XaFg2vS62Bg&ab_channel=MackenzieRothenberger)

About


Languages

Language:C++ 100.0%