I have been asked 3 questions and would like someone to give me the code for each of these questions so that i can find out the answer.

no.1

A salesperson earns a commission on the value of sales. The following table shows the scale of the commission. Write a program to input the value of sales, and calculate and output the commission.

values of sales % commission

£1 - £999 1

£1000 - £9999 5

£10000 - £99999 10

no.2

A worker is paid at the hourly rate of £8 per hour for the first 35 hours worked. Thereafter overtime is paid at 1.5 times the hourly rate for the next 25 hours worked and 2 times the hourly rate for further hours worked. Write a program to input the number of hours worked per week, calculate and output the overtime paid.

no.3

Write a program to input two real numbers and give the user the choice of adding, subtracting, multiplying or dividing these numbers. Perform the appropriate calculation and display the result. Your program should trap any attempt to divide by zero.