Implement a class quiz

Assignment Help JAVA Programming
Reference no: EM134312

Write the code with comment and output result

Interface and Polymorphism

Implement a class Quiz that implements the Measurable interface. A quiz has a score and a letter grade (such as B+). Use the implementation of the DataSet class to process a collection of quizzes. Display the average score and the quiz with the highest score (both letter grade and score).

Consider the task of translating a plain text book from Project Gutenberg to HTML. For example, here is the start of the first chapter of Tolstoy's Anna Karenina:

Everything was in confusion in the Oblonskys' house. The wife had discovered that the husband was carrying on an intrigue with a French girl, who had been a governess in their family, and she had announced to her husband that she could not go on living in the same house with him...

The equivalent HTML is:

< h1>Chapter 1 < /h1>
< p>Happy families are all alike; every unhappy family is unhappy in its own way.< /p>
< p>Everything was in confusion in the Oblonskys' house. The wife had discovered that the husband was carrying on an intrigue with a French girl, who had been a governess in their family, and she had announced to her husband that she could not go on living in
the same house with him ...< /p>
The HTML conversion can be carried out in two steps. First, the plain text is assembled into segments, blocks of text of the same kind (heading, paragraph, and so on). Then each segment is converted, by surrounding it with the HTML tags and converting special characters.

Plain Text HTML
" "&1dquo(left) or &rdquo; (right)
‘ ' &lsquo; (left) or&rsquo; (right)
-&emdash;
<&1t;
>&gt;
&&amp;

Fetching the text from the breaking and Internet it into segments is a challenging task. Provide an interface and a mock implementation. Combine it with a class that uses the mock implementation to complete the formatting task.

Reference no: EM134312

Questions Cloud

Create a java class called samearraysexception : Create a Java class called SameArraysException that extends the Exception class.
Write a class that implements an ordered list of strings : In this problem you will write a class that implements an ordered list of Strings.
What are the potential benefits of each stage : Why an ERP systems journey may never end What are the possible stages in an ERP systems journey? What are the potential benefits of each stage?
Determine the decision of java : Determine the decision of Java as the platform to develop this program. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utiliz..
Implement a class quiz : Implement a class Quiz that implements the Measurable interface.
Design a single class that expresses the commonality : Design a single class that expresses the commonality of these concepts.
Write a program that reads a set of floating-point : Write a program that reads a set of floating-point data values from the input.
Strategic hrm approaches : Review the Unit Introduction and the Learning Resources, including the HR/OB Matrix.
Sha case study analysis : Review Tarmac's Business Case for Diversity and the Learning Resources

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Minimal spanning tree decreasing edge dismissal

Minimal Spanning Tree Decreasing Edge Dismissal, Reverse-delete algorithm. Develop an implementation that computes the MST

  Cascading style sheet to a website

Compare and contrast the process of adding JavaScript and a Cascading Style Sheet to a Website. Determine if they can be used simultaneously in a page.

  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.

  Develop a reliable transfer protocol over udp

Develop a reliable transfer protocol over UDP. Focus on a Stop- and-Wait protocol.

  Rock-paper-scissors :- java problem

Design decision marks are based on how you implemented our programs/classes.

  Record managing system application

Build a student record managing system application

  Determine if strings are equal

Complete the recursive method match in the code below which will determine whether or not two strings match.

  User session mgr - socket and thread programs

User Session Mgr - Socket and Thread Programs

  Create a project in eclipse

Create a new project

  Java program simulate a network

Java program simulate a network

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

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