Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm doing a C# project using VB 2017 Create an employee class. Include the following attributes as properties. First Name Last Name Rate of Pay

I'm doing a C# project using VB 2017

Create an employee class. Include the following attributes as properties.

First Name Last Name Rate of Pay Job Title Hire Date

Add an instance method that returns back the employee's full name.

Add another instance method that calculates the gross amount to pay given the hours the employee worked in the pay period.

Make sure to create useful constructors for your class.

From the main method, instantiate the employee class and populate the properties.

Output the full name using the instance method you created. Output the gross pay given that the employee worked 40 hours using the other instance method that you created.

Make sure to use the proper types in your properties and return types for your methods.

Create an employee class. Include the following attributes as properties.

so far all I have is this and im stuck ;-;

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;

namespace Lesson_5 { class Program { static void Main(string[] args) { EmployeeClass Payperiod = new EmployeeClass(); Payperiod.FirstName = FirstName; Payperiod.LastName = LastName;

Console.WriteLine(Payperiod.ToString()); } }

class EmployeeClass { private string EmployeeFirstName; private string EmployeeLastName;

public EmployeeClass (string Firstname, string LastName) { EmployeeFirstName = FirstName; EmployeeLastName = LastName; }

public string FirstName { get { return FirstName; } set { FirstName = value; } }

public string LastName { get { return LastName; } set { LastName = value; } } } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions