Computer Science, asked by mrnegi426, 3 months ago

7
Write a program to create a class Employee with the data members/instance variables days (to
store number of days worked), rate (to store rate per day in decimals). Define a method void
Sal_Data( int d, double r) to assign parameters d' to days and 'r' to rate. Another method
double Compute_sal()- to calculate total wages (number of days worked rate per day), 15% of
total wages as special allowance and calculate the total salary (total wages + special allowance)
and return the total salary. Also define a main() method to accept number of days worked and
rate per day. Create suitable object of the class and call the functions/methods to print the output.​

Answers

Answered by prabjotkang4u
0

class employee

{int days;

Similar questions