Write a program that prompts the user for two inputs: the weekly hours worked and the hourly pay rate. The program should then output the weekly pay incurrency format with two decimals and the $ sign right up against the first digit. This will require the sep argument. See page 66 and the Sample Output.
Sample Output
Enter hours worked 18.5
Enter hourly rate 12.75
Your pay $235.88
Write a program that converts $US to Euros. Prompt the user to enter the $US and then display the equivalent number of Euros accurate to three decimal places. If the number of Euros is over 1000, use commas to indicate thousands. See page 70 and Sample Output. Assume that one Euro is currently valued at $1.12 US. Use a properly named constant (see page 73-74) for this exchange rate.
Sample Output
Enter $US 5000
Amount in Euros: 4,464.286
Kenny's estate is to be bequeathed as follows:
Write a program that begins by prompting the user to enter the value of Kenny's estate. Then compute and display how much each heir receives. Display all amounts in currency format with the $ sign right up against the first digit and two decimal places.