Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The image explains it all Lab 5 - Compound Interest For this assignment, you must also write pseudocode, in addition to your C program, and

The image explains it all image text in transcribedLab 5 - Compound Interest
For this assignment, you must also write pseudocode, in addition to your C program, and show correct operation for the following programs:1) The first program will compute compounded interest. Suppose you invest $1000.00 at an interest rate of 2% per year. If the interest is computed at the end of each day, it is added to your account (i.e., the interest is compounded daily). Print what the account value will be at the end of each year for 20 years. Use data type double for money. For 365 days per year (ignore leap year), the daily interest rate is 2%/ 365. Your program should request the following numbers as input from the user with scanf():Initial account balance (Start with $1000.00)
Then run and demonstrate it again with the last 6 digits of your Red ID# so 876123456 would be: 1234.56)The annual interest rate in percentNumber of years: run it for at least 10 yearsFor a compounding period of 1 (daily), the interest must be computed 365 times and accumulated. For a compounding period of 30 (monthly), the interest would be computed 365/30 or 12 times.Print the amount in the account including accumulated interest for each of 20 years for the following compounding periods if you started with $1,000 dollars:
Daily (period 1)Weekly (7)Monthly (30)Quarterly (90)Annually (365)Use DOUBLE variables for your calculations. Run your program again for daily compounding using FLOAT variables, and note the difference in the results. Output should be formatted in columns, by year number something like this:Year Daily Weekly Monthly Quarterly Annually---- ------- ------- ------- --------- ------- 0 1000.00 1000.00 1000.00 1000.00 1000.00 1 100x.xx 100x.xx 100x.xx 100x.xx 100x.xx 2 10xx.xx ...
For this assignment, you mustaho write psoudocode, in addition to your C program, and show conect operation for the folowing progame 1) The tiest progam wil compute c abeathe end of each year for 20 years. U" datatype dati. Ir ital accoun bdarce (Slat with S1000 t again with the last & digts of your Red 1DE so 876123456 would be 1234 56 ntenest for each of 20 years for the tolliowing compounding periods i you st with $1.000 dollars 1 Daily tpeniod 1) 1000.00 1000.00 1000.00 1000.00 1000.0 Fa F7 End

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

4. Not sure? Ask them.

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago