Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA OOP Bible Overview Design a set of OOP classes to model a bible app. Details Bible ArrayList books String translation Reference randomVerse() Return a

JAVA

OOP Bible

Overview

Design a set of OOP classes to model a bible app.

Details

Bible

  • ArrayList books
  • String translation
  • Reference randomVerse()
    • Return a random verse from a random chapter of a random book.
  • ArrayList search(String s)
    • An ArrayList of all references where string s is included.

Book

  • ArrayList chapters
  • String name
  • BookType type
  • String author
  • TestatmentType testament

BookType - enum

  • Law, History, Poetry, MajorProphets, MinorProphets, Gospel, PaulineEpistles, GeneralEpistles, Prophecy.

TestamentType - enum

  • OldTestament, NewTestament

Chapter

  • ArrayList verses
  • int number
  • String title
  • toString()
    • Print the chapter number, a new line, and then all the verses toString().

Verse

  • String text
  • int number
  • boolean isHighlighted
  • highlight()
  • unhighlight()
  • comment(String comment)
  • ArrayList comments
  • toString()
    • verse number, then a space, then the text of the verse.

Reference

  • Book book
  • Chapter chapter
  • Verse verse
  • String toString()
    • "Genesis 3:24"

5 Classes : Main.java, Book.java, Chapter.java, Verse.java, and Reference.java

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

2. How do these vengeful heroes exorcise their daemons?

Answered: 1 week ago

Question

What do you think of the MBO program developed by Drucker?

Answered: 1 week ago