Discount Get CIS 247C ALL WEEKS Solution ONLY $83.95 $111.93
CIS 247C Week 1 - C++ Programming [$9.99]
CIS 247C Week 2 - C++ Programming – Object Construction and Dat... [$15.99]
CIS 247C Week 3 - C++ Programming – Overloaded Methods and Stat... [$15.99]
CIS 247C Week 4 - C++ Programming – Composition and Class Inter... [$19.99]
CIS 247C Week 5 - C++ Programming – Composition, Inheritance, a... [$19.99]
CIS 247C Week 6 - C++ Programming – Abstract Class and Polymorp... [$19.99]
CIS 247C Week 7 - C++ Programming - Putting It All Together [$9.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS247 CIS 247 CIS/247 - CIS247C - Week 6 - Lab 6 - iLab 6 - C++ Programming – Abstract Class and Polymorphism   – Guaranteed 100% score
    CIS247 CIS 247 CIS/247 - CIS247C - Week 6 - Lab 6 - iLab 6 - C++ Programming – Abstract Class and Polymorphism   – Guaranteed 100% score

CIS247 CIS 247 CIS/247 - CIS247C - Week 6 - Lab 6 - iLab 6 - C++ Programming – Abstract Class and Polymorphism – Guaranteed 100% score

$19.99

We are going to create an abstract Employee class and two pure virtual functions - calculatePay() and displayEmployee(). The abstract Employee class will prevent a programmer from creating an object based on Employee, however, a pointer can still be created. Objects based on Salaried and Hourly will be allowed. The pure virtual function calculatePay() in Employee will force the child classes to implement calculatePay(). The other pure virtual function displayEmployee() in Employee will force the child classes to implement displayEmployee().

We are going to implement Polymorphism and dynamic binding in this iLab.

Deliverables

Due this week:

  • Capture the Console output window and paste it into a Word document.
  • Zip the project folder in the Microsoft Visual Studio.
  • Put the zip file and screenshots (word document) in the Dropbox.
 

i L A B  S T E P S

 

STEP 1: Understand the UML Diagram

 

Notice in the updated UML diagram that the Employee class is designated as abstract by having the class name Employee italicized. Also, the calculatePay method is italicized, which means that it is a pure virtual function and needs to be implemented in the derived classes. In addition, make displayEmployee() method a pure virtual function as well.

STEP 2: Create the Project

 

Create a new project and name it CIS247C_WK6_Lab_LASTNAME. Copy all the source files from the Week 5 project into the Week 6 project.

Before you move on to the next step, build and execute the Week 6 project.

STEP 3: Modify the Employee Class

 
  1. Define calculatePay() as a pure virtual function.
  2. Define displayEmployee() as a pure virtual function.
  3. When class Employee contains two pure virtual functions, it becomes an abstract class.

STEP 4: Create Generalized Input Methods

 

Reuse method getInput() from the previous iLab to prompt the user to enter Employee information.

STEP 5: Modify the Main Method

 

Create two employee pointers with:

Employee *employeeList1 = new Salaried(10000,3); Employee *employeeList2 = new Hourly(50, 40, "full time");

The first employee pointer refers to a salaried employee and the second employee pointer refers to a hourly employee.

Prompt the user to enter information for these two pointers and display the calculated result.

STEP 6: Compile and Test

When done, compile and run your code.
Then, debug any errors until your code is error-free.
Check your output to ensure that you have the desired output, modify your code as necessary, and rebuild.
Below is a complete sample program output for your reference.

STEP 7: Submit Deliverables

Submit your lab to the Dropbox located on the silver tab at the top of this page. For instructions on how to use the Dropbox, read these Step-by-Step Instructions or watch this Dropbox Tutorial.
See Syllabus “Due Dates for Assignments & Exams” for due date information.

Solution for CIS247 Week 6 Lab 6 in C++, Contain C++ project (Using Visual Studio)

It is 100% correct solution

If you have more questions, please contact me via email support@extutorials.com, i will help you any time

Thank you

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B