Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plz help me write this code for homework printing_money_lastname.py (replace lastname with your actual last name) Instructions: Write a program that asks the user to
plz help me write this code for homework
printing_money_lastname.py (replace "lastname" with your actual last name) Instructions: Write a program that asks the user to first enter what their revenue was this month, followed by what their expenses were. Then calculate the final profit (revenue minus expenses) for the month with a dollar sign. Some example program executions: Enter revenue for this month: 973.20 Enter expenses for this month: 77.55 Revenue: $973.20 Expense: $77.55 Profit: $895.65 Enter revenue for this month: 23 Enter expenses for this month: 3 Revenue: $23.00 Expense: $3.00 Profit: $20.00 Bonus: Get your output to line up the amounts to the right no matter how many digits of difference there are. Here is an example: Enter revenue for this month: 600 Bonus: Get your output to line up the amounts to the right no matter how many digits of difference there are. Here is an example: Enter revenue for this month: 600 Enter expenses for this month: 59.23 Revenue: \$ $00.00 Expense: \$ $9.23 Profit: $540.77 Don't forget to have your name, date, and program name at the top in comments Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started