SlideShare a Scribd company logo
1 of 22
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
· History of the religion - 10 points
· Introduction - 5 points
· Conclusion - 5 points
Mechanics (25 points)
· Writing style, grammar, and spelling - 5 points
· Following APA guidelines (title page, font, font size, etc) - 5
points
· Minimum 5 references with correct format - 5 points
· Proper use and format of citations. Citations should be
provided for all numbers (dates, statistics, etc) and for little
known facts. If there are no citations you will receive a zero
(0) on this part of the assignment - 10 points.
Copyright © 2012 by University of Phoenix. All rights reserved.
All trademarks are property of their respective owners. See the
li
© 2014 Laureate Education, Inc. Page 1 of 5
Amusement Park Programming Project
Project Outcomes
1. Use the Java selection constructs (if and if else).
2. Use the Java iteration constructs (while, do, for).
3. Use Boolean variables and expressions to control iterations.
4. Use arrays or ArrayList for storing objects.
5. Proper design techniques.
Project Requirements
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
ticket has
been purchased (or is reserved).
Ticket
-number : long
-category : String
-holder : String
-date : Date
-price : double
© 2014 Laureate Education, Inc. Page 2 of 5
In addition to these fields, the class has the following
constructors and
methods:
a. A parameterized constructor that initializes the attributes of a
ticket.
b. setPrice(double price) to change the price of a textbook.
c. changePurchaseStatus(boolean newStatus) to change the
purchase status of the ticket.
d. Accessor methods for all instance fields.
e. toString() to return a neatly formatted string that contains all
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
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
© 2014 Laureate Education, Inc. Page 3 of 5
Merchandise
-id : long
-category : String
-description : String
-price : double
-inStock : boolean
+Merchandise(String, String, String, double, boolean)
+setPrice(double)
+setInstock(boolean)
+getId() : String
+getCategory() : String
+getDescription() : String
+getPrice() : double
+getInstock() : boolean
+toString() : String
3) Develop class AmusementPark that keeps track of tickets and
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>
+getMerchandise(long id) : Merchandise
+addTicket(Ticket)
+addMerchandise(Merchandise)
+buyMerchandise(String id)
+buyTicket(String id)
a. The class has three instance fields:
a. name, the name of the bookstore
b. tickets, an ArrayList<Ticket> storing Ticket objects
© 2014 Laureate Education, Inc. Page 4 of 5
c. merchandise, an ArrayList<Merchandise> storing
Merchandise objects
b. getName() returns the name of the bookstore.
c. getTicketDates() returns an ArrayList<Date> of all the dates
for which tickets are still available. If there are no tickets
available, an
empty list is returned.
d. getTickets (Date date) returns an integer indicating the
number
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
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".
b. Create a minimum of three Ticket objects and add them to the
bookstore.
© 2014 Laureate Education, Inc. Page 5 of 5
c. Create Apparel objects, at least two of each category, and add
them
to the AmusementPark.
d. Set up a loop to:
i. Display a short menu that allows a user to perform different
actions in the gift shop such as looking up tickets or
merchandise or purchasing items. Use all of the accessor
methods in the AmusementPark to access specific items. Use
the given methods to make purchases.
ii. Prompt the user for a specific action.
iii. Depending on the specific action prompt the user for
additional
input such as the id of a ticket or merchandise category, etc.
You might want to use static methods in main() to handle each
menu item separately.
iv. Perform the action and display results such as the list of
merchandise that the user has requested. Use the toString()
method to display AmusementPark items on the screen.
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:
a. Ticket.java - The Ticket class,
b. Merchandise.java - The Merchandise class,
c. AmusementPark.java - The AmusementPark class,
d. AmusementParkTester.java - A driver program for testing
your
AmusementPark class.
2. Remember to compile and run your program one last time
before you
submit it
© 2014 Laureate Education, Inc. Page 1 of 4
Retail Transaction Programming Project
Project Requirements:
1. Develop a program to emulate a purchase transaction at a
retail store. This
program will have two classes, a LineItem class and a
Transaction class. The
LineItem class will represent an individual line item of
merchandise that a
customer is purchasing. The Transaction class will combine
several LineItem
objects and calculate an overall total price for the line item
within the transaction.
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 )
+ getName( ) : String
+ getQuantity( ) : int
+ getPrice( ) : double
+ getTotalPrice( ) : double
+ setQuantity( int )
+ setPrice( double )
+ toString( ) : String
a. The constructor will assign the first parameter to the instance
variable
itemName, the second parameter to the instance variable
quantity, and
the third parameter to the instance variable price.
b. The class will have three accessor methods—getName( ),
getQuantity( ),
and getPrice( )—that will return the value of each respective
instance
variable.
© 2014 Laureate Education, Inc. Page 2 of 4
c. The class will have two mutator methods, setQuantity( int )
and setPrice(
double ), that will update the quantity and price, respectively,
of the item
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:
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
already in the
transaction. Notice that updating an item means changing the
quantity or price
(or both). The parameters for the updateItem method are also
(1) the item name,
(2) the quantity, and (3) the single item price. Notice that the
updating of a
© 2014 Laureate Education, Inc. Page 3 of 4
specific line item requires a search through the ArrayList to
find the desired
item. Anytime a search is done, the possibility exists that the
search will be
unsuccessful. It is often difficult to decide what action should
be taken when such
an "exception" occurs. Since exception handling is not covered
until later in this
textbook, make some arbitrary decisions for this project. If the
item to be updated
is not found, take the simplest action possible and do nothing.
Do not print an
error message to the screen. Simply leave the transaction
unchanged.
4. The transaction class needs a method called getTotalPrice to
return the total
price of the transaction.
5. There should also be a method to return information about a
specific line item. It
should return a single String object in the same format
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.
int age = 30;
String temp = "John Doe n is " + age + "n" + " years
old";
The output would be:
John Doe
is 30
years old
© 2014 Laureate Education, Inc. Page 4 of 4
Notice also that "n" is a single character and could actually go
inside single or
double quotes, depending on the circumstances.
Here is a UML diagram for the Transaction class as described
above. Notice that
private instance variables and methods may be added, as
needed. For all public
methods use exactly the name given below.
Transaction
- lineItems : ArrayList<LineItem>
- customerID : int
- customerName : String
+ Transaction( int, String )
+ addLineItem( String, int, double )
+ updateItem( String, int, double )
+ getTotalPrice( ) : double
+ getLineItem( String ) : String
+ toString( ) : String

More Related Content

Similar to Resources the Final Project Overview and the Final Project Interv.docx

JAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxLucky Ally
 
EE660 Project_sl_final
EE660 Project_sl_finalEE660 Project_sl_final
EE660 Project_sl_finalShanglin Yang
 
Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...hwbloom3
 
Django 1.1 Tour
Django 1.1 TourDjango 1.1 Tour
Django 1.1 TourIdan Gazit
 
Program Specifications Develop an inventory management system for an e.docx
Program Specifications Develop an inventory management system for an e.docxProgram Specifications Develop an inventory management system for an e.docx
Program Specifications Develop an inventory management system for an e.docxVictormxrPiperc
 
Java Data Types
Java Data TypesJava Data Types
Java Data TypesSpotle.ai
 
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdffasttracksunglass
 
I really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdfI really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdfpasqualealvarez467
 
show code and all classes with full implementation for these Program S.pdf
show code and all classes with full implementation for these Program S.pdfshow code and all classes with full implementation for these Program S.pdf
show code and all classes with full implementation for these Program S.pdfAlanSmDDyerl
 
Write a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdfWrite a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdfeyebolloptics
 

Similar to Resources the Final Project Overview and the Final Project Interv.docx (14)

JAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docx
 
EE660 Project_sl_final
EE660 Project_sl_finalEE660 Project_sl_final
EE660 Project_sl_final
 
Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...Assignment #4 will be the construction of 2 new classes and a driver program/...
Assignment #4 will be the construction of 2 new classes and a driver program/...
 
Auction Portal
Auction PortalAuction Portal
Auction Portal
 
Django 1.1 Tour
Django 1.1 TourDjango 1.1 Tour
Django 1.1 Tour
 
ORM in Django
ORM in DjangoORM in Django
ORM in Django
 
Program Specifications Develop an inventory management system for an e.docx
Program Specifications Develop an inventory management system for an e.docxProgram Specifications Develop an inventory management system for an e.docx
Program Specifications Develop an inventory management system for an e.docx
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf12.9 Program Online shopping cart (continued) (C++)This program e.pdf
12.9 Program Online shopping cart (continued) (C++)This program e.pdf
 
I really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdfI really need help with this Assignment Please in C programming not .pdf
I really need help with this Assignment Please in C programming not .pdf
 
Numerical data.
Numerical data.Numerical data.
Numerical data.
 
show code and all classes with full implementation for these Program S.pdf
show code and all classes with full implementation for these Program S.pdfshow code and all classes with full implementation for these Program S.pdf
show code and all classes with full implementation for these Program S.pdf
 
Tinkerplots
TinkerplotsTinkerplots
Tinkerplots
 
Write a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdfWrite a program that mimics the operations of several vending machin.pdf
Write a program that mimics the operations of several vending machin.pdf
 

More from debishakespeare

Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docxEthical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docxdebishakespeare
 
Ethical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docxEthical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docxdebishakespeare
 
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docxEthical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docxdebishakespeare
 
Ethical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docxEthical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docxdebishakespeare
 
Ethical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docxEthical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docxdebishakespeare
 
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxdebishakespeare
 
Ethical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docxEthical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docxdebishakespeare
 
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docxEthical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docxdebishakespeare
 
Ethical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxEthical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxdebishakespeare
 
Ethical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docxEthical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docxdebishakespeare
 
Ethical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docxEthical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docxdebishakespeare
 
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docxEthical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docxdebishakespeare
 
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docxEthical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docxdebishakespeare
 
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docxEthical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docxdebishakespeare
 
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docxETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docxdebishakespeare
 
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter  Fou.docxEthical and Human Rights Concerns in Global HealthChapter  Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter Fou.docxdebishakespeare
 
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docxEthical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docxdebishakespeare
 
EthernetSatellite dishInternational Plastics, Inc. - C.docx
EthernetSatellite dishInternational Plastics, Inc. -  C.docxEthernetSatellite dishInternational Plastics, Inc. -  C.docx
EthernetSatellite dishInternational Plastics, Inc. - C.docxdebishakespeare
 
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docxEthanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docxdebishakespeare
 
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docxEthan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docxdebishakespeare
 

More from debishakespeare (20)

Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docxEthical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
 
Ethical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docxEthical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docx
 
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docxEthical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
 
Ethical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docxEthical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docx
 
Ethical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docxEthical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docx
 
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
 
Ethical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docxEthical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docx
 
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docxEthical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
 
Ethical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxEthical Approaches An Overview of .docx
Ethical Approaches An Overview of .docx
 
Ethical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docxEthical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docx
 
Ethical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docxEthical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docx
 
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docxEthical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
 
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docxEthical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
 
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docxEthical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
 
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docxETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
 
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter  Fou.docxEthical and Human Rights Concerns in Global HealthChapter  Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
 
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docxEthical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
 
EthernetSatellite dishInternational Plastics, Inc. - C.docx
EthernetSatellite dishInternational Plastics, Inc. -  C.docxEthernetSatellite dishInternational Plastics, Inc. -  C.docx
EthernetSatellite dishInternational Plastics, Inc. - C.docx
 
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docxEthanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
 
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docxEthan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
 

Recently uploaded

Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 

Recently uploaded (20)

Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

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
  • 2. · History of the religion - 10 points · Introduction - 5 points · Conclusion - 5 points Mechanics (25 points) · Writing style, grammar, and spelling - 5 points · Following APA guidelines (title page, font, font size, etc) - 5 points · Minimum 5 references with correct format - 5 points · Proper use and format of citations. Citations should be provided for all numbers (dates, statistics, etc) and for little known facts. If there are no citations you will receive a zero (0) on this part of the assignment - 10 points. Copyright © 2012 by University of Phoenix. All rights reserved. All trademarks are property of their respective owners. See the li © 2014 Laureate Education, Inc. Page 1 of 5 Amusement Park Programming Project Project Outcomes 1. Use the Java selection constructs (if and if else). 2. Use the Java iteration constructs (while, do, for). 3. Use Boolean variables and expressions to control iterations. 4. Use arrays or ArrayList for storing objects. 5. Proper design techniques. Project Requirements
  • 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
  • 4. ticket has been purchased (or is reserved). Ticket -number : long -category : String -holder : String -date : Date -price : double © 2014 Laureate Education, Inc. Page 2 of 5 In addition to these fields, the class has the following constructors and methods: a. A parameterized constructor that initializes the attributes of a ticket. b. setPrice(double price) to change the price of a textbook. c. changePurchaseStatus(boolean newStatus) to change the purchase status of the ticket. d. Accessor methods for all instance fields. e. toString() to return a neatly formatted string that contains all
  • 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
  • 7. © 2014 Laureate Education, Inc. Page 3 of 5 Merchandise -id : long -category : String -description : String -price : double -inStock : boolean +Merchandise(String, String, String, double, boolean) +setPrice(double) +setInstock(boolean) +getId() : String +getCategory() : String +getDescription() : String +getPrice() : double +getInstock() : boolean +toString() : String 3) Develop class AmusementPark that keeps track of tickets and
  • 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>
  • 9. +getMerchandise(long id) : Merchandise +addTicket(Ticket) +addMerchandise(Merchandise) +buyMerchandise(String id) +buyTicket(String id) a. The class has three instance fields: a. name, the name of the bookstore b. tickets, an ArrayList<Ticket> storing Ticket objects © 2014 Laureate Education, Inc. Page 4 of 5 c. merchandise, an ArrayList<Merchandise> storing Merchandise objects b. getName() returns the name of the bookstore. c. getTicketDates() returns an ArrayList<Date> of all the dates for which tickets are still available. If there are no tickets available, an empty list is returned. d. getTickets (Date date) returns an integer indicating the number
  • 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".
  • 12. b. Create a minimum of three Ticket objects and add them to the bookstore. © 2014 Laureate Education, Inc. Page 5 of 5 c. Create Apparel objects, at least two of each category, and add them to the AmusementPark. d. Set up a loop to: i. Display a short menu that allows a user to perform different actions in the gift shop such as looking up tickets or merchandise or purchasing items. Use all of the accessor methods in the AmusementPark to access specific items. Use the given methods to make purchases. ii. Prompt the user for a specific action. iii. Depending on the specific action prompt the user for additional input such as the id of a ticket or merchandise category, etc. You might want to use static methods in main() to handle each menu item separately. iv. Perform the action and display results such as the list of merchandise that the user has requested. Use the toString() method to display AmusementPark items on the screen.
  • 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:
  • 14. a. Ticket.java - The Ticket class, b. Merchandise.java - The Merchandise class, c. AmusementPark.java - The AmusementPark class, d. AmusementParkTester.java - A driver program for testing your AmusementPark class. 2. Remember to compile and run your program one last time before you submit it © 2014 Laureate Education, Inc. Page 1 of 4 Retail Transaction Programming Project Project Requirements: 1. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual line item of merchandise that a customer is purchasing. The Transaction class will combine several LineItem objects and calculate an overall total price for the line item within the transaction.
  • 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 )
  • 16. + getName( ) : String + getQuantity( ) : int + getPrice( ) : double + getTotalPrice( ) : double + setQuantity( int ) + setPrice( double ) + toString( ) : String a. The constructor will assign the first parameter to the instance variable itemName, the second parameter to the instance variable quantity, and the third parameter to the instance variable price. b. The class will have three accessor methods—getName( ), getQuantity( ), and getPrice( )—that will return the value of each respective instance variable. © 2014 Laureate Education, Inc. Page 2 of 4 c. The class will have two mutator methods, setQuantity( int ) and setPrice( double ), that will update the quantity and price, respectively, of the item
  • 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
  • 19. already in the transaction. Notice that updating an item means changing the quantity or price (or both). The parameters for the updateItem method are also (1) the item name, (2) the quantity, and (3) the single item price. Notice that the updating of a © 2014 Laureate Education, Inc. Page 3 of 4 specific line item requires a search through the ArrayList to find the desired item. Anytime a search is done, the possibility exists that the search will be unsuccessful. It is often difficult to decide what action should be taken when such an "exception" occurs. Since exception handling is not covered until later in this textbook, make some arbitrary decisions for this project. If the item to be updated is not found, take the simplest action possible and do nothing. Do not print an error message to the screen. Simply leave the transaction unchanged. 4. The transaction class needs a method called getTotalPrice to return the total price of the transaction. 5. There should also be a method to return information about a specific line item. It should return a single String object in the same format
  • 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.
  • 21. int age = 30; String temp = "John Doe n is " + age + "n" + " years old"; The output would be: John Doe is 30 years old © 2014 Laureate Education, Inc. Page 4 of 4 Notice also that "n" is a single character and could actually go inside single or double quotes, depending on the circumstances. Here is a UML diagram for the Transaction class as described above. Notice that private instance variables and methods may be added, as needed. For all public methods use exactly the name given below. Transaction - lineItems : ArrayList<LineItem>
  • 22. - customerID : int - customerName : String + Transaction( int, String ) + addLineItem( String, int, double ) + updateItem( String, int, double ) + getTotalPrice( ) : double + getLineItem( String ) : String + toString( ) : String