Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

4350 Review 4 You are to create a class object called “Employee” which included eight private variables:  firstN  lastN  idNum  wage: holds how much the person makes per hour  weekHrsWkd: holds...

1 answer below »
4350 Review 4
You are to create a class object called “Employee” which included eight private variables:
 firstN
 lastN
 idNum
 wage: holds how much the person makes per hour
 weekHrsWkd: holds how many total hours the person worked each week.
 regHrsAmt: initialize to a fixed amount of 40 using constructor.
 regPay
 otPay

After going over the regular hours, the employee gets 1.5x the wage for each additional hour
worked.
Methods:
 constructor
 properties
 CalcPay(): Calculate the regular pay and overtime pay.


Create an “EmployeeDemo” class. In the main function, the program should ask the user the
number of employee in the company and create a 2-dimensional dynamic a
ay (number of
employee by 4 weeks). Then, the program should ask user to enter each employee’s
information and the amount of hours they worked weekly.

The program shows a menu with employee name for user to choose which employee to display
the following information:
 How much the person totally made
 How much of paycheck is regular pay
 How much of paycheck is overtime pay
Answered Same Day Sep 05, 2021

Solution

Aditya answered on Sep 06 2021
135 Votes
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using System.Transactions;
namespace EmployeeDemo
{
class Employee
{
private string firstN;
private string lastN;
private int idNum;
private float wage;
private float weekHrsWkd;
private int regHrsAmt;
private float regPay;
private float otPay;
public Employee(string firstN, string lastN, int idNum, float wage, float weekHrsWkd)
{
this.firstN =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here