subject

Write a program that calculates the balance of a savings account at the end of a three month period. it should ask the user for the starting balance and the annual interest rate. a loop should then iterate once for every month in the period, performing the following: a) ask the user for the total amount deposited into the account during the month. do not accept negative numbers. this amount should be added to the balance. b) ask the user for the total amount withdrawn from the account during that month. do not accept negative numbers or numbers greater than the balance after the deposits for the month have been added in. c) calculate the interest for that month. the monthly interest rate is the annual interest rate divided by 12. multiply the monthly interest rate by the average of that month's starting and ending balance to get the interest amount for the month. this amount should be added to the balance. after the last iteration, the program should display a final report that includes the following information. 1. starting balance at the beginning of the three-month period 2. total deposits (money amount) made during the three month period 3. total withdrawals (money amount) made during the three month period 4. total interest 5. final balance posted to the account during the three months

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:50
You need to design a circuit that implements the functions in the following table: s0 s1 function0 0 a + 10 1 a – b1 0 a + b1 1 a – 1s0 and s1 are 1-bit control inputs to select the function of the circuit. inputs a and b are 4-bitnumbers in 2s complement form. the output is also a 4-bit number in 2s complement form.you are allowed to use only one ttl 7483 4-bit adder to implement all the functions. but anynumber of other components (except the adder) can be used.hint: design a combinational logic circuit to modify the input b and the β€œcarry input” of theadder depending on the control inputs s0 and s1.important: lab grade will depend on the working of the circuit & will be checked of by your labinstructor.1. is the output valid for the following input combinations: a. s0 = 0, s1 = 0, a = 7, b = 3? b. s0 = 0, s1 = 1, a = 7, b = 3? c. s0 = 1, s1 = 0, a = -4, b = -5? d. s0 = 1, s1 = 1, a = -8, b = 6? 2. what is the range of inputs (for both a and b) that will produce the valid output for all the functions?
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 24.06.2019 18:20
7. design a circuit with three inputs (x, y, and z) representing the bits in a binary number, and three outputs (a, b, and c) also representing bits in a binary number. when the input is 1, 2, or 3, the binary output should be one lesser than the input. when the input is 4, 5, or 6, the binary output should be one greater than the input. when the input is 0, the output is 0, and when the input is 7, the output is 7. show your truth table, all computations for simplification, and the final circuit.
Answers: 2
question
Computers and Technology, 25.06.2019 05:30
You are asked to calculate an object's velocity, in order to do so you must know the object's a. direction and speed. b. distance and time. c. speed and distance. d. direction and distance.
Answers: 1
You know the right answer?
Write a program that calculates the balance of a savings account at the end of a three month period....
Questions
question
Mathematics, 28.03.2020 01:18
question
Chemistry, 28.03.2020 01:18
question
Mathematics, 28.03.2020 01:18
question
Mathematics, 28.03.2020 01:19
question
Social Studies, 28.03.2020 01:19
Questions on the website: 13722367