Hi can you help me please to Write a java class which prompts the user for an hourly rate (a double). The program should then calculate the wages for a 40 hour week using a while loop to count the hours and adding the hourly rate each time to the wages total.

No GUI need be written – use JOptionPane for inputting the hourly rate.

Save your program as Wages1.java and test it with £5.50 an hour (the answer should be £220).

hiddepolen commented: Homework question -1

Hi,you have post your whole question here.That's not the way.First you have to try.If you have any questions regarding the code then you can post it.But first you come up with a code.