Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

... P12.3 Write a program that administers and grades quizzes. A quiz consists of questions. There are four types of questions: text questions, number questions,

image text in transcribed

... P12.3 Write a program that administers and grades quizzes. A quiz consists of questions. There are four types of questions: text questions, number questions, choice questions with a single answer, and choice questions with multiple answers. When grading a text question, ignore leading or trailing spaces and letter case. When grading a numeric question, accept a response that is approximately the same as the answer. A quiz is specified in a text file. Each question starts with a letter indicating the question type (T, N, S, M), followed by a line containing the question text. The next line of a non-choice question contains the answer. Choice questions have a list of choices that is terminated by a blank line. Each choice starts with + (correct) or- (incorrect). Here is a sample file: T Which Java reserved word is used to declare a subclass? extends S What is the original name of the Java language? -*7 -C- + Oak - Gosling M Which of the following types are supertypes of Rectangle? - PrintStream + Shape + RectangularShape + Object - String N What is the square root of 2? 1.41421356 Your program should read in a quiz file, prompt the user for responses to all questions, and grade the responses. Follow the design process described in this chapter

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions

Question

Define the analytical notion of metrics.

Answered: 1 week ago

Question

Do you strive to create a diverse workforce?

Answered: 1 week ago

Question

=+ What are the information and consultation requirements?

Answered: 1 week ago