Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Following is the a simple diagram for a class hierarchy of an employee, you are required to map the

diagram to C++ Code , Each class should have a default and an overloaded constructor and a function

named as SalaryCalculator() which calculates the pay according to the employee the employer have.

Parent class :Employee

Employee child classes:

1)SalariedEmployee

2)CommissionEmployee

3)HourlyEmployee

Employee and CommissionEmployee child class:

1)Base plus Commission Employee

Implement:

 Inheritance

 Dynamic Polymorphism

 A main( ) which can test all the classes


Design a software system for FESCO-WAPDA for 2014 from which they calculate the monthly bill of

Electricity.

Write a class Bill having the following attributes and behavior

 Int Units

 Int per_unit_cost

 Float bill

Pure virtual functions:

 Monthly_bill()

 Bill_display()

Derived the following classes from the base class Bill:

 January_bill

 February_bill

 March_bill

 April_bill

Perform the functionality:-

 Calculate the monthly bills for every month.

 Show the results on the console using Display () function.

 Write destructor when you realize that this is the end of program.

 Use virtual destructor concept in the above hierarchy.

Note:

 Use virtual Member functions for derived classes.

 Use appropriate values for per unit cost of monthly bills.

 User appropriate data types.


Write a function that takes three int parameters a, b, c and returns the median of

 the three numbers..


Why we study numerical method? 


Design a class Cube which has following data members.

 Length

 Width

 Height

A) Define a Member function of class

 Set record () which sets record.

B) Also define following functions

 Volume () (friend function) which calculates volume of cube.

 Display () (friend function) which displays the data members and volume.

C) execute friend functions in main to execute different functionality


What are the states representing the following links:

a link

b visited

c hover

d active


Select the option that creates a sorted list. Where all Java program files are stored, in the folder

a <list>

b <dl>

c <ol>

d <ul>


Choose the correct option. Where all Java program files are stored, in the folder:

A.) bin

B.) scr


Find mistakes:

import java.applet.*;

import java. .*


public class Main extends JApplet

public paint (Graphics g) {

g.drawString ("Welcome in Java Applet!" , 40, 20);

}

}


(Abstract class, Interface, Method Overriding)Write a java program with proper

illustration to implement the following instructions:

e) Create a class Cat that extends Feline, then override the callSound() method and print

“meow” , also override the run() method and return 30.

f) Create a class Wolf that extends Canine, then override the callSound() method and

refer immediate parent class callSound() method , also override the run() method and

return 20.

g) Create a class Dog that extends Canine, then override the callSound() method, print

“woof” and refer immediate parent class callSound() method , also override the run()

method and return 10.

h) Create a class Main and write the main() method, then create object as-

Animals[] animals = new Animals[4];

animals[0] = new Cat();

animals[1] = new Dog();

animals[2] = new Wolf();

animals[3] = new Lion();

for i=0→animals.length: call animals[i].callSound() and analysis the outputs.



LATEST TUTORIALS
APPROVED BY CLIENTS