in C# An employee has a name- a payrate- and an hoursWorked- The pay a.docx

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. .

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.

Recomendados

C++ Program Design a Payroll class that has fields for an employee-'s.docx von
C++ Program Design a Payroll class that has fields for an employee-'s.docxC++ Program Design a Payroll class that has fields for an employee-'s.docx
C++ Program Design a Payroll class that has fields for an employee-'s.docxmarions12
18 views2 Folien
Q1- This programme is to demonstrate the use of object orientation usi.docx von
Q1- This programme is to demonstrate the use of object orientation usi.docxQ1- This programme is to demonstrate the use of object orientation usi.docx
Q1- This programme is to demonstrate the use of object orientation usi.docxConnorXZfPullmann
4 views1 Folie
Write a class named Bill with the following specifications - The cla.pdf von
 Write a class named Bill with the following specifications - The cla.pdf Write a class named Bill with the following specifications - The cla.pdf
Write a class named Bill with the following specifications - The cla.pdfssuser8308881
3 views1 Folie
pleace use structs and malloc include the whole code and w.pdf von
pleace use structs and malloc  include the whole code and w.pdfpleace use structs and malloc  include the whole code and w.pdf
pleace use structs and malloc include the whole code and w.pdfaglowcollection
2 views1 Folie
Assignment in java von
Assignment in javaAssignment in java
Assignment in javaMariel Canonicato
990 views2 Folien
Instructions Write a class named Bill with the following specificatio.pdf von
 Instructions Write a class named Bill with the following specificatio.pdf Instructions Write a class named Bill with the following specificatio.pdf
Instructions Write a class named Bill with the following specificatio.pdfALANKARSTEELINDUSTRI
3 views1 Folie

Más contenido relacionado

Similar a in C# An employee has a name- a payrate- and an hoursWorked- The pay a.docx

Object Oriented Programming Assignment 4 von
Object Oriented Programming Assignment 4Object Oriented Programming Assignment 4
Object Oriented Programming Assignment 4Kasun Ranga Wijeweera
125 views6 Folien
C++ Write a program that will keep track of information ab.pdf von
C++   Write a program that will keep track of information ab.pdfC++   Write a program that will keep track of information ab.pdf
C++ Write a program that will keep track of information ab.pdfjaipur2
2 views1 Folie
Plsql task von
Plsql taskPlsql task
Plsql taskNawaz Sk
3.9K views5 Folien
Write a class named Employee, with the class declaration in a fi.docx von
Write a class named Employee, with the class declaration in a fi.docxWrite a class named Employee, with the class declaration in a fi.docx
Write a class named Employee, with the class declaration in a fi.docxsalmonpybus
3 views2 Folien
C# programming (3rd semester) von
C# programming (3rd semester)C# programming (3rd semester)
C# programming (3rd semester)Ketan Rajpal
218 views70 Folien
C++ ONLY Write a program that will keep track of information.pdf von
C++ ONLY Write a program that will keep track of information.pdfC++ ONLY Write a program that will keep track of information.pdf
C++ ONLY Write a program that will keep track of information.pdfjaipur2
2 views1 Folie

Similar a in C# An employee has a name- a payrate- and an hoursWorked- The pay a.docx(20)

C++ Write a program that will keep track of information ab.pdf von jaipur2
C++   Write a program that will keep track of information ab.pdfC++   Write a program that will keep track of information ab.pdf
C++ Write a program that will keep track of information ab.pdf
jaipur22 views
Plsql task von Nawaz Sk
Plsql taskPlsql task
Plsql task
Nawaz Sk3.9K views
Write a class named Employee, with the class declaration in a fi.docx von salmonpybus
Write a class named Employee, with the class declaration in a fi.docxWrite a class named Employee, with the class declaration in a fi.docx
Write a class named Employee, with the class declaration in a fi.docx
salmonpybus3 views
C# programming (3rd semester) von Ketan Rajpal
C# programming (3rd semester)C# programming (3rd semester)
C# programming (3rd semester)
Ketan Rajpal218 views
C++ ONLY Write a program that will keep track of information.pdf von jaipur2
C++ ONLY Write a program that will keep track of information.pdfC++ ONLY Write a program that will keep track of information.pdf
C++ ONLY Write a program that will keep track of information.pdf
jaipur22 views
I am having trouble writing the individual files for part 1, which i.pdf von mallik3000
I am having trouble writing the individual files for part 1, which i.pdfI am having trouble writing the individual files for part 1, which i.pdf
I am having trouble writing the individual files for part 1, which i.pdf
mallik30004 views
Hello- Please I need this to be done in C# - never mind for the origin.docx von delicecogupdyke
Hello- Please I need this to be done in C# - never mind for the origin.docxHello- Please I need this to be done in C# - never mind for the origin.docx
Hello- Please I need this to be done in C# - never mind for the origin.docx
delicecogupdyke2 views
Create a C# program that inputs a double number typed by the use.docx von clayrhr
Create a C# program that inputs a double number typed by the use.docxCreate a C# program that inputs a double number typed by the use.docx
Create a C# program that inputs a double number typed by the use.docx
clayrhr3 views
Please note This is only a word document with the codes and scree.docx von randymartin91030
Please note This is only a word document with the codes and scree.docxPlease note This is only a word document with the codes and scree.docx
Please note This is only a word document with the codes and scree.docx
Implement a superclass Person_ltYourInitialsgt Make two.pdf von ADITIEYEWEAR
Implement a superclass Person_ltYourInitialsgt Make two.pdfImplement a superclass Person_ltYourInitialsgt Make two.pdf
Implement a superclass Person_ltYourInitialsgt Make two.pdf
ADITIEYEWEAR6 views
JavaWrite a class named Employee that has the following fields na.pdf von eyevisioncare1
JavaWrite a class named Employee that has the following fields na.pdfJavaWrite a class named Employee that has the following fields na.pdf
JavaWrite a class named Employee that has the following fields na.pdf
eyevisioncare16 views
JAVA practical Exam Questions (1).docx von Lucky Ally
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docx
Lucky Ally6 views
Practical java von nirmit
Practical javaPractical java
Practical java
nirmit3.4K views
Mmt 001 von sujatam8
Mmt 001Mmt 001
Mmt 001
sujatam8506 views

Más de lucilabevin

Job and career growth in the database industry are strong and predicte.docx von
Job and career growth in the database industry are strong and predicte.docxJob and career growth in the database industry are strong and predicte.docx
Job and career growth in the database industry are strong and predicte.docxlucilabevin
10 views1 Folie
Jim recently joined the Austin Barter Club- an organization that facil.docx von
Jim recently joined the Austin Barter Club- an organization that facil.docxJim recently joined the Austin Barter Club- an organization that facil.docx
Jim recently joined the Austin Barter Club- an organization that facil.docxlucilabevin
6 views1 Folie
jiffy lube wants to compare productivity in 2 locations- locations b c.docx von
jiffy lube wants to compare productivity in 2 locations- locations b c.docxjiffy lube wants to compare productivity in 2 locations- locations b c.docx
jiffy lube wants to compare productivity in 2 locations- locations b c.docxlucilabevin
4 views1 Folie
JKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docx von
JKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docxJKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docx
JKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docxlucilabevin
2 views1 Folie
Jimmy has fallen on hard times recently- Last year he borrowed $250-00.docx von
Jimmy has fallen on hard times recently- Last year he borrowed $250-00.docxJimmy has fallen on hard times recently- Last year he borrowed $250-00.docx
Jimmy has fallen on hard times recently- Last year he borrowed $250-00.docxlucilabevin
2 views1 Folie
Jerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docx von
Jerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docxJerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docx
Jerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docxlucilabevin
4 views1 Folie

Más de lucilabevin(20)

Job and career growth in the database industry are strong and predicte.docx von lucilabevin
Job and career growth in the database industry are strong and predicte.docxJob and career growth in the database industry are strong and predicte.docx
Job and career growth in the database industry are strong and predicte.docx
lucilabevin10 views
Jim recently joined the Austin Barter Club- an organization that facil.docx von lucilabevin
Jim recently joined the Austin Barter Club- an organization that facil.docxJim recently joined the Austin Barter Club- an organization that facil.docx
Jim recently joined the Austin Barter Club- an organization that facil.docx
lucilabevin6 views
jiffy lube wants to compare productivity in 2 locations- locations b c.docx von lucilabevin
jiffy lube wants to compare productivity in 2 locations- locations b c.docxjiffy lube wants to compare productivity in 2 locations- locations b c.docx
jiffy lube wants to compare productivity in 2 locations- locations b c.docx
lucilabevin4 views
JKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docx von lucilabevin
JKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docxJKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docx
JKCorp- was listed in the US- sock marke- and isued lever 2 ADR- Whot.docx
lucilabevin2 views
Jimmy has fallen on hard times recently- Last year he borrowed $250-00.docx von lucilabevin
Jimmy has fallen on hard times recently- Last year he borrowed $250-00.docxJimmy has fallen on hard times recently- Last year he borrowed $250-00.docx
Jimmy has fallen on hard times recently- Last year he borrowed $250-00.docx
lucilabevin2 views
Jerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docx von lucilabevin
Jerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docxJerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docx
Jerrico Wallboard Co- had a beginning inventory of 9-850 shoes on Janu.docx
lucilabevin4 views
JCL Inc- is a major chip manufacturing firm that sells its products to (3).docx von lucilabevin
JCL Inc- is a major chip manufacturing firm that sells its products to (3).docxJCL Inc- is a major chip manufacturing firm that sells its products to (3).docx
JCL Inc- is a major chip manufacturing firm that sells its products to (3).docx
lucilabevin9 views
Java-Data structure Complete the method below- which should return a n.docx von lucilabevin
Java-Data structure Complete the method below- which should return a n.docxJava-Data structure Complete the method below- which should return a n.docx
Java-Data structure Complete the method below- which should return a n.docx
lucilabevin2 views
Ivanhoe Products uses both special journals and a general journal- Iva.docx von lucilabevin
Ivanhoe Products uses both special journals and a general journal- Iva.docxIvanhoe Products uses both special journals and a general journal- Iva.docx
Ivanhoe Products uses both special journals and a general journal- Iva.docx
lucilabevin6 views
Java-Data structure A singly linked list of integers has a dummy head.docx von lucilabevin
Java-Data structure A singly linked list of integers has a dummy head.docxJava-Data structure A singly linked list of integers has a dummy head.docx
Java-Data structure A singly linked list of integers has a dummy head.docx
lucilabevin2 views
Java-Data structure Write a method that reverses the order of elemen.docx von lucilabevin
Java-Data structure   Write a method that reverses the order of elemen.docxJava-Data structure   Write a method that reverses the order of elemen.docx
Java-Data structure Write a method that reverses the order of elemen.docx
lucilabevin2 views
Java with screenshot pls Assignment3A- Cretaceous Park Map- Noted busi.docx von lucilabevin
Java with screenshot pls Assignment3A- Cretaceous Park Map- Noted busi.docxJava with screenshot pls Assignment3A- Cretaceous Park Map- Noted busi.docx
Java with screenshot pls Assignment3A- Cretaceous Park Map- Noted busi.docx
lucilabevin4 views
java Q- Create class Date with the following capabilities- a) Output t.docx von lucilabevin
java Q- Create class Date with the following capabilities- a) Output t.docxjava Q- Create class Date with the following capabilities- a) Output t.docx
java Q- Create class Date with the following capabilities- a) Output t.docx
lucilabevin14 views
JAVA Write a client class (TestFraction2) that allows the user to add.docx von lucilabevin
JAVA Write a client class (TestFraction2) that allows the user to add.docxJAVA Write a client class (TestFraction2) that allows the user to add.docx
JAVA Write a client class (TestFraction2) that allows the user to add.docx
lucilabevin2 views
Java programming Language class Main { public static void main(Strin.docx von lucilabevin
Java programming Language class Main {   public static void main(Strin.docxJava programming Language class Main {   public static void main(Strin.docx
Java programming Language class Main { public static void main(Strin.docx
lucilabevin2 views
Java Program- There are errors in the lexer and shank file- Please fix.docx von lucilabevin
Java Program- There are errors in the lexer and shank file- Please fix.docxJava Program- There are errors in the lexer and shank file- Please fix.docx
Java Program- There are errors in the lexer and shank file- Please fix.docx
lucilabevin2 views
Java Coding Your goal is to write methods- write conditionals- generat.docx von lucilabevin
Java Coding Your goal is to write methods- write conditionals- generat.docxJava Coding Your goal is to write methods- write conditionals- generat.docx
Java Coding Your goal is to write methods- write conditionals- generat.docx
lucilabevin7 views
JAVA - Please complete the addStringBTrees() and addIntegerBTrees() me.docx von lucilabevin
JAVA - Please complete the addStringBTrees() and addIntegerBTrees() me.docxJAVA - Please complete the addStringBTrees() and addIntegerBTrees() me.docx
JAVA - Please complete the addStringBTrees() and addIntegerBTrees() me.docx
lucilabevin2 views
JAVA - Please complete the method compareBTrees() below- -- -- import.docx von lucilabevin
JAVA - Please complete the method compareBTrees() below-  -- -- import.docxJAVA - Please complete the method compareBTrees() below-  -- -- import.docx
JAVA - Please complete the method compareBTrees() below- -- -- import.docx
lucilabevin2 views
JAVA - please complete the below method ConcatenateLeaves() -- -- im.docx von lucilabevin
JAVA - please complete the below method ConcatenateLeaves()   -- -- im.docxJAVA - please complete the below method ConcatenateLeaves()   -- -- im.docx
JAVA - please complete the below method ConcatenateLeaves() -- -- im.docx
lucilabevin2 views

Último

Community-led Open Access Publishing webinar.pptx von
Community-led Open Access Publishing webinar.pptxCommunity-led Open Access Publishing webinar.pptx
Community-led Open Access Publishing webinar.pptxJisc
93 views9 Folien
The Open Access Community Framework (OACF) 2023 (1).pptx von
The Open Access Community Framework (OACF) 2023 (1).pptxThe Open Access Community Framework (OACF) 2023 (1).pptx
The Open Access Community Framework (OACF) 2023 (1).pptxJisc
110 views7 Folien
PLASMA PROTEIN (2).pptx von
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptxMEGHANA C
68 views34 Folien
Class 10 English lesson plans von
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plansTARIQ KHAN
288 views53 Folien
Sociology KS5 von
Sociology KS5Sociology KS5
Sociology KS5WestHatch
70 views23 Folien
JiscOAWeek_LAIR_slides_October2023.pptx von
JiscOAWeek_LAIR_slides_October2023.pptxJiscOAWeek_LAIR_slides_October2023.pptx
JiscOAWeek_LAIR_slides_October2023.pptxJisc
96 views8 Folien

Último(20)

Community-led Open Access Publishing webinar.pptx von Jisc
Community-led Open Access Publishing webinar.pptxCommunity-led Open Access Publishing webinar.pptx
Community-led Open Access Publishing webinar.pptx
Jisc93 views
The Open Access Community Framework (OACF) 2023 (1).pptx von Jisc
The Open Access Community Framework (OACF) 2023 (1).pptxThe Open Access Community Framework (OACF) 2023 (1).pptx
The Open Access Community Framework (OACF) 2023 (1).pptx
Jisc110 views
PLASMA PROTEIN (2).pptx von MEGHANA C
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptx
MEGHANA C68 views
Class 10 English lesson plans von TARIQ KHAN
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN288 views
Sociology KS5 von WestHatch
Sociology KS5Sociology KS5
Sociology KS5
WestHatch70 views
JiscOAWeek_LAIR_slides_October2023.pptx von Jisc
JiscOAWeek_LAIR_slides_October2023.pptxJiscOAWeek_LAIR_slides_October2023.pptx
JiscOAWeek_LAIR_slides_October2023.pptx
Jisc96 views
Solar System and Galaxies.pptx von DrHafizKosar
Solar System and Galaxies.pptxSolar System and Galaxies.pptx
Solar System and Galaxies.pptx
DrHafizKosar91 views
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... von Ms. Pooja Bhandare
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Ch. 7 Political Participation and Elections.pptx von Rommel Regala
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala97 views
Structure and Functions of Cell.pdf von Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan545 views
UWP OA Week Presentation (1).pptx von Jisc
UWP OA Week Presentation (1).pptxUWP OA Week Presentation (1).pptx
UWP OA Week Presentation (1).pptx
Jisc88 views
Create a Structure in VBNet.pptx von Breach_P
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptx
Breach_P75 views
Scope of Biochemistry.pptx von shoba shoba
Scope of Biochemistry.pptxScope of Biochemistry.pptx
Scope of Biochemistry.pptx
shoba shoba133 views
Drama KS5 Breakdown von WestHatch
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch79 views

in C# An employee has a name- a payrate- and an hoursWorked- The pay a.docx

  • 1. 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.