program2_1.py

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

program2_2.py

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

program2_3.py

Kenny's estate is to be bequeathed as follows:

  • 1/2 to Stan.
  • 2/3 of what remains to Kyle.
  • The rest is to be split equally to Butters and Wendy.

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.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.