Related questions
Calculate the display the net salary of the employee. To calculate the net salary, subtract federal and state tax from the gross salary.
Step-1: Start
Step-2: Start loop for i in range(6)
Step-2.1: Print "Employee {i + 1}"
Step-2.2: Declare variable name and take input from the user
Step-2.3: Declare variable salary and take input from the user
Step-2.4: Declare variable state and take input from the user
Step-2.5: If salary is greater than 100000
Step-2.5.1: Declare variable federal_tax and assign 0.20 * salary
Step-2.6: Else In federal_tax assign 0.15 * salary
Step-2.7: If state in ("CA", "NV", "AZ", "TX")
Step-2.7.1: Declare variable state_tax and assign 0.10 * salary
Step-2.8: Else In state_tax assign 0.12 * salary
Step-2.9: Declare variable net_salary and assign salary - federal_tax - state_tax
Step-2.10: Print federal_tax
Step-2.11: Print state_tax
Step-2.12: Print net_salary
Step-3: Stop
Step by stepSolved in 4 steps with 3 images
- Text book imageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningText book imageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrText book imageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- Text book imageProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageText book imageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTText book imageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L