wage & watts

Rehema would like to efficiently use power at home. 3 devices (A, Band C) are running at her place. The consumption of each device ismeasured in watts per minutes and she wants each device to beswitched off after consuming a total of 1200 wats.for example if deviceA consumes a total of 1200w it is switched off and so will device B andC.

Write a java program that prompt user the consumption of each device(A, B and C) and print the time in HOURS that each of device will takebefore getting switched off. The program should print the total time itshould take all the device is switched no at the same time. Rehema ischarged 10 shillings per second of usage for the first time 30 minutes. If the device operate for more than 30 minutes, 5 shillings per device persecond of usage is paid The program should print the total amount ofmoney per device and total amount of all the devices that Rehemashould pay.