UNIT 2: Algorithms and Flowchart 1) Write an algorithm and draw a flowchart that calculates salary of an emplo yee. Prom
Posted: Sun May 15, 2022 7:53 am
UNIT 2: Algorithms and Flowchart 1) Write an algorithm and draw a flowchart that calculates salary of an emplo yee. Prompt the user to enter the Basic Salary, HRA, TA, and DA. Add these components to calculate the Gross Salary. Also deduct 10% salary from the Gross Salary to be paid as tax. 2) Write a pseudocode to calculate the weekly wages of an employee. The pa y depends on wages per hour and the number of hours worked. Moreover, if the employee has worked for more than 30 hours, then he or she gets twice the wages per hour, for every extra hour that he or she has worked.