Question
Write the flowchart, pseudo code, and javascript to solve the following problem: Prompt the user to enter the total hours worked for each of 4
Write the flowchart, pseudo code, and javascript to solve the following problem:
Prompt the user to enter the total hours worked for each of 4 week (4 individual prompts, one for each week). Prompt the user to enter the amount they are paid per hour. Calculate the net amount paid for each week. Calculate the taxes the user will have to pay for each week, assuming a 20% tax rate. Calculate the gross amount that the employee is paid for each week. Calculate the grand total net amount the employee is paid, the grand total tax amount the employee is must pay, and the grand total gross amount the employee is paid. Create variables for each of the 4 weeks hours, the pay for each of the 4 weeks, the taxes for each of the 4 weeks, the gross pay for each of the 4 weeks, the grand total net pay, the grand total tax, the grand total gross pay. A constant should be used for the 20% tax rate. Be sure to modularize your program.
Flow Chart | Pseudo Code | JavaScript |
|
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