Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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.