A program uses a char variable named membership and an int variable named age. The membership variable

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 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: