A: Calculating total amount owed after graduation Use input() to set variables float variables loan per...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A: Calculating total amount owed after graduation Use input() to set variables float variables loan per year and interest rate and int variable years. You will need two other variables: o total owed = 0 counter = 0_(This is a counter variable to count how many times the loop has been executed) som %3D Construct a while loop that calculates how much you will owe by graduation. Each year, you will add the loan per vear to your total owed and multiply by the interest rate The while loop will end when your counter is equal to your years. Example input: Number of years: 4 Loan amount per year: 4000 Interest rate (Ex. 0.045 for 4.5% annual): .05 Example output: Total Owed At Graduation $ 18102 A: Calculating total amount owed after graduation Use input() to set variables float variables loan per year and interest rate and int variable years. You will need two other variables: o total owed = 0 counter = 0_(This is a counter variable to count how many times the loop has been executed) som %3D Construct a while loop that calculates how much you will owe by graduation. Each year, you will add the loan per vear to your total owed and multiply by the interest rate The while loop will end when your counter is equal to your years. Example input: Number of years: 4 Loan amount per year: 4000 Interest rate (Ex. 0.045 for 4.5% annual): .05 Example output: Total Owed At Graduation $ 18102
Expert Answer:
Answer rating: 100% (QA)
Here is your code years intinputNumber of years loanperyear fl... View the full answer
Related Book For
Introduction to Data Mining
ISBN: 978-0321321367
1st edition
Authors: Pang-Ning Tan, Michael Steinbach, Vipin Kumar
Posted Date:
Students also viewed these programming questions
-
For each of the following while loops, state how many times the loop will execute its body. Remember that zero, infinity, and unknown are legal answers. Also, what is the output of the code in each...
-
In the next reaction, answer how many times the reaction rate will increase when the concentration of the substrate is increased by 0.5 times and the concentration of the nucleophile is increased by...
-
World merchandise exports are valued at how many times the value of worldwide service exports?
-
Fun Cosmetics Ltd. is a skincare product manufacturer based in New Zealand that produces the LoveSkin instant moisturizer for women. Because of the reliability and quality of its products, it has...
-
Suppose the spot rate starts at S0$/ = $0.0100/ and appreciates by 25.86%. a. What is the percentage appreciation of the yen in continuously compounded returns? b. Calculate the holding period...
-
In Problems 7 50, follow Steps 1 through 7 shown below to graph each function. Steps for Graphing a Rational Function R STEP 1: Factor the numerator and denominator of R. Find the domain of the...
-
The total sum of squares is given by \(\sum_{i=1}^{k} \sum_{j=1}^{r}\left(y_{i j}-\bar{y} ight)^{2}\) where the overall mean \(\bar{y}=\sum_{i=1}^{k} \sum_{j=1}^{r}\left(y_{i j} / n ight)\). With...
-
Following are account balances (in millions of dollars) from a recent FedEx annual report, followed by several typical transactions. Assume that the following are account balances on May 31, 2014:...
-
Evaluate (g(t)) using the Chain Rule: r(t)=(e, est,-9), g(t) = 8t+2 (9(t))=000
-
On September 1, 201X, Brittney Slater opened Brittney?s Art Studio. The following transactions occurred in September: Your tasks are to do the following: 1. Set up the ledger based on the following...
-
Who can provide assistance in applying for a replacement? Outline 5 main reasons for changing details on a title. Land Titles, Mortgages and Discharges of Mortgage and Lost or Destroyed Titles. Go to...
-
*Question 3: Answer all parts * Consider the task of synchronously producing ice-cream cones, as illustrated in Figure Q3, by implementing a shift register function. Conveyor Motor (Y3) Conveyor...
-
Select both correct completions of the following sentence by considering a typical thermodynamic cycle on a temperature- entropy diagram: A non-ideal thermodynamic process that reduces pressure... a....
-
b) C Describe Flame types by drawing and samples. Explain (NOx) formation during the combustion reactions.
-
A dimensional analysis is performed on the drag on a boat. When the effects of viscosity can be neglected, the Euler number based on the drag D experienced by the boat is a function of a Froude...
-
d) Comparing the ideal air standard Otto 4 stroke cycle with the ideal air standard 4 stoke Diesel cycle. i) State how does the thermal efficiency compare when running at the same compression ratio....
-
A certain food has a gluten ratio of 13 mg of gluten per L of the food. What is the gluten ratio in micrograms per milliliter mL
-
Global.asax is used for: a. declare application variables O b. all other answers are wrong O c. declare global variables O d. handle application events
-
Consider the data set shown in Table 6.1. (a) Compute the support for itemsets {e}, {b, d}, and {b, d, e} by treating each transaction ID as a market basket. (b) Use the results in part (a) to...
-
Figure 5.1 illustrates the coverage of the classification rules R1, R2, and R3. Determine which is the best and worst rule according to: (a) The likelihood ratio statistic. (b) The Laplace measure...
-
Consider the interestingness measure, M = P(B|A) P(B)/1 P(B) , for an association rule A B. (a) What is the range of this measure? When does the measure attain its maximum and minimum values? (b)...
-
Where does the management accounting function fit into an organizations structure?
-
What are the ethical responsibilities of management accountants?
-
Diana Corporation provides the following information for 2017: Calculate (a) Cost of goods manufactured in 2017 and (b) Cost of goods sold in 2017 Beginning work-in-process inventory, 1/1/2017 Total...
Study smarter with the SolutionInn App