Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

***can you please write this in JAVA without using a scanner*** Introduction to arrays and Strings You are going to write a program to perform

***can you please write this in JAVA without using a scanner***

Introduction to arrays and Strings

You are going to write a program to perform automated grading for True/False quiz. The first line of input will contain the quiz number followed by the answers to the quiz (T or F). The subsequent lines of input will contain the student's name (last, first), the student's ID (nine digits), followed by the student's answers to the quiz. Your program terminates processing student data when the string "ZZZZ" as the only data contained in the input. Your program will output the student's ID, the student's name (first last) and the score received for the quiz.

An example input to your program:

 1 T T T T T F T T F F Bobb, Bill 123456789 T T T T T F T T F F Lou, Mary 974387643 F T T T T F T T F F Bobb, Sam 213458679 F T F T f t 6 T F f Bobb, Joe 315274986 t t t t t f t t f f ZZZZ 

which will produce the output:

 Results for quiz 1: 123-45-6789 Bill Bobb 10 974-38-7643 Mary Lou 9 213-45-8679 Sam Bobb 5 315-27-4986 Joe Bobb 10 The average score is 8.5 

Error processing:

if the answer is neither a T/t or F/f it is considered incorrect.

if no students are in the class, your program will output:

 Quiz 1: Empty class data 

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions