A simple project demonstrating my experience with C++.
C++ is one of the most sought after languages in the job market. While I have programmed in C++ before, none of my public projects use it.
Use C++ to create a program that displays aircraft stored in hangars. The specifications for the hangar and aircraft are as follows.
-
Hangar
- String Name
- Array of Aircraft
-
Aircraft
- String Name
- String Engine
- String Manufacturer
- Integer MaxAltitude
- String Notes
-
Jet
- Extension of Aircraft
- String WingShape
- Boolean isStealth
-
Helicopter
- Extension of Aircraft
- String rotorType
At least two hangars must be defined. One hangar must have an Aircraft and a Jet stored in it. Another hangar must have a Helicopter and a Jet stored in it.
When the program runs, The name of the hangar must be displayed first, followed by all of the aircraft and its info. Rinse and repeat for all other hangars.
These instructions are intended for Linux & Mac Users. It should be done within the terminal
Windows users should install WSL and conduct the deployment of this application within the terminal of that system.
- Ensure g++ is installed.
- This is usually done by typing
g++ --version
in the terminal prompt. - Linux users should have it installed by default.
- If not installed, visit one of these bulletins for installation
- MacOS
- Linux & Windows WSL Users
- Commands that use
sudo apt
may differ depending on what distribution and package manager you are using.
- Commands that use
- Type
g++ HangarMain.cpp
, then hit Enter. - Type
a.out
, then hit Enter. - You should then see output that displays the hangars and all aircraft that are within each one.
Compiled in a Linux Mint environment utilizing g++ version 9.3.0
Developed via Visual Studio Code.
Suggestions and issues should be created in the issues tab of this repo.