Intro to Computer Programming - Pseudocode

posted by .

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.

  • Intro to Computer Programming - Pseudocode -

    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.

  • Intro to Computer Programming - Pseudocode -

    wap to produce a report card of three students

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. programming

    I really need help in this it makes me confuse.I should make a program to find a pattern...so can somebody help me... Write a function to recognize an pattern within another array. Your function should have the following prototype. …
  2. computer science

    Create a method called countZeros, which takes an integer array as an input parameter and returns the number of zero entries in the array
  3. Javascript

    I would like the function test to get the input from the user and display the like the counter function and to display if it passed or not. var negatives =0; var zeroes =0; var positives=0 ; function counter(array){ var i=0; for(i=0;i<array.length;i++) …
  4. Pseudocode with sequential, selection and arrays

    Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array. …
  5. computer programming

    Input a list of positive numbers (terminated by 0) into an array, find the mean (average) of the numbers in the array, and output the result. Use a subprogram to input the numbers, a function to find the mean, and a subprogram to output …
  6. math

    don break a 4x7 array into a 2x7 array and another array. what is the fact for dons second array?
  7. programming

    Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
  8. Programming Logic & Design

    Modify the previous process to store the scores in an array. You will need to use either parallel arrays or a two-dimensional array in order to store the score, slope and rating for each entry. In the loop you created in the previous …
  9. programming

    A. Write a program which reads an array of up to 200 integers from input and then does all the following in order 1. searches the array for a specific integer given by the user and outputs its position in the array; 2. outputs the …
  10. Math

    Tony broke a larger array into 2 x 9 array and a 4 x 9 array. What did the larger array look like?

More Similar Questions