Prompt the user to enter values for the original principal ( P ), the interest rate (
Question:
Prompt the user to enter values for the original principal (P), the interest rate (r), the number of compoundings per year (n), and the number of years to save (t). Your prompts should be "user friendly" and should NOT require a user to know what, for example, n represents. The prompts should make it obvious what the user should enter and what units are expected.
2. Display original principal (P), the amount of interest earned (P'-P), and the total value of the account at the end of the term (P').
3. All monetary values should be displayed with units (i.e. dollar signs), commas, and two decimal places. For example: $20,023.23.
4. Be sure to give your variables good names! This means using meaingful words (e.g., interest_rate) and not single letters (r). While single letters are the norm for mathematical formulas, we need meaningful variable names when programming.
- Provide the user with an option to compare the first set of savings parameters they have entered with a second set of parameters.
- If the user declines, the program should end. If the user chooses to make a comparison, ask the user to enter a second set of parameters and display the same information as in the basic requirements (with the same formatting requirements: units, commas, and two decimal places).
- Finally, if the user has entered more than one set of parameters, tell the user which set of parameters produces the largest final account balance P'
At the moment this is what my code looks like. To reiterate, I need assistance with the last bullet point: if the user has entered more than one set of parameters, tell the user which set of parameters produced the largest final account balance
- Using Python
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill