A donation may have decimal places I Summary of donation information This

A donation may have decimal places i summary of

This preview shows page 1 - 2 out of 2 pages.

the donation amounts as well as keep track of the number of donations. A donation may have decimal places. (I) Summary of donation information This option shows a summary of the donations made using a function (that you must create) called donationSummary . To this function, you must pass the number of donations, the highest donation amount, and the total of the donation amounts. If no donations have been made, then simply display the message No donations have been made , otherwise call the function to display the donation summary information. (Q) Quit the application The user selects this option to terminate the application. The application is terminated by exiting the menu loop. Functions Your program must include the following functions. donate This function takes no parameters . The function must ask the user to enter a donation amount. If the donation amount is not valid, the program must repeatedly report that the donation amount is not valid and ask the user again to enter a donation amount until a valid donation amount is entered. Once a valid donation amount is entered, the program returns that donation amount. Note that a donation amount may have decimal places. You can assume that the user
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '18

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes