Write grading program for multiple choice test

Assignment Help JAVA Programming
Reference no: EM132430704

The University of Southern North Dakota Testing department needs to write grading program for multiple choice test. It should be capable of grading tests with up to 50 questions and for any number of students. The program should grade individual exams and calculate the grade for the student based on the number of questions, each being the same value out of 100. For example, if there are 25 questions each is worth 4.

The program must also determine how many times each score was earned on the test. This is a count or frequency. The program must should show the number of students graded and the class average.

The program should have

  • a procedure (called with different parameters) to read the answer key and the student responses. The arrays are the same size and data type so only one procedure is needed to read both.
  • a function that take the answer key and student response as parameters and then computes the score for that student. The score is returned as integer by the function.
  • an input file. The program asks the user for the name of the file. The file name is entered at the keyboard. All subsequent data is read from the file.
  • a score frequency count. Every time a score is computed increment a counter for that value. Any score from 0 to 100 is possible (integer only), so the program needs 101 counters!

Behavior not assigned to functions may be done in main.

The program will accept the input file name from the keyboard after prompting the user for the file name.

The first line in the input files contains the number of questions on the exam, the second the answer key, and all following lines contain the student ids and responses to the questions.

The input shown here

20

2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

12345 2 1 1 1 4 4 3 3 2 1 2 4 5 2 2 1 4 4 4 3

23456 2 1 1 2 3 4 5 3 2 1 2 4 5 2 1 2 3 4 4 1

14567 1 2 1 3 4 4 3 3 2 1 2 4 5 2 2 1 4 4 4 2

15678 2 1 2 3 3 4 5 3 1 1 3 4 5 2 1 1 3 4 4 2

16789 2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

17890 2 1 1 3 4 4 5 3 2 1 2 4 5 2 2 1 4 4 4 3

12245 1 2 1 3 4 4 3 3 2 1 4 4 5 2 2 1 4 4 4 2

12256 2 1 2 3 3 4 5 3 1 1 2 4 5 2 1 1 3 4 4 2

22345 2 1 1 2 3 4 5 3 2 1 2 4 5 2 1 2 3 4 4 1

22456 1 2 1 3 4 4 3 4 2 1 2 4 5 2 2 1 4 4 4 2

13244 2 1 1 3 3 4 5 3 1 1 3 4 5 2 1 1 3 4 4 2

22458 2 2 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

23678 2 1 3 3 4 4 5 3 2 1 2 4 5 2 2 4 4 4 4 3

24567 2 1 2 3 3 4 5 3 2 1 2 4 5 1 1 2 3 3 4 1

11412 2 1 2 3 3 4 5 3 1 2 2 4 4 2 1 1 3 4 4 2

Reference no: EM132430704

Questions Cloud

Differences between using an array and a database in java : What are the major differences between using an array and a database in Java, why or when would you need both in the same program?
What is difference between positivism and anti-positivism : What is the difference between macro and micro theories. Use structural Functionalism, Conflict theory and symbolic interventionism to explain answer.
Explain process of integrating evidence-based practice : Clinical Judgment is the process of integrating evidence-based practice, critical-thought, the Nursing Process, knowledge, skills, and attitudes.
Case involving domestic abuse : Morgan and Dunn JD have hired you to assist with a case involving domestic abuse. Write a one-page report detailing your equipment and software.
Write grading program for multiple choice test : The University of Southern North Dakota Testing department needs to write grading program for multiple choice test. It should be capable of grading tests
Briefly describe the qualitative research approach : Compare and contrast the two qualitative methods used: What is the same and what is different and why? Does either methods seem a good fit to explore
Storage format for digital evidence-linux-proprietary tool : You are responsible for protecting integrity of data you collect from hard drive. Compare and contrast the viable use of a Linux tool versus a proprietary tool.
What are the user benefits of sharepoint : Question 1: What are the user benefits of Sharepoint (a microsoft app)? Question 2: What are the organization benefits of Sharepoint?
How the framework was used to inform the research study : Describe how the framework was used to inform the research study. How much did the researchers write about it in the journal article?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program that reads a list of real numbers.

Write a program that reads a list of real numbers. After the program ends it should print out only the unique numbers

  Create a default and parameterized constructor

Processing Arrays of Objects- Create a default and parameterized constructor. Create a get method to calculate and return the profit or loss.

  Point of sale terminal

a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..

  Are scripting languages such as javascript better choice

Based on Keston (2008), does the C++ programming language have a role in developing Web 2.0 application solutions based on service-oriented architectures (SOA)? Explain why or why not. Are scripting languages such as JavaScript Perl or Python bett..

  The abstract class and interface

What is the difference between the Abstract Class and Interface.Write a java Program that counts number of words in each line of the file.

  Create an android app that used to enter student grades

Create an Android app that will be used to enter student grades for college courses. Develop three screens as follows: The first screen should allow the entry of a student id, first name, last name, class id, and class name.

  Create a java class called student

Create a Java class called student with the following instance variables: private String studentName

  Create a javafx animated application

Create a JavaFX Animated Application named NeighborhoodDrive. Make sure your main class is called NeighborhoodDrive.

  Role of setter and getter in mortgage calculator

The setter and getters must stay in MortgageCalculator.java and everything should output from main (Driver.java).

  Create function to rotate the array

Write a program that allows users to input an integer for the size of an array. Randomly generate an integer for each element of the array.

  Change program from a while loop to a do while loop

Change program from a while loop to a do while loop - When I created the Game the user had to input a guess before going through the loop, with a Do-While Loop

  Write your own http client to test your server

Write your own HTTP client to test your server. Your client will connect to the server using a TCP connection, send an HTTP request to the server

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd