Katanga Stars is a team of women who perform cultural dance at various functions across the country. The team has a fixed membership of 9 members. Within these 9 members, there is a management committee of 4 members. For each function where they are hired to perform, the amount collected is different and is distributed as follows; • 50% of the fees goes to the consolidated account where each member owns equal shares. • The remaining 50% is shared among the 9 members such that each of the 4 management committee members gets 6.25% and each of the other members not on management committee gets 5%. For example, suppose Katanga Stars is paid UGX 1,000,000/= for a performance at a certain wedding ceremony, then, UGX 500,000/= goes to the consolidated account. Each management committee member gets UGX 62,5000/= while each of the other members gets UGX 50,000/= By assuming that Katanga Stars performs in exactly 5 places in a year, write a C program that performs the following tasks; • Uses a loop to capture the amount paid to Katanga Stars for each performance and stores the values captured in an array. This array should later be passed to a function to determine and print the funds distribution. • Provides a menu for choices such that 1 is for “Print Funds Distribution”, 2 is “Print Annual Membership Share” and 3 is for “Continue” and 4 is for “Quit”. • For each money paid to Katanga Stars for performance, “Print Funds Distribution” prints the amount going to the consolidated fund, the amount each management committee member is getting and the amount each of the non-management committee gets. • “Print Annual Membership Share” prints the amount each member is getting at the end of the year from the consolidated account. • “Continue” is for repeating the program so that the new values of the array are captured. • “Quit” should use a C function to determine and print the highest and lowest amounts earned from the five performances by Katanga Stars and then terminate the program.
Katanga Stars is a team of women who perform cultural dance at various functions across
the country. The team has a fixed membership of 9 members. Within these 9 members,
there is a management committee of 4 members. For each function where they are hired to
perform, the amount collected is different and is distributed as follows;
• 50% of the fees goes to the consolidated account where each member owns equal
shares.
• The remaining 50% is shared among the 9 members such that each of the 4
management committee members gets 6.25% and each of the other members not
on management committee gets 5%.
For example, suppose Katanga Stars is paid UGX 1,000,000/= for a performance at a
certain wedding ceremony, then, UGX 500,000/= goes to the consolidated account. Each
management committee member gets UGX 62,5000/= while each of the other members
gets UGX 50,000/=
By assuming that Katanga Stars performs in exactly 5 places in a year, write a C program that
performs the following tasks;
• Uses a loop to capture the amount paid to Katanga Stars for each performance and
stores the values captured in an array. This array should later be passed to a
function to determine and print the funds distribution.
• Provides a menu for choices such that 1 is for “Print Funds Distribution”, 2 is “Print
Annual Membership Share” and 3 is for “Continue” and 4 is for “Quit”.
• For each money paid to Katanga Stars for performance, “Print Funds Distribution”
prints the amount going to the consolidated fund, the amount each management
committee member is getting and the amount each of the non-management
committee gets.
• “Print Annual Membership Share” prints the amount each member is getting at the
end of the year from the consolidated account.
• “Continue” is for repeating the program so that the new values of the array are
captured.
• “Quit” should use a C function to determine and print the highest and lowest
amounts earned from the five performances by Katanga Stars and then terminate
the program.
Step by step
Solved in 2 steps with 1 images