Help with a program please!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pk9190
    New Member
    • Jul 2007
    • 1

    #1

    Help with a program please!

    In this assignment, you will write grading program for a class with the following grading policies.
    1. there are 2 quizzes, each graded on the basis of 10 points.
    2. there is 1 midterm exam and one final exam, each graded on the basis of 100 points.
    3. the final exam counts for 50% of the grade, the midterm counts for 25%, and the 2 quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores.)
    A letter grade will be given based on the following criterion:
    90 – 100 A
    80 – 89 B
    70 – 79 C
    60 – 69 D
    0 – 59 E
    The program will read in the student’s scores from a text file, and output the student’s record, which consists of the name, 2 quiz and 2 exam scores as well as the student’s average numeric score for the entire course and final letter grade.
    Define and use a class for the student record. All the scores are integers and a student name consists of no more than 10 characters. You must justify your output file.


    _______________ _______________ _______________ __


    Thanks so much.
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Originally posted by pk9190
    In this assignment, you will write grading program for a class with the following grading policies.
    1. there are 2 quizzes, each graded on the basis of 10 points.
    2. there is 1 midterm exam and one final exam, each graded on the basis of 100 points.
    3. the final exam counts for 50% of the grade, the midterm counts for 25%, and the 2 quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores.)
    A letter grade will be given based on the following criterion:
    90 – 100 A
    80 – 89 B
    70 – 79 C
    60 – 69 D
    0 – 59 E
    The program will read in the student’s scores from a text file, and output the student’s record, which consists of the name, 2 quiz and 2 exam scores as well as the student’s average numeric score for the entire course and final letter grade.
    Define and use a class for the student record. All the scores are integers and a student name consists of no more than 10 characters. You must justify your output file.


    _______________ _______________ _______________ __


    Thanks so much.
    Sorry theScripts will not help you write a program. Please read the
    Posting Guidelines http://www.thescripts.com/forum/faq....ing_guidelines.
    TheScripts are here to help you when you get stuck.

    Try to write some code, how many objects do I need. Your instructed told you that the scores are integers, your student name should be what?
    How are you going to store the info, array, arraylist?
    Once you figure out how integer are need, you need to start to figure out the math part.
    the final exam counts for 50% of the grade, the midterm counts for 25%, and the 2 quizzes together count for a total of 25%.
    What kind of statements are you going to use for the grade



    nomad
    hint start out slowly do one step at a time do the student part first, store the value and then print it out. then work on the integer part, same thing, next the math part and so on down the line.

    Comment

    • praveen2gupta
      New Member
      • May 2007
      • 200

      #3
      Hint use SWITCH statement to solve the problem. SWITCH statement is used to solve this types of cases.

      Comment

      Working...