Concept explainers
The value of a saving account, V, after t years is given by:
where P is the initial investment, r is the yearly interest rate in % (e.g., 7.5% entered as 7.5). and n is the number of times per year that the interest is compounded. Write a MATLAB program in a script file that calculates V. When the program is executed, it asks the user to enter the amount of the initial investment, the number of years. the interest rate, and the number of times per year that the interest is compounded. The output is displayed in the following format: The value of a $XX investment a yearly interest rate of X.X% compounded X times per year, after XX years is $XXXX.XX”, where XXX stands for the corresponding quantities. Use the program to determine the value of a $20,000 investment after 18 years lithe yearly interest rate is 3.5% compounded 6 times a year.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
EBK MATLAB: AN INTRODUCTION WITH APPLIC
- What is the name of the finite state machine where the outputs depend only on the current state? Mealy model or moore modelarrow_forwardIf computer X is 1.3 times as fast as computer Y, what is the performance of computer Y to complete a program given that computer X takes 1.4 millisecond to complete the same program. Show your steps.arrow_forwardQ6: Consider a finite state machine with the following state table: Output X=0 X=1 Z B 0 N/S P/S A A C A 1 C D A 1 E F 1 E В F 1 F F E G F E H A В E F 1 F K В 1 L D A 1 a) reduce its states by using state table minimization. b) select an assignment for its states.arrow_forward
- Introductory Circuit Analysis (13th Edition)Electrical EngineeringISBN:9780133923605Author:Robert L. BoylestadPublisher:PEARSONDelmar's Standard Textbook Of ElectricityElectrical EngineeringISBN:9781337900348Author:Stephen L. HermanPublisher:Cengage LearningProgrammable Logic ControllersElectrical EngineeringISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
- Fundamentals of Electric CircuitsElectrical EngineeringISBN:9780078028229Author:Charles K Alexander, Matthew SadikuPublisher:McGraw-Hill EducationElectric Circuits. (11th Edition)Electrical EngineeringISBN:9780134746968Author:James W. Nilsson, Susan RiedelPublisher:PEARSONEngineering ElectromagneticsElectrical EngineeringISBN:9780078028151Author:Hayt, William H. (william Hart), Jr, BUCK, John A.Publisher:Mcgraw-hill Education,