CSC1350Lab05Af17-2.pdf - Laboratory Assignment № 5 Wyatt Clements CSC 1350 Louisiana State University Working with Loops The MinMaxFinder Program In

CSC1350Lab05Af17-2.pdf - Laboratory Assignment № 5 Wyatt...

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

Assignment № 5 Page 1 Laboratory Assignment № 5 Wyatt Clements, CSC 1350, Louisiana State University 10/11/2017 Working with Loops The MinMaxFinder Program In class last week, we discussed common loop algorithms such as finding minimum/maximum, doing summation and computing an average, finding the first match and counting the number of matches. In today’s lab, you will use some of those algorithms to process a list of test scores and track some details about it. Write a program MinMaxFinder consisting of only one class that contains one method, the main method. The program does the following: A. Prompts the end-user for the number of test scores to be processed. B. Reads each test score, an integer between 0 - 100, and updates the lowest score, highest score, the sum of all passing scores (scores that are 70 or greater). C. Tracks the non-passing scores (scores less than 70) and their count, and outputs them. Use a string variable nonPassesList to keep a list of non-passing scores and an integer variable numNonPasses , a count of how many non-passing scores have been processed so far.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Spring '08
  • Blanks

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors