Question
Create a interactive payroll program.You will prompt the user for hours worked, pay-rate, whether they're hourly or salaried.From that, you will calculate their gross and
Create a interactive payroll program.You will prompt the user for hours worked, pay-rate, whether they're hourly or salaried.From that, you will calculate their gross and net pay.On top of that, your program will calculate this each time for n users, defending on the size of the company,Sounds like a great place to use a constant.
Your program will use print statements.You will also use primitive and String types, comparison of primitive types, along with if/else and whiles loops.You will have the opportunity to take a problem, and break it down into an algorithm, with the use of pseudo-code.
-No use of global variables
-Please Use
1) comments (in the header, methods, and any complex code),
2) proper formatting and indentation,
3) proper style, and finally
4) Use of printf, nested if/else statements, and very well written and/or creatively done code will result in extra credit.
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