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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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