Question: Practice with Proficiency Demos & Inheritance (10 pts) Practice Proficiency Demo Pay close attention these requirements: No global variables All class interfaces in .h, all
Practice with Proficiency Demos & Inheritance
(10 pts) Practice Proficiency Demo
- Pay close attention these requirements:
- No global variables
- All class interfaces in .h, all class implementation in .cpp, and a driver.cpp with main
- All class data members must be private
- The information in a prototype supplied in the question may not be changed, but you can add
- Wait to begin until informed by the TAs
- You will be given 1 hour from the time the TAs begin
- You are encouraged to spend time with designing; use scratch paper
- First, open putty.exe or your SSH tool of choice on the computer
- Create a directory called test using the command "mkdir lab5"
- Change into that directory to create and test all of your files, "cd lab5"
- You must stay in this directory
- Begin entering your code using the Linux editor vim (or editor of choice)
- You are also allowed to compile, test, and debug your work
- You will be given a 10, 7, 4 or 1 for complete, almost complete, needs a bit more work, or no idea
- When you are finished, wait for the TA to check you off
- Show, compile, and run your program for the TA
Class/Main Template/Libraries for Common Built-in Functions
#include/* cin, cout, endl */ #include /* srand(), rand(), atoi() */ #include /* time() */ #include /* strlen(), strcmp(), strcpy() */ using namespace std; //class interface file, type.h class type { private: //members public: //members }; //class type implementation, type.cpp type::type() { } //driver file to test your class, driver.cpp int main () { srand (time(NULL)); //seed random generator return 0; }
(5 pts) Begin Inheritance
To earn the last five points of the lab, show your TA that you are making an effort to setting up the inheritance aspects of Program 3 as well as the constructors, accessors, mutators, and Big 3 for the classes. This could be showing all of your .h files being set up in code or showing a thorough design of each class and their relation to each other.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
