0% found this document useful (0 votes)
6 views1 page

Salary and Grocery Bill Calculation Algorithms

The document contains two questions requiring algorithms and pseudocode. The first question involves calculating an employee's weekly salary based on hours worked and hourly wage, with overtime pay for hours exceeding 40. The second question focuses on determining a customer's grocery bill total, factoring in item prices, sales tax, and a potential loyalty program discount.

Uploaded by

aboodxzaboodxz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Salary and Grocery Bill Calculation Algorithms

The document contains two questions requiring algorithms and pseudocode. The first question involves calculating an employee's weekly salary based on hours worked and hourly wage, with overtime pay for hours exceeding 40. The second question focuses on determining a customer's grocery bill total, factoring in item prices, sales tax, and a potential loyalty program discount.

Uploaded by

aboodxzaboodxz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Q1: Write an algorithm and Pseudocode to

calculate an employee’s weekly salary. The salary


is based on the number of hours worked and the
hourly wage. If the employee works more than 40
hours, the extra hours should be paid at 1.5 times
the regular hourly wage.

Q2: Write an algorithm and Pseudocode to


determine the total cost of a customer’s grocery bill.
The algorithm should take into account the prices
of items and the applicable sales tax. If the
customer is a member of the store’s loyalty
program, apply a 10% discount to the total before
tax.

You might also like