Would be happy if anyone could share some knowledge. Cheers

Hello! Just started studying programming (in c++ with visual studio). And I REALLY need help with one assignment, I'm new to this so yes. I suck at it, any help at all would be amazing.

I'am to make a program that can calculate how many years it would take for one to save a chosable ammount of money to save each year and how much to save up to.
With "interest rate" "/
I got something (barrely worthy to show) done.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  #include <iostream>

using namespace std;

int main()
{
	int save, goal;
	float intrest = 4.5;
	cout << "save: ";
	cin >> save;
	cout << "goal: ";
	cin >> goal;
	cout << intrest;
	system("pause");
}
The first step is to figure out how you'd solve this problem by hand.

Say for example... I save $500 a year and want to reach $2600 in savings? How long would that take?

As you solve that problem... pay attention to how you solved it. Write down the steps you did to solve it if you need to.

Then.. all you have to do, is convert those steps into code... to tell the computer to do what you just did.
closed account (iAk3T05o)
Divide goal by 365
Topic archived. No new replies allowed.