โ Back to User Input
Question 318
Weekly Pay Calculator
Weekly Pay Calculator
Read an integer number ofhoursworked and a decimal hourlyratefrom standard input (one per line) and print the total pay. For example, if the input is40then15.5, print: Pay: $620.00 Computehours * rateand print it withprintf("Pay: $%.2f%n", ...).
Expected Output:
Pay: $620.00
Topics:
User Input
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.