Free Essay

It110

In:

Submitted By simplyme772
Words 783
Pages 4
110Running head: Banking e-Teller Design

Online Petstore
By Rachel Crane
Intro to Programming Logic
IT110-1301A-05
January 14, 2013

Contents Week 1: Project Outline 3 Week 1: Class Diagrams 4 Week 1: Use Case Diagrams 5 Week 2: Java Fundamentals 6 Week 3: Java Control Structures 9 Week 4: Error Handling and File Input/Output 11 Week 5: Final Application Design & Screenshots 12

Week 1: Project Outline
Everyone loves their pets so I have decided to use pet products as a target for my project. As for a company I would rather go with my own name, The Pet Shop, the one stop online shop. Furthermore since there are so many areas within a pet shop I will be focusing on products for dogs, specifically pet beds. They will be anywhere from your basic pet bed at a low cost to more expensive beds with orthopedic benefits.
Pet Beds
Classic bed- stuffed with padding, size 24x24, material cotton, washable
Durable bed- stuffed with padding, size 24x36, material micro-fiber, washable
Outdoor bed- stuffed with padding, size 24x36, material nylon, non-washable
Orthopedic bed- stuffed with foam, size 24x24, material cotton, washable

Week 1: Class Diagrams
Class Diagram

Class contains the description, size, and material for product. Method is to either Add product to Wishlist or Add product to Cart.

Week 1: Use Case Diagrams

Customers have the option to view products, add products to a wishlist for later purchase, or buy products online.

Week 2: Java Fundamentals
Java Application Planning Worksheet
Package name: The PetShop
Variables to declare:
Variable Name Datatype (String, int, double, or boolean)
1. openingMsg String
2. nameInputMsg String
3. customerName String
4. nameOutputMsg String
5. returnInputMsg String
6. customerReturn String
7. returnOutputMsg String
8. greetingOutputMsg String
9. outputMsg String
Final value assigned to each variable when application was executed and how each was assigned either through user input or internally in the Java application:

Variable Name Final value User Input or Program
1. openingMsg "** Welcome to The PetShop, One Stop Online Ordering Shop *** Program
2. nameInputMsg "Welcome " Rachel + ".\n" User
3. customerName JOptionPane.showInputDialog(Rachel) Program
4. nameOutputMsg "Welcome " + Rachel + ".\n" Program
5. returnInputMsg "Are you a returning customer (yes or no)? " Program
6. customerReturn JOptionPane.showInputDialog (Yes) User
7. returnOutputMsg "Your return customer status is " + Rachel+ ".\n" Program
8. greetingOutputMsg "Thank you for visiting The PetShop, One Stop Online Ordering Shop!" + "\n" Program
9. outputMsg nameOutputMsg + returnOutputMsg + greetingOutputMsg Program
Java classes and methods you used:
1. Show Message Dialog Box:

2. Input Dialog Box:

Returning Customer

New Customer

Command to make specific Java classes available: import javax.swing

Week 3: Java Control Structures

Java Application Worksheet
Package name: ThePetShop

Variables to declare:
Variable Name Datatype (String, int, double, or boolean)
1. openingMsg String
2. nameInputMsg String
3. customerName String
4. nameOutputMsg String
5. returnInputMsg String
6. customerReturn String
7. returnOutputMsg String
8. greetingOutputMsg String
9. outputMsg String
10. openingMsg1 String
11. openingMsg2 String
12. openingMsg3 String
13. opening Msg4 String
14. openingMsg5 String
15. openingMsg6 String
16. openingMsg7 String
17. userID String
18. password String
19. loginMsg String
20. pwMsg String
21. invalidEntry String
22. returnYes Boolean
23. returnNo Boolean
24. returnInvalid Boolean
25. returnName Boolean
26. validCustomer Boolean
27. returnFlag int

Explain what this piece of code is doing:
1. returnYes = customerReturn.equalsIgnoreCase( "y" );

Customer input can be either lower or uppercase. System will ignore uppercase and make the match.

2. if (returnYes): Customer types yes return flag will equal 1 switch(returnFlag) case 1 displays else if (returnNo) Customer types no return flag will equal 2 switch(returnFlag) return case 2

else – Customer enters anything else return flag will equal 0 switch(returnFlag) default

3. for (int i =1; i <= 3; i++) { … } Customer can enter invalid entry max of three times

4. switch(returnFlag) case 1: Message will display for customer to enter current customer name and password case 2: Message will display for customer to enter new customer username and password default: Invalid entry message will display then message will display to enter new customer name and password.

Week 4: Error Handling and File Input/Output
Ordering Application Video
A. Successful order: http://screencast.com/t/mhjx0O6AhP8b
B. Unsuccessful order: http://screencast.com/t/ci1eiyeOXn

Ordering Application Screenshots
A. Intro

B. Successful Order:

C. Methods in the Character class and StringBuilder class to validate and manipulate characters in a string:

D. Try catch for the exception handling of all input fields

E. Output user entered data to a destination file using the File, FileWriter, and PrintWriter classes
Input this data from a the file written out using the File, FileReader, and BufferedReader classes

Week 5: Final Application Design & Screenshots
TBD

Similar Documents

Premium Essay

Program

...Purple Pizza Eater CTU IT110 Sam Craig Tammera Atencio 2/25/2015 Contents Week 1: 3 Project Description or Overview 3 Case Diagram 3 Java Fundamentals 4 Program 4 Screen Shots 6 Week 2 Jave Control Structures 7 Program 7 Screen Shots 11 Week 3 14 Week 4 15 Week 5 16 Week 1: Project Description or Overview The company that I am working for is Purple Pizza Eater. This is a new pizza company. I am helping them setup their online ordering system. They will offer different kinds of pizza. You can pick from Meat Lovers, BBQ chicken and hot wing pizza. You will also have 3 different option of crust thin, pan and deep dish. The prices got from 6 dollars for a signal topping and 12 dollars for special pizza. Case Diagram Order pizza Order pizza Offer GUI Offer GUI Customer Customer Take order Take order Java Fundamentals Program /* Name – Sam Craig * Date – 3/2/2015 * Project - IT110 Phase 1 IP * Description - This is my first Java program to introduce an online product to sell * and prompt the user for information */ package phase.pkg1.ip; import javax.swing.JOptionPane; public class Phase1IP { public static void main(String[] args) { // declare and initialize variables String openingMsg, nameInputMsg, customerName, nameOutputMsg, returnInputMsg, customerReturn, returnOutputMsg, greetingOutputMsg, outputMsg; ...

Words: 1940 - Pages: 8

Free Essay

Errors in Programming

...Larquetta Permenter IT110-1402A-01 April 23, 2014 As a programmer, we’re always trying to prepare our software to be perfect. This means no errors! Since we’re human, we can only do our best. It’s when these errors occur, how they are dealt with, error or exception handling. Understanding each type will go a long way when client acceptance testing begins. Errors are problems in program operations usually caused because the code isn’t written correctly or a problem occurred that wasn’t addressed during the design process. According to the Board, the term exception is a reclassification of errors into a category of errors that can occur in a program but can be handled in a way that allows the program to continue operation.(Editorial Board, 2014) Dealing with errors in a well-defined way allows programmers to write code to handle errors. This is exception handling. There are pros and cons for using error and exception handling. Exception handling enables normal code to be written and to deal with the exceptional cases code elsewhere. It also provides the means to separate the details of what to do when something out of the ordinary happens from the main logic of a program. A second advantage of exceptions is the ability to propagate error reporting up the call stack of methods which allows grouping and differentiating error type objects. In traditional programming, error detection, reporting, and handling often leads to confusing code. This presents disadvantages...

Words: 401 - Pages: 2

Free Essay

Java Classes and Methods

...IT110-1301A-02 Introduction to Programming Phase III DB   Andrew Ramona 1/22/2013 This discussion board I will discuss what predefined methods that I might consider using and why. Also, where to find other sources for finding predefined Java classes and methods. Last we can look at some other programmer defined methods I might consider using based on the class and case diagrams from week 1. Well the first method I will definitely use is the JOptionPane method. This is the perfect tool for allowing the customer to enter the required data for ordering golf balls from SkyGolf. This will allow them to be able to select the different options for the balls, color, number, and type in the required information for a custom imprint or adding a logo. JOptionPane can then also display in a window after all of the selections have been made and the customer can verify the information is correct. Then you can prompt the customer if everything is correct to enter a 1 or if it is incorrect then maybe select a 2 to route them back to the selection process. The scanner method can also be used to accomplish the same results except all of the information is shown line by line in a command window. I would use this method for the customer input but the JOptionPane has a better visual appearance for the user with graphical user interface (GUI). I have found that the Oracle website is a good source for finding predefined Java classes and methods. These can be found at the address http://docs...

Words: 566 - Pages: 3

Free Essay

Java Fundamentals

...IT110-1301B-02 Introduction to Programming Week 2 March 4, 2013 Contents Week 1: Project Outline 3 Week 1: Class Diagrams 4 Week 1: Use Case Diagrams 5 Week 2: Java Fundamentals 6 Week 3: Java Control Structures 9 Week 4: Error Handling and File Input/Output 10 Week 5: Final Application Design and Screenshots 11 Week 1: Project Outline The name of my company is called Turkey Shooter INC. We are located in Montgomery, Alabama. The product we produce and sell is turkey calls. The turkey calls are all wooden and handmade. The price for the call is $25.00. You can choose between three color stains, they are natural, cherry, and walnut. They are hand held and easy to use. They are 6 inches in height and 2 inches in width. The calls can be used by any hunter male or female, beginner or expert. Turkey Call Colors Walnut (00781) Natural (00782) Cherry (00783) Week 1: Class Diagrams Turkey Call | DescriptionCostPriceColor ID | Set Description: ( )Set Cost: ( )Set Price: ( )Get Description: ( )Get Cost: ( )Get Price: ( )Get Color ID: ( ) | The Product class is a system that will help in ordering the turkey calls. This will break down the attributes into the price, color, and give a description along with the ID number. This will make it simple to find the product online. Customers | NameCredit Card InfoQuantityAddress | Set Name:...

Words: 496 - Pages: 2

Premium Essay

It 110

...IT110-1302A-06 Introduction to Programming Hockey Performance 5/6/2013 TABLE OF CONTENTS Contents TITLE PAGE 1 TABLE OF CONTENTS 2 Week 1: Project Outline 3 Week 1: Project Outline 4 Week 1: Use Case Diagrams 5 Week 1: Class Diagram 6 Week 2: Java Fundamental 7 Week 2: Java Fundamental 8 Week 3: Java Control Structures 9 Week 3: Java Control Structures 10 Week 4: Error Handling and File Input/Output 11 Week 4: Error Handling and File Input/Output 13 Week 4: Error Handling and File Input/Output 14 Week 4: Error Handling and File Input/Output 15 Week 4: Error Handling and File Input/Output 16 Week 4: Error Handling and File Input/Output 17 Week 4: Error Handling and File Input/Output 18 Week 4: Error Handling and File Input/Output 19 Week 4: Error Handling and File Input/Output 20 Week 5: Final Application Design & Screenshots 21 Week 5: Final Application Design & Screenshots 22 Week 5: Final Application Design & Screenshots 23 Week 5: Final Application Design & Screenshots 24 Week 5: Final Application Design & Screenshots 25 Week 5: Final Application Design & Screenshots 26 Week 5: Final Application Design & Screenshots 27 Week 5: Final Application Design & Screenshots 28 Week 5: Final Application Design & Screenshots 29 REFERENCE: An Introduction to Java Programming and Object-Oriented Application Development 29 ISBN-13: 9780619217464 29 Author(s): Johnson 29 Week 1: Project Outline ...

Words: 773 - Pages: 4

Free Essay

It 140

...P5IP Walter Bryant Colorado Technical University IT110-1303A-05 Introduction to Programming 08/11/2013 Table of Contents Week 1: Individual Project 3 Project Outline 3 Class Diagrams 4 Use Case Diagrams 6 Week 2: Java Fundamentals 7 Week 3: Java Control Structures 10 Week 4: Error Handling and File Input/output 13 Week 5: Final Application Design & Screenshots 17 References: 18 Week 1: Individual Project Project Outline After great thought about this assignment, I decided to call my company Walt’s Electronic Expo. My company’s focus is on selling car security systems. Within the current economy and the increase of theft, this business should thrive. Product | Product Attributes | AutoPage C3-RS915 | • ID number | | • Product Description | | •My cost | | •Selling Price | Within this company, I will be selling the AutoPage C3-RS915 remote start vehicle security system w/car alarm model RS915 LCD. Below is a chart of the attributes for the product I have chosen to sell. ID number – attaches a “tag” that uniquely identifies the AutoPage C3-RS915 that I will be selling to customers. Product Description – Is the information that describes in detail the product. It describes the product including the benefits it will provide to the customer buying it. My cost – Is what I pay for this product. For this product I found a vendor that will sell me 25 of these products in bulk @ $39.99 per unit. Selling Price...

Words: 1185 - Pages: 5

Free Essay

Java Graphical User Interface (Gui) and Design Document

...IT110-1204A-01: Introduction to Programming Java Graphical User Interface (GUI) and Design Document Joseph Mirabal 11/12/2012 Table of Contents Project Outline 3 Class Diagrams 5 Use Case Diagrams 8 Java Fundamentals 10 Java Application Planning Worksheet 10 Final value 10 Java classes used: 11 Java Control Structures 12 Java Application Worksheet 12 Explain what this piece of code is doing: 13 Error Handling and File Input/Output 15 Final Application Design & Screenshots 37 Project Outline The company I am going to hypothetically create will be a sports store dedicated to selling different types of sporting equipment for all types of sports. I will mainly start my store by just selling sports balls. I will call my store Joey’s Sporting Balls and Equipment. I know the name sounds funny, but I am doing that on purpose to catch the attention of my potential customers. I want the name of my store to stick in their minds, and what better way to o than a pun or play on words. I will start off with two types of balls, a football and a basketball. The football will be brown in color, will have white laces, and will come in different sizes according to the level of the athlete and also to have a range in prices. It will range in size from miniature footballs for fun, small for beginners and as gift items, medium or college level, and to a large size for professional athletes, or just people who like to imitate professional athletes for...

Words: 2125 - Pages: 9