Question: Write the program for a company that wants to track down the amount of donations from their clients. Ask the user whether they receive donations

Write the program for a company that wants to track down the amount of donations from their
clients.
Ask the user whether they receive donations from clients.
If they have (use while loop):
Ask the name of the company and the frequency of donation.
Based on the on the number of the frequency of donation, use a for loop to:
Ask the donation amount from the company based
Calculate the total donation for the client
Set a counter to count the total number of clients
Calculate overall total donation for all clients.
Repeat the process by asking again the user whether they receive donation
from clients.
If there are no more clients, display the summary as shown in the sample output.
(Note: Use fflush(stdin) whenever it is necessary)
 Write the program for a company that wants to track down

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!