Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a C# program to calculate Pay. Create a class Pay to perform the calculations in a private void method and override ToString() method to
write a C# program to calculate Pay. Create a class Pay to perform the calculations in a private void method and override ToString() method to display results. In the ToString() use the string.format command with placement holders. Only use Property Proceduresin the class to receive data not a constructor. Do not calculate overtime. Declare as constants FICA tax 7.65%; Fed tax 20%; State tax 10%; and Health insurance 7%. The user will enter name, hours worked and rate of pay. Do not code any console commands (read or write) in the class. Create void methods in main for heading and instructions.
C# code needed
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started