Question: A program uses a char variable named membership and an int variable named age. The membership variable contains one of the following letters (entered in

A program uses a char variable named membership and an int variable named age. The membership variable contains one of the following letters (entered in either uppercase or lowercase): M or N. The letter M stands for member, and the letter N stands for nonmember. The program should display the appropriate seminar fee, which is based on a person’s membership status and age. The fee schedule is shown in Figure 6-38. 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 .......................    Nonmember less than 65 years old
$15 .......................    Nonmember at least 65 years old

Step by Step Solution

3.35 Rating (182 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

if touppermembership M if age 65 cout ... View full answer

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 An Introduction Programming Questions!