Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 fflushstdin whenever it is necessary
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started