Question: I stiil cannot get can someone help me complete the assignment below as per instructions , deadline is tonight, thank you ASSIGNMENT 4 FILE Assignment_4.cpp
I stiil cannot get can someone help me complete the assignment below as per instructions , deadline is tonight, thank you
ASSIGNMENT 4 FILE
Assignment_4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
using namespace std;
void Convert(int inch)
{
int feet, inches;
inches = inch % 12;
feet = inch/12;
cout << " \t\tThe height in feet is" << feet << "\" << inches << "" " << endl;
}
int main()
{
int htInches;
cout << " \t\tEnter height in iches";
cin >> htInches;
Convert(htInches);
cout << " \t\t";
return 0;
}
Assignment instrustions
Now take your Assignment 4 above and modify it. Youre going to add another class for getting the users name. Inherit it. Be sure to have a print function in the base class that you can use and redefine in the derived class. Youre going to also split the project into three files. One (.h) file for the class definitions, both of them. The class implementation file which has the member function definitions. And the main project file where your main function resides. Dont forget to display it when you display the answers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
