Вы находитесь на странице: 1из 1

PBS Pledge Program

(while Loop, Sentry Variable)

Please be generous with your contributio ns

You have been requested to write a program for the PBS television station. They need a report that contains the following information: The number of people who are making pledges The total amount of money pledged The average pledge made You are to write a program that uses a sentry controlled while loop to collect information during the pledge telethon. Ask for the donators name and the amount pledged. When the sentry value (i.e. Done, 0) is entered the report should be generated. EXAMPLE OF OUTPUT: PBS Pledge Summary Report Total # of Donators Total Pledges Average Pledge 10 $2000.00 $200.00

Thank you for your donation!

Вам также может понравиться