Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Home Work#2 John invest (whole number) $100 at 10 percent simple interest. (That is, every year, the investment earns an interest equal to 10 percent

image text in transcribed
Home Work#2 John invest (whole number) $100 at 10 percent simple interest. (That is, every year, the investment earns an interest equal to 10 percent of the original investment). Also, John invests $100 at 5 percent interest compounded annually. (That is, interest is 5 percent of the current balance, including previous addition of interest.) Write a program that finds how many years it takes for the value of interest compounded investment to exceed the simple interest value. Also, display the two values at that time and string "press any key to continue". The program reads the invest value from the console and allows user to run the program again without exit if the user choices the option 1, but if the user enters the exit option then the program exit. Note: use the appropriate statements and the right data types to solve the problem Home Work#2 The program should display a menu as below ****** ***********M enu******** 1) Invest program 2) Exit Please enter the Option

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

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions