Question: #include using namespace std; int main() { float money; float rate; float total; string name; cout < < calculator_savingMoney_MoyaCano.cpp - Ivan Moya Cano < <

#include

using namespace std;

int main()

{

float money;

float rate;

float total;

string name;

cout << "calculator_savingMoney_MoyaCano.cpp - Ivan Moya Cano" << endl;

cout << "-----------------------------------------------------------------------------" << endl;

cout << "Name of Bank Costurmer: "; // This gives me error all the time.

cin >>name;

cout << "Amount of money in saving account:";

cin >> money;

cout << "Interest rate: ";

cin >> rate;

cout << "-----------------------------------------------------------------------------" << endl;

total = money + money * rate / 100;

cout << "Total money at the end of year round: " << total << endl;

system("pause");

return 0;

}

When I try to use the "STRING" variable, I fail to do this program. What would be my mistake?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!