Intro to Computer Programming - Pseudocode

This assignment (below) jumped way ahead of my abilities compared to the last assignment. I think I need a parallel array or a 2D array, an accumulator or loop counter, a verification of input, and Boolean something. But I'm not sure how to write it. We're not writing pseudocode in any particular language. Here's the problem:

Design a program that grades a student exam. The exam has 25 multiple choice questions. The correct answers are: 1.B, 2.C, 3.A, 4.A, 5.D, 6.B, 7.A, 8.C, 9.C, 10.D, 11.B, 12.A, 13.D, 14.D, 15.D, 16.C, 17.B, 18.A, 19.D, 20.B, 21.D, 22.A, 23.D, 24.B, 25.C.

Have your program store these answers in an array (store each answer as an element of a string array).
Have the program ask the user to input student's answers to the questions and store them in another array.
Display a message telling whether the student passed or failed. 18 or more correct answers to pass, 17 or fewer correct answers = fail.
Then display total number of correct answers, total number of incorrect answsers, and a list showing question numbers of incorrectly answered questions.

  1. 👍 0
  2. 👎 0
  3. 👁 69
asked by Lauren
  1. You don't need a 2D array. You probably do need a loop (although some languages have features that kind of let you avoid that).

    You'll need at least two 1D arrays. (Possibly 3, depending on how you implement it)

    What you need to do is this:
    Get the student's answers from the user.
    ->Store this in an array
    Compare each answer to the correct one for the corresponding question
    ->Correct answers also in an array
    Separate the correct answers from the incorrect.
    Calculate your output from this.

    1. 👍 0
    2. 👎 0
    posted by Noether
  2. wap to produce a report card of three students

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. English

    In your own opinion 1. How do objectives assist a student in completing the assignment? 2. Describe what needs to be done for the assignment found in a sample syllabus? 3. If you were to complete the assignment found in a sample

    asked by Anonymous on June 17, 2018
  2. Computer

    12. Enter the following Marks for Assignment One figures: Name Assgn 1 John 10 Mary 12 Emma 15 Pita 15 Avi 15 Ramu 10 Sani 11 13. Due to a recent natural disaster, MAF11 students were unable to submit their assignments 2 and 3.

    asked by Shinal on April 24, 2011
  3. sociology

    This assignment is confusing me, is there anyone that can lead me in the right direction? The assignment is as follows. If appointed to head the U.S. Civil Service Commission, what polices would you propose to reduce radical

    asked by sue on February 19, 2011
  4. CJ 468

    I am having trouble with an assignment, I am not sure how to complete this assignment, and was wanting to get help to complete this assignment so I can improve my grade

    asked by Rhonda on July 28, 2018
  5. math

    lara and maria finished 3/4 of their homework assignment. lara did 1/4 more of the assignment than maria. what fraction of the assignment did each girl finish?

    asked by sean on February 6, 2013
  6. Math

    Mara finished 1/5 of her assignment on Saturday and 3/8 of her assignment on Sunday. What fraction of her assignment did she complete on Saturday and Sunday? --Thank you!--

    asked by Scott on September 30, 2015
  7. Literacy

    What damage does a teacher do who assigns a writing assignment but does not grade that assignment with any effective rubric?

    asked by Anonymous on April 14, 2010
  8. history

    I need help with my homework assignment. Assignment: tell us about this ongoing right abuse and violation of international law. Unfortunately, I was not able to find anything. Please help as soon as possible. Thank you

    asked by lou on July 23, 2008
  9. Social studies

    I need help on the assignment that is due on 11/26. I am requesting Angela Cooper for assistant. Please let me know and I will submit the assignment.

    asked by Loey on November 19, 2008
  10. French 101.

    I am working on an assignment for French 101 and I got a lot of the problems wrong. I need help on them. Is there anyone who could help me with my assignment. I have to have it done before 12:00 a.m.

    asked by Sammantha Avants on October 19, 2015

More Similar Questions