Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1. Design an algorithm that converts Celsius to Fahrenheit.

Use the formula: F = C*(1.8 + 32)


1) Get the Celsius and convert to Fahrenheit
2) Convert the Celsius to Fahrenheit and use the formula: F= C*(1.8+32)
3) Display the temperature in Fahrenheit
2. Design an algorithm that computes the wage of a part time employee.
Use the formula: wage = hourly rate number of hours.
1) Get the wage of a part time employee
2) Compute the wage of a part time employee and use the formula: wage=hourly rate x
number of hours
3) Print the wage “The wage is equal to answer for hourly multiply of number of hours”
3. Design an algorithm that determines if a given number is
odd or even.
1) Input the number
2) If x%2==0 then the number is even and else number is odd.
3) Display the output

You might also like