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).

jwenting commented: homework kiddo -3

No attempt on homework. Thread closed!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.