Read in the interest rate

Assignment Help C/C++ Programming
Reference no: EM131110626

In C++ Using a while loop, code and run a program that will calculate how long it will take $10,000.00 to become $1,000,000 with 0.08 interest rate. I have the algorithm I am suppose to use for this program and that is...

1) read in amount

2) read in the interest rate

3) while amount is less then 1,000,000

3.1) interest = amount * rate

3.2) amount = amount + interest

3.3) add to year

4) print out " I'm a millionaire in " +year+ "years"

5) stop

Reference no: EM131110626

Questions Cloud

Cash payments for operating expenses : Cash payments for operating expenses.  Issuance of bonds for land.
The finance function and the accounting function : 1. Discuss the difference between the finance function and the accounting function. 2. Describe the major components of IT infrastructure.
Define the ethical duties of a trial lawyer : Define the ethical duties of a trial lawyer under the legal profession
The company sustained a net loss for the year : Uncollectible accounts receivable in the amount of $22,000 were written off against the Allowance for Doubtful Accounts.
Read in the interest rate : In C++ Using a while loop, code and run a program that will calculate how long it will take $10,000.00 to become $1,000,000 with 0.08 interest rate.
How high above the center of a circle of radius 10.0 in : How high above the center of a circle of radius 10.0 in. should a light be placed so that illuminance at the circumference will be a maximum? See Fig. 27.51.
Data structures and algorithm analysis2d arrays in java : Data Structures and Algorithm Analysis2d arrays in Java. This program will return the smallest number of coins. There are 3 different type of coins. We have 10cent coin, 6 cent coin, and 1 cent coins. For example if i wanted to give 12 cents, using t..
Organizational behaviour week discussion : Have you ever witnessed escalation of commitment in your organization--or seen it take place with governments? Why do you think that escalation of commitment continued instead of stopping support of the original decision?
Compute the surface area of t : Let T ⊂ R3 denote the doughnut-shaped surface obtained by revolving the circle (y - 2)2 + z2 = 1 around the z-axis. Give T the orientation determined by the outward unit normal. Compute the surface area of T

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function that finds area and volume of a cube

write a function that finds area and volume of a cube when length is input and then write a program to test it. here is what i have so far.

  Analyze the time complexity and space complexity

Develop a simple prototype version of algorithm in C++. Specifically, you will build an in-place, order reversal algorithm - analyze the time complexity and space complexity of your algorithm

  Why encapsulation and inheritance make programming difficult

Why do C++ capabilities such as polymorphism, encapsulation, and inheritance make programming difficult

  Create a class called vehicle

Create a class called Vehicle that has the manufacturer's name (type String), number of cylinders in the engine (type int), and owner (type Person given below).

  Write a c++ code for how to learn oop

Write a C++ code for How to learn OOP (Object oriented programming) by CPP(C Plus Plus) - general-purpose programming language

  Prepare a linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM

  You are required to prepare a program for assessment system

you are required to prepare a program for assessment system of a university. the main idea is to evaluate the gpa

  Write procedure sort that swaps its three inputs

Write a procedure sort3(int& a, int& b, int& c) that swaps its three inputs to arrange them in sorted order. Without actually compiling and running a program, determine the results of the given function calls.

  Derive the two classes son and daughter from the above

Derive the two classes son and daughter from the above class and for each, define iam() to write our similar but appropriate messages. you should also define suitable constructors for these classes. now write a main() that creates objects of the thre..

  It would be cool if a device was actually part

Have you ever been low on cash and couldn't go beyond a certain dollar limit when shopping? You sort of need a calculator in your head. It would be cool if a device was actually part of the cart and as you add an item into the cart it would increm..

  Macro definitions

Given the following macro definitions #define HEIGHT 3#define WIDTH 5 There is a multidimensional array called anArray declared as follows:

  Prepare a temperature converter

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether the alarm will sound at that temperature.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd