Thank You "Depairy" that is a helpful response. I am trying to do the following
prompt the user for two integers. USING A FOR LOOP, calculate the total of the numbers between those numbers, inclusive.

daviddoria commented: Still not listening to the suggestions! Give it another try and we can try to guide you. This problem is so short that we can't really help anymore without flat out writing it for you. -3

Why did I even try to use this site? Attitude is all people respond with!

Program calls for two entries as one example, "The total of the numbers between 50 and 90 is 2870"

Cannot figure out what I am doing wrong?

Yes the code does not calculate the numbers properly and I cannot figure out why?

garber -3 Newbie Poster

[CODE]#include
using namespace std;

int main()
{
int sum = 0; // Declare an int variable sum to accumulate the numbers
int lowerbound; // Set the initial sum to 0
int upperbound; // Sum from 1 to this upperbound

// Prompt user for an upperbound
cout << "Enter a integer: ";
cin >> upperbound;
cout << "Enter another integer: ";
cin >> lowerbound;
while (lowerbound <= 100 && upperbound <= 100)
{
sum = sum + upperbound++ + lowerbound++;

}
// Print the result
cout << "The total of the numbers " << upperbound << " and " << lowerbound << " is " << sum << endl;
}
[/CODE]

garber -3 Newbie Poster

[CODE]if (option == 3)
{
{
pmt = (percentage earnings);
cout << "pmt is " << pmt << endl;
wr = (0.06 / 52.0);
cout << "wr is " << wr << endl;
n = (52
actualage);
cout << "n is " << n << endl;
retirement = pmt * ((1 + wr)n - 1) / wr);
cout << "You will have $" << retirement << " saved when you retire." << endl;
}[/CODE]

garber -3 Newbie Poster

[CODE]#include

include

using namespace std;

int main()
{
// Variable declarations allowing us to calculate
string fullName;
int weeklySalary;
int weeks;
string age;
int option;
int actualage;
int earnings;
double savingsPercentage;
double percentage;
int retirementage;
double total;
cout << "What is your name? ";
getline(cin, fullName);
cout << "How old are you? ";
cin >> age;
cin.ignore(); // Removes the control character...
cout << "Please select an option: " << endl; // Main menu allowing selection of option.
cout << "\t(1) Number of years to retirement" << endl;
cout << "\t(2) Amount earned between now and retirement" << endl;
cout << "\t(3) Amount saved at retirement" << endl;
cout << "\t(4) Exit" "(do nothing)" << endl;
cin >> option;
cin.ignore(); // Removes the control character...
do
{
if (option == 1)
cout << option << " ";
}
// The code in Case 1 calculates the Number of years you have.
cout << "You have " << actualage << " years until retirement." << endl;
cout << "Please select an option: " << endl; // Main menu allowing selection of option...
cin >> option;
cin.ignore(); // Removes the control character...
do
{
else if (option == 2)
{
cout << option << " ";
}
// The code in case 2 calculates the Amount Earned between now and retirement by age.
cout << "How much do you make per week in dollars? ";
cin >> weeklySalary;
cin.ignore(); // Removes the control character...
weeks = (52 * actualage);
earnings ...