Create an Account

Already have account?

Forgot Your Password ?

Home / Questions / A program uses a char variables named membership and an int variables named age The member...

A program uses a char variables named membership and an int variables named age The membership variables contains one of the following letters entered

A program uses a char variables named membership and an int variables named age. The membership variables contains one of the following letters( entered in eitheruppercase or lowercase): M or N. The letter M stands for member, and the letter N stands for non-member. The program should display the appropriate seminar fee, whichis based on a person’s membership status and age. Write the c++ code to display the fee.
Seminar fee Criteria
10$ club member less than 65 years old
5$ club member at least 65 years old
20$ non-member

I have got this far


#include
#include
using namespace std;

int main()
{
//declare variables, char variables named membership
//declare int age
char membership;
char nonmembership;
int age;
//membership variables contains one of the following letters
// ener age of user
cout
cin >> age;
membership = membership;
//User inputs
cout
cin >> m;
cout
cin >> n ;
//check which member appropriate seminar fee
if (65>m=10)
{cout
}
else if(65{cout
}
else
{cout
}
//end of if

system("pause");
return 0;
} //end of main function

May 27 2020 View more View Less

Answer (Solved)

question Subscribe To Get Solution

Related Questions