Question: Here is a program that checks if a person's age is eligible to receive Social Security benefits. Which of the following statements are true (

Here is a program that checks if a person's age is eligible to receive Social Security benefits. Which of the following statements are true (Select all that apply)
int number =0;
while (number >=0)
cout <" What is your age?
;
cin >> number;
if (number >=65)
{
cout < "You are eligible for SS."< endl;
}
else if (number <65)
cout <" Your are not eligible for SS."< endl;
number =-1;
Program handles garbage input effectively.
The program could enter into an infinite loop.
The program will work only if the user enters integer number.
The program will execute flawlessly

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 Databases Questions!