The manager of a golf club wants an application that displays the appropriate fe
ID: 3810591 • Letter: T
Question
The manager of a golf club wants an application that displays the appropriate fee to charge a golfer. Club members pay a $5 fee. Nonmembers golfing on Monday through Thursday pay $15. Nonmembers golfing on Friday through Sunday pay $25. The condition in the outer selection structure should check the___, while the condition in its nested selection structure should check the___. a. membership status, day of the week b. day of the week, membership status c. membership status, fee d. fee, day of the week Write the pseudocode for the outer and nested selection structures from Question 1.Explanation / Answer
Q1. a. membership status, day of the week.
2. if golfer has membership
then charge $5 fee
else check the day of the week
if the day of the week is between Monday and Thursday charge $15
else golfer is charged with $25.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.