Object Oriented Application Development week 3

In this assignment, you will be asked to demonstrate what you have learned in the Discussion Board in terms of vector, wrapper classes, conversion, and collection data structures by writing and implementing Java code within your application that demonstrates each of these concepts. Hint: These may be utilized in areas of storing items in the customer order so that you can allow the customer to order more than one sub or beverage. Refer to the sample prototype in Unit 1 for the various item lists you will use. Feel free to add more choices to each of these lists.DeliverableThe following are the Unit 3 Individual Project deliverables:Update the title page for the Design Document with the Project Name (Unit 3 IP) and date.Add the following section header: Phase 3 Revised Application Screenshots.Add screenshots of each distinct screen from your running application.Name the document yourname_ITSD424_IP3.doc.Submit the design document and the zipped Java project files for grading.(Discussion Board Answer)One – Vector Class and Methods(for the creation and manipulation of queues and stacks) Vectors are similar to Arrays, but Arrays are limited in size and is used where the number of elements handled is known, and Vectors are unlimited in size and used where the number of elements dealt with is not known (Tutorialpoints.com, 2017). As it stands, Vectors seem to have the advantage. Also its infinite capacity, it proves to be very powerful for use because it also contains useful methods such as:void insertElementAt(Object obj, int index)Object ElementAt(int index)void copyInto(Object[] anArrayint capacity()void addElement(Object obj)Code Sample:/** Below is code that demonstrates how vectors are created, return the size and capacity of the vector, and adding new elements to a vector. */ import java.utils.*; public class VectorDemo { public static void main(String arg[]) { Vector vec = new Vector(1 , 1); System.out.println(“Initial size: ” +vec.size()); System.out.println(“Initial capacity: ” +vec.capacity()); vec.adElement(new Interger(12)); vec.adElement(new Interger(23)); vec.adElement(new Interger(34)); System.out.println(“Capacity after additions: ” +vec.capacity()); } }Two – Wrapper Classes(For primitives)Objects are filed in a collection, but primitives such as ints and floats are not. Arrays, on the other hand, can hold primitives. Primitives can be placed in a collection by using a wrapper class to wrap it into an object. In short, primitives can be converted into objects and vice versa using wrapper classes (Oracle.com, 2017).Code Sample:/** Below is convertion code that changes ints to Integers, integers back to ints, doubles to Doubles, and Doubles back to doubles. */ //auto-unbox from Double to double double d = doubleObj; //auto boxing from double to Double Double doubleObj = 55.66 //auto-unbox from integer to int int i = intObj; //auto box from int to integer Integer intObj = 5566;Three – Conversion Methods(Converting Multiple Strings)In Java Applications, Strings are highly advised to be used as Java Strings provide a multitude of methods to perform on strings (Oracle.com, 2017). Some String Methods are:For String Concatenation:String concat(String str);For returning a substring:String substring(int beginIndex);Returns string length:int length();Finds a char at a particular index:char charAt(int index);Code Sample: /** Below is a Demonstration of how to manipulate strings inside of Java. */ public class Test { public static void main(String args[]} String s= “String concept”; char result = s.charAt(8); System.out.pring(result); } }
name_itsd424_ip5.doc

yourname_itsd424_ip11.docx

Don't use plagiarized sources. Get Your Custom Essay on
Object Oriented Application Development week 3
Just from $13/Page
Order Essay

yourname_itsd424_ip11.docx

source.zip

Unformatted Attachment Preview

Running Head: FAMOUS SUBS
1
Famous Favourite Subs
(Unit 5 IP)
December 8, 2015
Sherry L. Cooper-Beck
American InterContinental
Phase 5 Revised Applications Screenshot
Famous Favorite Sub Ordering Application
Screenshot
2
Phase 5 Revised Applications Screenshot
Order Confirmation
3
Phase 5 Revised Applications Screenshot
Input File: SubOrder.txt
4
Phase 5 Revised Applications Screenshot
Use Case diagrams
Class diagrams
5
Phase 5 Revised Applications Screenshot
6
Phase 5 Revised Applications Screenshot
Activity Diagram
7
Phase 5 Revised Applications Screenshot
8
Course Number
Course Section
Course Name
Project Name (Unit 1 IP)
Student Name
1|Page
Table of Contents
Table of figures …………………………………………………………………………………………………………………………… 2
Introduction ………………………………………………………………………………………………………………………………… 3
Use cases ……………………………………………………………………………………………………………………………………. 3
Class Diagram …………………………………………………………………………………………………………………………….. 4
Activity diagram ………………………………………………………………………………………………………………………….. 5
Sequence diagram……………………………………………………………………………………………………………………….. 7
Phase 2 Application Screenshots ……………………………………………………………………………………………… 9
References ……………………………………………………………………………………………………………………………….. 12
Table of figures
FIGURE 1: ONLINE ORDER SYSTEM USE CASE DIAGRAM …………………………………………………………………………………………………4
FIGURE 2: CLASS DIAGRAM …………………………………………………………………………………………………………………………………5
FIGURE 3: ACTIVITY DIAGRAM …………………………………………………………………………………………………………………………….6
FIGURE 4: SEQUENCE DIAGRAM……………………………………………………………………………………………………………………………7
FIGURE 5: NAME ENTRY SCREEN …………………………………………………………………………………………………………………………..9
FIGURE 6: ADDRESS ENTRY SCREEN ……………………………………………………………………………………………………………………….9
FIGURE 7: CUSTOMER INFORMATION SCREEN …………………………………………………………………………………………………………..9
FIGURE 8: ORDER MENU BEFORE ORDER IS PLACED……………………………………………………………………………………………………10
FIGURE 9: ORDER MENU AFTER ORDER IS PLACED……………………………………………………………………………………………………..11
2|Page
UML Model for Project
Introduction
System design is a process that helps to conceptualize the software system requirements into a
software implementation. It involves taking the user requirements and using it to define system
architecture, interfaces and modules for the system. The most widely used method for software
system design today is Object-Oriented analysis and design methods for their reusability and
easy way of expressing relationship between system components(Martin, 2011). To be able to
efficiently utilize the power of object-oriented analysis and design methods you need to use its
standard language, Unified Modeling language (UML). UML is a general purpose modeling
language that is used to provide a standard way to visualize the design of a system. UML is rich
of modeling notations and methods that are used to create different diagrams to represent
structural and behavior information of the system (Wazlawick, 2014). Example of this diagrams
include class diagram, use case diagram, deployment diagrams, activity diagram, state, object,
and sequence among other.
The diagram in the following sections represents the structural and behavior of the Online
ordering system.
Use cases
Use case diagram are used to represent a user’s interaction with the system hence showing the
relationship between the system and its users. Use cases identify the different actors (users) of
3|Page
the system and the different ways (use cases) they interact with the system. The use case diagram
below shows the two main users of the online orders system and how the use the system.
Figure 1: Online order system use case diagram
Class Diagram
UML Class diagram are static structure diagram used to describe the structure of software system
by showing classes, operations, their attributes and the relationship among them. Classes form
the main building block of Object Oriented modeling and hence class diagram help to
conceptualize the general structure of the system that can later be translate into programming
4|Page
code. Classes in class diagram represent the main elements in the application to be programmed
(Booch, 1994).
The diagram below show the class diagram for the recommend online ordering system. Boxes
represent classes. Boxes are supposed to have three compartments to complete the represent class
information in full, one for class name, second for class attributes and the third for class
operations. The diagram below shows a simple representation of classes. The lines represent
links between classes and show the kind of relationship between classes. For example user is
generalization for customer and sales. Customer makes order, and order is composed of products
Figure 2: Class diagram
Activity diagram
Activity diagram are used to show the order in which actions take place in the system and their
outcomes. Activity diagram are used by system analyst are modeling tools so as to help
understand how objects in the system behave and interact with the system(Alan Dennis, Barbara
5|Page
Haley Wixom, 2012). Activity can be used to represent single or multiple use cases. The diagram
below show the events taking place in the system from the time customer logs in into the system
to the time the time they logout.
Figure 3: Activity diagram
6|Page
Sequence diagram
Sequence diagram is used to describe how interaction within the system objects. The sequence
diagram illustrates the Classes and object involved in the interaction scenario and the sequence
of exchange of messages between the objects(Gary B. Shelly, 2012). Sequence diagrams focus
on the ‘lifelines’ of an object and the communication with other objects in carrying out the
functions before the end of their lifelines.
The sequence diagram below shows interaction of the two objects with the system. The objects
involved in the collaboration are displayed by boxes at the top of the diagram.
Figure 4: Sequence diagram
7|Page
8|Page
Phase 2 Application Screenshots
Figure 5: Name entry screen
Figure 6: Address entry screen
Figure 7: Customer information Screen
9|Page
Figure 8: Order menu before order is placed
10 | P a g e
Figure 9: Order menu after order is placed
11 | P a g e
References
Alan Dennis, Barbara Haley Wixom, R. (2012). System Analysis and Design (5th Editio ed.). Danver: John
Wiley & Sons, Inc.
Booch, G. (1994). Object Oriented Analysis and Design with Applications.
Oghenekaro, P., & C, E. (2008). A Comparative Analysis of Structured and Object-Oriented Programming
Methods. (c).
Wazlawick, R. (2014). Object-Oriented Analysis and Design for Information Systems. Object-Oriented
Analysis and Design for Information Systems .
12 | P a g e
Course Number
Course Section
Course Name
Project Name (Unit 1 IP)
Student Name
1|Page
Table of Contents
Table of figures …………………………………………………………………………………………………………………………… 2
Introduction ………………………………………………………………………………………………………………………………… 3
Use cases ……………………………………………………………………………………………………………………………………. 3
Class Diagram …………………………………………………………………………………………………………………………….. 4
Activity diagram ………………………………………………………………………………………………………………………….. 5
Sequence diagram……………………………………………………………………………………………………………………….. 7
Phase 2 Application Screenshots ……………………………………………………………………………………………… 9
References ……………………………………………………………………………………………………………………………….. 12
Table of figures
FIGURE 1: ONLINE ORDER SYSTEM USE CASE DIAGRAM …………………………………………………………………………………………………4
FIGURE 2: CLASS DIAGRAM …………………………………………………………………………………………………………………………………5
FIGURE 3: ACTIVITY DIAGRAM …………………………………………………………………………………………………………………………….6
FIGURE 4: SEQUENCE DIAGRAM……………………………………………………………………………………………………………………………7
FIGURE 5: NAME ENTRY SCREEN …………………………………………………………………………………………………………………………..9
FIGURE 6: ADDRESS ENTRY SCREEN ……………………………………………………………………………………………………………………….9
FIGURE 7: CUSTOMER INFORMATION SCREEN …………………………………………………………………………………………………………..9
FIGURE 8: ORDER MENU BEFORE ORDER IS PLACED……………………………………………………………………………………………………10
FIGURE 9: ORDER MENU AFTER ORDER IS PLACED……………………………………………………………………………………………………..11
2|Page
UML Model for Project
Introduction
System design is a process that helps to conceptualize the software system requirements into a
software implementation. It involves taking the user requirements and using it to define system
architecture, interfaces and modules for the system. The most widely used method for software
system design today is Object-Oriented analysis and design methods for their reusability and
easy way of expressing relationship between system components(Martin, 2011). To be able to
efficiently utilize the power of object-oriented analysis and design methods you need to use its
standard language, Unified Modeling language (UML). UML is a general purpose modeling
language that is used to provide a standard way to visualize the design of a system. UML is rich
of modeling notations and methods that are used to create different diagrams to represent
structural and behavior information of the system (Wazlawick, 2014). Example of this diagrams
include class diagram, use case diagram, deployment diagrams, activity diagram, state, object,
and sequence among other.
The diagram in the following sections represents the structural and behavior of the Online
ordering system.
Use cases
Use case diagram are used to represent a user’s interaction with the system hence showing the
relationship between the system and its users. Use cases identify the different actors (users) of
3|Page
the system and the different ways (use cases) they interact with the system. The use case diagram
below shows the two main users of the online orders system and how the use the system.
Figure 1: Online order system use case diagram
Class Diagram
UML Class diagram are static structure diagram used to describe the structure of software system
by showing classes, operations, their attributes and the relationship among them. Classes form
the main building block of Object Oriented modeling and hence class diagram help to
conceptualize the general structure of the system that can later be translate into programming
4|Page
code. Classes in class diagram represent the main elements in the application to be programmed
(Booch, 1994).
The diagram below show the class diagram for the recommend online ordering system. Boxes
represent classes. Boxes are supposed to have three compartments to complete the represent class
information in full, one for class name, second for class attributes and the third for class
operations. The diagram below shows a simple representation of classes. The lines represent
links between classes and show the kind of relationship between classes. For example user is
generalization for customer and sales. Customer makes order, and order is composed of products
Figure 2: Class diagram
Activity diagram
Activity diagram are used to show the order in which actions take place in the system and their
outcomes. Activity diagram are used by system analyst are modeling tools so as to help
understand how objects in the system behave and interact with the system(Alan Dennis, Barbara
5|Page
Haley Wixom, 2012). Activity can be used to represent single or multiple use cases. The diagram
below show the events taking place in the system from the time customer logs in into the system
to the time the time they logout.
Figure 3: Activity diagram
6|Page
Sequence diagram
Sequence diagram is used to describe how interaction within the system objects. The sequence
diagram illustrates the Classes and object involved in the interaction scenario and the sequence
of exchange of messages between the objects(Gary B. Shelly, 2012). Sequence diagrams focus
on the ‘lifelines’ of an object and the communication with other objects in carrying out the
functions before the end of their lifelines.
The sequence diagram below shows interaction of the two objects with the system. The objects
involved in the collaboration are displayed by boxes at the top of the diagram.
Figure 4: Sequence diagram
7|Page
8|Page
Phase 2 Application Screenshots
Figure 5: Name entry screen
Figure 6: Address entry screen
Figure 7: Customer information Screen
9|Page
Figure 8: Order menu before order is placed
10 | P a g e
Figure 9: Order menu after order is placed
11 | P a g e
References
Alan Dennis, Barbara Haley Wixom, R. (2012). System Analysis and Design (5th Editio ed.). Danver: John
Wiley & Sons, Inc.
Booch, G. (1994). Object Oriented Analysis and Design with Applications.
Oghenekaro, P., & C, E. (2008). A Comparative Analysis of Structured and Object-Oriented Programming
Methods. (c).
Wazlawick, R. (2014). Object-Oriented Analysis and Design for Information Systems. Object-Oriented
Analysis and Design for Information Systems .
12 | P a g e

Purchase answer to see full
attachment

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 15% with the discount code ESSAYHELP