Resources the Final Project Overview and the Final Project Interv.docx
1. Resources: the Final Project Overview and the Final Project
Interview documents.
Select a religion that is not your own and interview a person of
that faith. If possible, visit a place of worship and interview a
person of that institution. As an alternative, the interview may
be conducted by telephone, written communication (e.g., email
exchange) or, web/video conference.
Write a 1,050- to 1,400-word informative paper on world
religions.
Compare your selected religion with the other religions studied
in this class.
· What characteristics does your chosen religions share with the
others? What makes it unique?
· How is religion in general, and your chosen religions
specifically, responding to challenges of the modern world?
Include a summary of your interview containing the following
elements:
· Introduction of the religion, including the history
· Date, time and method of interview
· Name of the person interviewed
· Name, location and review of the site if applicable.
· Interview summary
· References
Cite at least five references in addition to the textbook.
Format your paper consistent with APA guidelines.
Submit your assignment using the Assignment Files tab above.
Grading Matrix:
This assignment is worth a total of 10% of your final grade and
will be marked out of 100 points.
Content (75 points)
· Length (1050 - 1400 words) - 5 points
· Comparison - 25 points
· Site visit and interview summary - 25 points
3. Your job is to implement a simple amusement park information
system that
keeps track of admission tickets and merchandise in the gift
shop. The
information system consists of three classes including a class to
model tickets, a
class to model gift shop merchandise, the amusement park, and
the amusement
park tester. The gift shop supports access to specific
merchandise in the park’s
gift shop and to purchase the merchandise or to order new
merchandise for the
gift shop. The UML diagram for each class (except the tester
class) is given
below.
1) Develop a simple class that models admission tickets. Each
admission is
described by several instance fields:
a. A ticket number as a long integer to identify the unique
ticket,
b. A ticket category represented as a String to store the category
of the
ticket (i.e. adult, child, senior),
c. A ticket holder represented as a String to store the name of
the person
who purchased the ticket,
d. A date represented as a Date to store the admission date for
the ticket,
e. A price represented as a double to store the price of the
ticket,
f. A purchase status represented as a boolean to indicate if the
5. the
information stored in the instance fields.
2) Develop a simple class that models merchandise available in
the gift shop
such as t-shirts, sweatshirts, and stuffed animals. The class has
several
instance fields:
a. An ID as a long integer to identify the specific merchandise
item,
b. A category as a String to store the specific type of
merchandise,
c. A description as a String to store the description of the
merchandise,
d. A price represented as a double to store the price of the
merchandise,
e. An instock as a boolean to indicate if the merchandise is
instock or on-
order.
Valid values for category include "T-Shirt", "Sweatshirt", and
"Stuffed Animal",
as well as any additional category you choose to support. If
invalid values are
entered, an error message must be printed and the category
instance field
must be set to "UNKNOWN".
In addition to these attributes, the class has the following
constructors and
methods:
f. A parameterized constructor that initializes the attributes of a
6. merchandise item.
g. setPrice(double price) to change the price of the merchandise.
h. setInstock(boolean newStatus) to change the status of the
merchandise item.
i. Accessor methods for all instance fields.
j. toString() to return a neatly formatted string that contains all
the
information stored in the instance fields.
+Ticket (String, String, Date, double, boolean)
+setPrice(double)
+changePurchaseStatus(boolean)
+getNumber() : long
+getCategory() : String
+getHolder() : String
+getDate() : String
+getPrice() : double
+toString() : String
8. gift shop
inventory. The AmusementPark uses two ArrayLists to store
Ticket and
Merchandise objects. The AmusementPark provides several
methods to
add merchandise to the gift shop and to access merchandise.
The following
UML diagram describes the class, the constructor, and the
methods:
AmusementPark
-tickets : ArrayList<Ticket>
-merchandise : ArrayList<Merchandise>
-name : String
+AmusementPark(String)
+getName() : String
+getTicketDates() : ArrayList<Date>
+getTickets(Date date) : int
+getTicket(long id) : Ticket
+getMerchandise() : ArrayList<Merchandise>
+getMerchandise(String category) : ArrayList<Merchandise>
10. of tickets available for the specified date.
e. getTicket(long id) returns the Ticket that matches the
specified id. If there is no Ticket matching the given id, null is
returned.
f. getMerchandise()returns an ArrayList<Merchandise> of all
the inventory (in-stock and ordered). This method must create a
separate copy of the ArrayList before it returns the list. If there
are
no merchandise items in the AmusementPark, an empty list is
returned.
g. getMerchandise(String category) returns a list of
Merchandise objects whose category matches the specified
category. For example, if called with "T-shirt" the method
returns all
Merchandise objects with the category "T-shirt" as a new list.
This
method must create a new copy of an ArrayList that stores all
the
matched Merchandise objects. If no items in the
AmusementPark
match the given name, an empty list is returned.
h. getMerchandise(long id) returns the merchandise item that
matches the specified id. If there is no merchandise item
11. matching the
given id, null is returned.
i. addTicket(Ticket) adds a new Ticket to the inventory of the
AmusementPark.
j. addMerchandise(Merchandise) adds a new Merchandise to the
inventory of the AmusementPark.
k. buyMerchandise(String id) removes a Merchandise object
from the list of merchandise of the AmusementPark. If the id
does not
match any Merchandise object in the list, an exception is
thrown.
l. buyTicket(String id) removes a Ticket object from the list of
ticket items of the AmusementPark. If the id does not match any
Ticket object in the list, an exception is thrown.
4) Design a tester class called AmusementParkTester. The tester
class has a
main() method and tests the functionality of the class
AmusementPark as
follows:
a. Create AmusementPark and name it "Walden Amusement
Park".
13. v. Prompt the user for continued access to the AmusementPark
or to end the program.
Your program should handle input errors gracefully. For
example, if a particular
ticket is searched and not found, the program should display a
message such as
"Selected ticket not found." Feel free to experiment with the
tester program in
order to develop a more useful program.
Implementation Notes:
1) All accessor methods in AmusementPark must create a new
ArrayList
to copy objects into the new list. This requires loops to access
objects
from the corresponding instance fields and adding them to the
new
ArrayList.
2) Proper error handling is essential for this project.
3) Javadoc must be used to document AmusementPark, Ticket,
and
Merchandise.
Submission Requirements:
1. Your project submission should have four files for this
assignment:
15. There will also be two test classes, one for the LineItem class
and one for the
Transaction class.
2. Design and build a LineItem class. This class will have three
instance variables.
There will be an itemName variable that will hold the
identification of the line item
(such as, "Colgate Toothpaste"); a quantity variable that will
hold the quantity of
the item being purchased; and a price variable that will hold the
retail price of the
item. The LineItem class should have a constructor, accessors
for the instance
variables, a method to compute the total price for the line item,
a method to
update the quantity, and a method to convert the state of the
object to a string.
Using Unified Modeling Language (UML), the class diagram
looks like this:
LineItem
- itemName : String
- quantity : int
- price : double
+ LineItem( String, int, double )
17. associated with the line of the transaction.
d. The method getTotalPrice( ) handles the conversion of the
quantity and
price into a total price for the line item.
e. The method toString( ) allows access to the state of the object
in a
printable or readable form. It converts the variables to a single
string that
is neatly formatted.
Note: Refer to the textbook for a discussion of escape
sequences. These
are characters that can be inserted into strings and, when
printed, will
format the display neatly. An escape sequence for the tab
character can
be inserted to get a tabular form when printing. This tab
character is "t".
The LineItem class will have a toString( ) method that
concatenates
itemName, quantity, price, and total price—separated by tab
characters—and returns this new string. When printing an
object, the
toString( ) method will be implicitly called, which in this case,
will print a
string that will look something like:
18. Colgate Toothpaste qty 2 @ $2.99 $5.98
3. Build a Transaction class that will store information about
the items being
purchased in a single transaction. It should include a
customerID and
customerName. It should also include an ArrayList to hold
information about
each item that the customer is purchasing as part of the
transaction.
Note: You must use an ArrayList, not an array.
4. Build a TransactionTest class to test the application. The test
class should not
require any interaction with the user. It should verify the
correct operation of the
constructor and all methods in the Transaction class.
Specific Requirements for the Transaction Class
1. The Transaction class should have a constructor with two
parameters. The first
is an integer containing the customer’s ID and the second is a
String containing
the customer’s name.
2. There should be a method to allow the addition of a line item
to the transcript.
The three parameters for the addLineItem method will be (1) the
item name, (2)
the quantity, and (3) the single item price.
3. There should be a method to allow the updating of a line item
20. described for the
LineItem class:
Colgate Toothpaste qty 2 @ $2.99 $5.98
Again, the possibility exists that the search for a specific line
item will fail. In this
instance, you should return a string containing a message
similar to this:
Colgate Toothpaste not found.
6. The final method needed is a toString method. It should
return the transaction
information in a single String object. It should use the
following format:
Customer ID : 12345
Customer Name : John Doe
Colgate Toothpaste qty 2 @ $2.99 $5.98
Bounty Paper Towels qty 1 @ $1.49 $1.49
Kleenex Tissue qty 1 @ $2.49 $2.49
Transaction Total $9.96
Notice that a newline character "n" can be inserted into the
middle of a string.
Ex.