write a program to print out a table showing the total balances at the end of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
write a program to print out a table showing the total balances at the end of each year for various interest rates. The program will take (a) the initial deposit, (b) the target interest rate, (c) the years of deposit as the inputs from the user. The program will calculate interest and balance for each year at different interest rates and then print out the results in the screen. Requirements: Your program should use at least one of each loop structure: while, do-while, and nested for-loop. [3] Input: Initial deposit, interest rate, years of balances. You may assume the input types are correct (int, double). [4] Output: A suggested output is shown below. Your output does not have to look exactly the same. Intial deposit? 10000 Interest rate? 1.1 Number of years? 9 Balances at the end of each year: Beginning Ending Year Balance Interest Balance 1 10000.00 110.00 10110.00 2 10110.00 111.21 10221.21 3 10221.21 112.43 10333.64 4 10333.64 113.67 10447.31 5 10447.31 114.92 10562.23 6 10562.23 116.18 10678.42 7 10678.42 117.46 10795.88 8 10795.88 118.75 10914.64 9 10914.64 120.06 11034.70 10 11034.70 121.38 11156.08 Do you wish to try again? (Y/N) write a program to print out a table showing the total balances at the end of each year for various interest rates. The program will take (a) the initial deposit, (b) the target interest rate, (c) the years of deposit as the inputs from the user. The program will calculate interest and balance for each year at different interest rates and then print out the results in the screen. Requirements: Your program should use at least one of each loop structure: while, do-while, and nested for-loop. [3] Input: Initial deposit, interest rate, years of balances. You may assume the input types are correct (int, double). [4] Output: A suggested output is shown below. Your output does not have to look exactly the same. Intial deposit? 10000 Interest rate? 1.1 Number of years? 9 Balances at the end of each year: Beginning Ending Year Balance Interest Balance 1 10000.00 110.00 10110.00 2 10110.00 111.21 10221.21 3 10221.21 112.43 10333.64 4 10333.64 113.67 10447.31 5 10447.31 114.92 10562.23 6 10562.23 116.18 10678.42 7 10678.42 117.46 10795.88 8 10795.88 118.75 10914.64 9 10914.64 120.06 11034.70 10 11034.70 121.38 11156.08 Do you wish to try again? (Y/N)
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that calculates and displays the total balances at the end of each y... View the full answer
Related Book For
Fundamentals of Ethics for Scientists and Engineers
ISBN: 978-0195134889
1st Edition
Authors: Edmund G. Seebauer, Robert L. Barry
Posted Date:
Students also viewed these programming questions
-
Stellar Sound, Inc., which uses a job-order costing system, had two jobs in process at the start of 20x1: job no. 64 ($84,100) and job no. 65 ($53,500). The following information is available: a. The...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Controlling Program Flow w/i an ATM Using selection statements & loops to complete the following: Validate the user's PIN -- only allow them to attempt three (3) times before ending the program If...
-
Helium in a steel tank is at 40 psia, 540 R with a volume of 4 ft3. It is used to fill a balloon. When the tank pressure drops to 24 psia the flow of helium stops by itself, if all the helium still...
-
The McKeegan Corporation has two different bonds currently outstanding. Bond M has a face value of $20,000 and matures in 20 years. The bond makes no payments for the first six years, then pays...
-
The number of inches which a newly built structure is settling into the ground is given by \[y=3-3 e^{-\alpha x}\] where \(x\) is its age in months. Use the method of least squares to estimate...
-
1. Does TOMS buy-one-give-one-away model make it a more ethical company than a traditional shoe manufacturer donating money to a charity? Why? 2. Why would customers pay such a high price for a...
-
Imagine a vendor responded to your request for a HRIS proposal. What are the indirect/direct costs and benefits of the HRIS? What is the cost of implementation (include dollar estimates)? Does the...
-
In November 2015, John Wells, a customer service representative of Bayfield Mud Company, was summoned to the Houston warehouse of Wet-Land Drilling, Inc., to inspect three boxcars of mud treating...
-
The growth rate for the firm's common stock is 7%. The firm's preferred stock is paying an annual dividend of $5. What is the preferred stock price if the required rate of return is 8%?
-
Based on discussions with the local organizing committee and Cincinnati government officials, you determine that: Great American Ball Park seats 42,059. The game was sold out. The city sales tax is...
-
Learners will evaluate a system with object-oriented design and coupling violations. Learners will gain hands-on experience with improving the software system's quality and modifiability by...
-
Explain how using "hold to maturity accounting" for SpinCo's assets affects the value of SpinCo. Is the market value that investors will pay for SpinCo different if the initial transfer of assets is...
-
The demand curve and marginal revenue curve for a firm's products are given as: P = 156 - 0.2Q and MR = 156 - 0.4Q. The firm's marginal cost and average total cost of production are constant at...
-
object-oriented design is designing systems using self-contained objects and object classes. describe any THREE (3) advantages and list at least any FOUR (4) characteristics of object- oriented...
-
Question 10. Show the variation of Shear Plane angle with y for different values of using contour plot.
-
How do the principles of (a) Physical controls and (b) Documentation controls apply to cash disbursements?
-
Two objects are balanced as in figure. The objects have identical volumes but different masses. Will the equilibrium be disturbed if the entire system is completely immersed in water? Explain.
-
Julie has been hired to help paint the trim of a building, but she is not convinced of the safety of the apparatus. A 5.0-m plank is suspended horizontally from the top of the building by ropes...
-
A particle of mass m moves in a horizontal circle of radius r on a rough table. It is attached to a horizontal string fixed at the center of the circle. The speed of the particle is initially v 0 ....
-
Make a bar chart of \(\mathrm{CO}_{2}\) footprint divided by embodied energy, using data from the data sheets of Appendix A, Table A10, for a. Cement b. Low carbon steel c. Copper d....
-
a. A range of office furniture includes a chunky hardwood table weighing \(18 \mathrm{~kg}\) and a much lighter table with a \(3.0 \mathrm{~kg}\) virgin aluminium frame and a \(3.0 \mathrm{~kg}\)...
-
a. Window frames are made from extruded aluminium. It is argued that making them instead from extruded PVC would give a product with a lower embodied energy and carbon footprint. If the section shape...
Study smarter with the SolutionInn App