#include <iostream>
using namespace std;
const int MAXACCOUNTS =8;
int count1 = 1;
bool True = true;
int main()
{
int AccountNumber[MAXACCOUNTS] = {1001, 7940, 4382, 2651, 3020, 7168, 6245, 9342};
double Balance[MAXACCOUNTS] = {4254.40, 27006.25, 123.50, 85326.92, 657.0, 7423.34, 4.99, 107864.44};
int DaysSinceDebited[MAXACCOUNTS] = {20, 35, 2, 14, 5, 360, 1, 45};
while (count1 != MAXACCOUNTS)
{
if (Balance[count1] > 10000 && DaysSinceDebited[count1] > 30)
{
cout << AccountNumber[count1] << " ";
cout << Balance[count1] << " ";
cout << Balance[count1] / 100 * 3 << endl;
}
else if (True = true)
{
cout << AccountNumber[count1] << " ";
cout << Balance[count1] << " ";
cout << Balance[count1] / 100 * 3 << endl;
}
count1 ++;
}
return 0;
}
Hi Guys
Ive just started c++ and i am stuck. I am practicing for an exam and one of the requirements is to make this program do the same using structs. Im sure its simple can someone help out with some explanation?