Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HELP WITH PYTHON 3.6 !!! Purpose: To practice the use of arithmetic expressions. Degree of Difficulty: Moderate Phoenix Wright is a lawyer who runs a
HELP WITH PYTHON 3.6 !!!
Purpose: To practice the use of arithmetic expressions. Degree of Difficulty: Moderate Phoenix Wright is a lawyer who runs a small law office with some number of assistants. When (if?) Phoenix gets paid for a case, he divides the money between himself and all his staff. The office contract states that Phoenix, as senior partner, takes 25% of the fee for himself and divides the rest equally among all his staff. Write a program for Phoenix that will ask the user to input the payment for one case (in dollars), and the number of staff in the office (not including Phoenix himsel). Then the program should display the value of Phoenix's share of the fee, the value of the remaining share to be divided amongst the staff, and the value of the pay that each staf member takes home. You may assume that the user supplies valid input from the console, that is, a positive number for the fee, and a positive number for the staff size. Sample Run If completed correctly. your program's console output should look something like this. As usual, green text shows the text entered by the user, and blue text highlights the values calculated by the program. Enter the payment for the case 9000 Enter the number of staff: Phoenix Wright's 25% share of the fee is worth: $2250.0 The staff's 75% share of the fee is worth: $6750.0 Each staff member takes home $3375.0 Notice that the user is not expected to type the $ when entering the value of the legal fee. It is also not a concern if your displayed dollar amounts have more or less than two digits after the decimal place, or don't have a decimal at all You will not be penalized for this (unless the values computed are incorrect). If you are having trouble getting the dollar amounts to print right next to the dollar signs without a space in between, think about how you might use the string concatenation operator (the very end of textbook Section 2.3.4 "Operators on Strings) to achieve the desired output
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