Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C# An employee has a name, a payrate, and an hoursWorked. The pay amount can be calculated by multiplying payrate and hoursWorked. Create a

in C#

An employee has a name, a payrate, and an hoursWorked. The pay amount can be calculated by multiplying payrate and hoursWorked. Create a class called Employee with three fields (name,payrate, and hoursWorked). the data type for the name should be a string. The data type for payrate and hoursWorked should be double. The class should have a method called GetPayAmount that returns pay amount. The return data type must be double. The class should also include properties, constructor(s), and the ToString method. The ToString method must display employee name and pay amount. The class must be in its own cs file. Then, inside the Main method of the Program class, demonstrate the Employee class by instantiating two employee objects with made up data. One of the employees must be you. Next print both employees.

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

4. What is process redesign?

Answered: 1 week ago