CJCoding With Joseph

Weekly Pay Calculator

Read an integer number of hours worked and a decimal hourly rate from standard input (one per line) and print the total pay. For example, if the input is 40 then 15.5, print:

Pay: $620.00

Compute hours * rate and print it with printf("Pay: $%.2f%n", ...).

Expected Output:

Pay: $620.00
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
40\n15.5\n
This input is automatically fed to your program's stdin
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.