Note that a donation amount may have decimal places You can assume that the

Note that a donation amount may have decimal places

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

amount. Note that a donation amount may have decimal places. You can assume that the user always enters a numeric value for the donation amount (although it may or may not be valid). A valid donation amount is any amount that is greater than 0.
Image of page 1

Subscribe to view the full document.

donationSummary This function must take three parameters: the number of donations, the total of the donation amounts, and the highest donation amount. The function does not return anything. The function displays the number of donations, the highest donation amount, the total of the donation amounts, and the average of the donation amounts (the total amount divided by the number of donations). The displayed summary should look like that shown below. Note that the numerical amounts are aligned on the right side and that the donation amounts include a dollar sign and are displayed with 2 decimal places. Leave sufficient space in the alignment to handle amounts up to $99,999,999.99. Donation Summary Information Number of donations: 10 The highest donation amount is: $ 14628.40 The total of the donation amounts is: $ 76258.16 The average donation amount is: $ 7625.82 You should complete the project by the specified due date. Marks will be awarded for good programming style including a comment block at the top with your name, student number, and your lab section, proper tab indentation and descriptive camel case variable names. Project Tips 1. First create the menu part of the program leaving space for the menu actions (enter and show). 2. When the user selects quit (Q or q), the application should exit the menu loop (thus terminating the application). 3. Then implement the Make a donation option as described above. 4. Then implement the Summary of donation information option as described above. 5. Test the program as you write each part (rather than trying to write the entire program and then running at the end). 6. Functions can be written and tested separate from the application and then copied to the application once working. Submit your source file by the due date posted on your drop box.
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