Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A program is needed for a swimming club to manage the annual naudit of its membership details. The data stored about each member includes name,

A program is needed for a swimming club to manage the annual naudit of its membership details.
The data stored about each member includes name, age, gender, type of membership, whether
a team member or not, annual fee and if the fee has been paid. Team members are allowed a
discount of 10% on their annual membership fee.
The types of membership available are:
Membership Age range in years Annual fee
junior >=2 and <18 $10.00
adult >=18 and <50 $20.00
senior >=50 and <80 $15.00
golden 80 and over free
Write Python code and test a program or programs for the swimming club annual audit:
Your program or programs must include appropriate prompts for the entry of data.
Data must be validated on entry.
All outputs, including error messages, need to be set out clearly and understandably.
All variables, constants and other identifiers must have meaningful names.
You will need to complete these three tasks. Each task must be fully tested.
Task 1 setting up the system to store the membership details
Set up your program to:
store the members details in arrays
populate the arrays with at least 20 members details
use the array index as the annual membership number.
Task 2 providing annual audit statistics
Count the number of current members by membership type. For each type of membership count the
number of members who did not pay the annual fee. Display these counts as a percentage of the
total number of members for each membership type. Calculate and display the total of the annual
fees expected and the annual fees received for this year.
Task 3 updating the membership details for the next year
Extend your program to:
check if any members have not paid and output a list of all these members
remove these members from the system
update the age of all the members by one year and whether they are in a team
update the type of membership and the annual fee if required
set the fee for every member as not yet paid
display lists of current team members grouped by membership type.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Consider this article:...

Answered: 1 week ago

Question

1. Define mass and mediated communication

Answered: 1 week ago