How to show Total number of items entered and the percentages.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jbelf
    New Member
    • Feb 2010
    • 1

    How to show Total number of items entered and the percentages.

    Project 2 asks you combine these exercises to expand upon the idea of a grading application with
    the following requirements:
    • The application should allow the user to perform score calculations for as many
    assignments as they would like. (5 pts)
    • The application should accept as many scores per assignment as the user would like, with
    the user indicating they are done by a terminal value of -1. (5 pts)
    • When the user is done entering scores for an assignment, the system should output:
    o The total number of scores for that assignment (2 pts)
    o The average score for that assignment (2 pts)
    o The lowest score for that assignment (2 pts)
    o The highest score for that assignment (2 pts)
    o The total number and percentage of A’s, B’s, C’s, D’s, and F’s for that
    assignment (7 pts)
    • The application should then ask the user if they would like to enter another assignment.
    Example Screen Dialogue:
    Want to average another assignment? (yes/no)
    yes
    Enter all the scores for the assignment followed by a -1
    100
    50
    -1
    Total number of scores: 2
    Average score: 75
    Lowest score: 50
    Highest score: 100
    A's: 1 (50%)
    B's: 0 (0%)
    C's: 0 (0%)
    D's: 0 (0%)
    F's: 1 (50%)



    Is the project I was assigned but I'm not sure how to achieve the counting of A's B's C's as well as their percentage to show. I as well have most the rest of the program I think done but keep getting 2 compile errors that I can't seem to fix.

    I included a txt version of my program if it can be used to help me out in any way.

    Any help would be appreciated.
    Attached Files
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    This is a homework problem. I suggest you read our Posting Guidelines on Homework Questions.

    Comment

    Working...