Free Essay

Java Fundamentals

In: Computers and Technology

Submitted By apturner2008
Words 496
Pages 2
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: ( )Get Name: ( )Get Credit Card Info: ( )Get Quantity: ( )Get Address: ( ) |

The customer class is a class that put everyone that orders a turkey call. This portion will help get their name, address, quantity, and their credit card info for ordering. This will help make it easier to ship when the calls are order.

Week 1: Use Case Diagrams

Purchase
Purchase

Return
Return

The case diagram shows how the customer will order. The customer is not set to the purchase or the return. The customer can make the purchase or make a return without any hesitation.

Week 2: Java Fundamentals

Java Application Planning Worksheet
Package name: turkeyshooterinc
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. returnOuputMsg String
8. greetingOuputMsg 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 String Input
2. nameInputMsg String Input
3. customerName String Input
4. nameOutputMsg String Program
5. returnInputMsg String Input
6. customerReturn String Program
7. returnOuputMsg String Input
8. greetingOuputMsg String Input
9. outputMsg String Program
Java classes and methods you used:
1. Show Message Dialog Box: JOptionPane.showMessageDialog (null, openingMsg)
2. Input Dialog Box: customerName = JOptionPane.showInputDialog (nameInputMsg)
Command to make specific Java classes available: javax.swing.JOptionPane

Week 3: Java Control Structures

TBD

Week 4: Error Handling and File Input/Output

TBD

Week 5: Final Application Design and Screenshots

TBD

Similar Documents

Premium Essay

Java

...that has made his work popular with programmers for many years. Michael Schidlowsky and Sedgewick have developed concise new Java implementations that both express the methods in a natural and direct manner and also can be used in real applications. Algorithms in Java, Third Edition, Part 5: Graph Algorithms is the second book in Sedgewick's thoroughly revised and rewritten series. The first book, Parts 1-4, addresses fundamental algorithms, data structures, sorting, and searching. A forthcoming third book will focus on strings, geometry, and a range of advanced algorithms. Each book's expanded coverage features new algorithms and implementations, enhanced descriptions and diagrams, and a wealth of new exercises for polishing skills. The natural match between Java classes and abstract data type (ADT) implementations makes the code more broadly useful and relevant for the modern object-oriented programming environment. The Web site for this book (www.cs.princeton.edu/~rs/) provides additional source code for programmers along with a variety of academic support materials for educators. Coverage includes: A complete overview of graph properties and types Diagraphs and DAGs Minimum spanning trees Shortest paths Network flows Diagrams, sample Java code, and detailed algorithm descriptions A landmark revision, Algorithms in Java, Third Edition, Part 5 provides a complete tool set for programmers to implement, debug, and use graph algorithms...

Words: 281 - Pages: 2

Premium Essay

Developer

...Programming--Malone Basics of Java Programming (A Work In Progress) What Constitutes a Java Program? A Java program consists of one or more source files. Each source file is called .java, where is the name of the class contained in that source file and .java is the extension that identifies the file as a Java source code file. In general, each source file contains one class. The name of the class must match the name of the file (without the extension) exactly. To execute a Java program, you first need to compile the source code into byte code. Byte code files have the name .class. If you’re working from the shell, this is done using the javac command (where “c” is for compiler). Usually we will be compiling using the Xcode IDE. Once compiled, the program is executed using the Java interpreter (a.k.a. the Java Virtual Machine or JVM). From the shell, the JVM is invoked with the “java” command. Again we will usually be doing this with the Build and Go or Debug options of the Xcode IDE. A Java program must have a routine called main(), which is the starting point for program execution. main() will always look something like this: public static void main (String args[]) { // insert code here... System.out.println("Hello World!"); } Source Code Formatting Keep in mind the following when writing Java source code: Java is case sensitive (“foo”, “Foo”, and “fOO” are all considered to be different in Java). • Every line of code in Java must end in a semi-colon (“;”). • Java doesn’t care about white...

Words: 968 - Pages: 4

Premium Essay

Advantages and Disadvantages of Java V.Net

...Advantages and Disadvantages of Java v. .NET University of Phoenix CSS/422 .NET and Java There is no shortage of definitions for software architecture but in a general sense it is the blueprint for a system, its properties and the relationships among all of the elements. It specifies all of the actions to be taken by the design and implementations teams. There are various differences between .NET and Java Technology so there are certainly advantages and disadvantages to using one or the other as software architecture. The choice, however, depends on the scope of the project and the skill of the design team. Both .NET and Java have platforms that offer a good solid foundation for project design. Java Technology is the choice of many developers because of its work-saving features and ease of use. “.NET and web services are tightly integrated and it is easier to create a basic web service in .NET” (Ranck, 2002). Advantages A major advantage of .NET is that it allows for the use of multiple languages and horizontal scalability. This feature makes it an ideal choice by developers for software architecture if they want to write programs in C++, Java or Virtual Basic because it provides a unified environment in which to work. It is easily developed and supported. Unfortunately, the same cannot be said for Java which is limited to use with the Java programming language only. Another advantage of .NET is that the interface is easily...

Words: 756 - Pages: 4

Premium Essay

Exploring Programming Languages

...also used for hardware design. The idea of creating a new language originated from Stroustrup's experience in programming for his Ph.D. thesis. Stroustrup found that Simula had features that were very helpful for large software development, but the language was too slow for practical use, while BCPL was fast but too low-level to be suitable for large software development. 1990’s Java was created by James Gosling at Sun Microsystems. Java was originally designed for interactive television, but it was too advanced for the digital cable television industry at the time. James Gosling aimed to implement a virtual machine and a language that had a familiar C/C++ style of notation. JavaScript is not related to Java. It was originally developed in Netscape, by Brendan Eich. Battling with Microsoft over the Internet, Netscape considered their client- server solution as a distributed OS, running a portable version of Sun Microsystems' Java. Because Java was a competitor of C++ and aimed at professional programmers, Netscape also wanted a lightweight interpreted language that would complement Java by appealing to nonprofessional...

Words: 455 - Pages: 2

Free Essay

Java Basics

...1 Learn Java/J2EE core concepts and key areas With Java/J2EE Job Interview Companion By K.Arulkumaran & A.Sivayini Technical Reviewers Craig Malone Stuart Watson Arulazi Dhesiaseelan Lara D’Albreo Cover Design, Layout, & Editing A.Sivayini Acknowledgements A. Sivayini Mr. & Mrs. R. Kumaraswamipillai 2 Java/J2EE Job Interview Companion Copy Right 2005-2007 ISBN 978-1-4116-6824-9 The author has made every effort in the preparation of this book to ensure the accuracy of the information. However, information in this book is sold without warranty either expressed or implied. The author will not be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Please e-mail feedback & corrections (technical, grammatical and/or spelling) to java-interview@hotmail.com First Edition (220+ Q&A): Dec 2005 Second Edition (400+ Q&A): March 2007 3 Outline SECTION DESCRIPTION What this book will do for you? Motivation for this book Key Areas index SECTION 1 Interview questions and answers on: Java Fundamentals Swing Applet Performance and Memory issues Personal and Behavioral/Situational Behaving right in an interview Key Points SECTION 2 Interview questions and answers on: Enterprise Java J2EE Overview Servlet JSP JDBC / JTA JNDI / LDAP RMI EJB JMS XML SQL, Database, and O/R mapping RUP & UML Struts Web and Application servers. Best practices and performance considerations. Testing and deployment. Personal and...

Words: 23255 - Pages: 94

Free Essay

It110

... 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...

Words: 783 - Pages: 4

Premium Essay

Java Class

...Java Class MIS 304 is not a class for everyone. Not just any student should take the class. This class is structured to assist students in learning how to program using the Java language. This class does not make a student an expert in the language of Java, but instead gives the student the basic fundamentals needed to have practical use of the language and gives them a solid foundation upon which they can build if they choose to do so. The material covered in the class is adequate. Java can be a complex language to learn, but in MIS 304 one is taught the basics and nothing too detailed or complicated. The resources that are given to the students are very good. I know that the Java book used for the class is one of the best reference materials on Java that is on the market today. The lab facilities and proctors are also great resources. The only problem I feel that exists is that students don’t take advantage of the resources they have available. Students hardly look through their book for answering questions they might have. Also students hardly even bring their books to the lab when doing programs. They sometimes look for proctors to fix their problems instead of fixing it themselves. I think it should be emphasized to students that the proctors are not their to do the programs for them, but to rather help them figure out what is going wrong in their programs. Also it should be emphasized that the book should be with them when working on programs so that if questions or...

Words: 2075 - Pages: 9

Free Essay

Paper

...millions of dollars. Many of these lawsuits are held in Eastern Texas because of the favorable outcome likely to the patent holder. On top of the cost to the successful developer there is also the public reputation loss to take into account. Would you buy a product if you believed that that product was stolen intellectual property? Thus in one blow large companies take aim as much for the other companies reputation with bad press as it does for money. Sometimes the company holding the patent did not even develop the product that he patent is covering. One such battle is currently being fought. Oracle is suing Google for patent violations that they acquired by purchasing Sun. Prior to this recent purchase Oracle had very little to do with Java, the programming language that the patent violation are for. While this is not what is commonly known as patent trolling, where a small company sues a large company primarily for revenue using a frivolous patent, it is what I believe to be patent pirating. Open source is a coding standard that allows all users to look at source code and learn from it, copy and modify it, and distribute it freely with certain restrictions. This...

Words: 2295 - Pages: 10

Free Essay

Bible

...* Chapter 1: Programming, and Java * A programming language is defined by: * Syntax: grammar to specify how the instructions are written * Semantics: what does the instructions mean * Languages are divided into three categories: * High-Level language * Assembly language * Machine language * Part 1: Fundamental Programming Concepts * Primitive data types and operations * Control Statements (Selection and Loops) * Methods * Arrays * Part 2: Object-Oriented Programming * Encapsulation * Inheritance * Polymorphism Anatomy of a Java Program * class header * main method * Statements * Comments * In order for a Java program to be executed, the class MUST have a method called main() * The body of any function must be contained in braces { } * Java is case sensitive * Main is not the same as main * Each Java program has two different types of files: * Source code file (filename.java): * The file in which you declare your class and write your algorithm * Each .java file declares only one class * The file name should be the exact same name as the class name (case sensitive) * Executable file (filename.class): * Automatically generated * Has exact same name as the corresponding .java file but with a different extension * Not human readable Programming...

Words: 1905 - Pages: 8

Free Essay

Web Development Technical Writing

...WESTERN GOVERNORS UNIVERSITY Submittal Cover Sheet Date: February 14, 2011 Student Name: Selina Coley Student ID Number: 182287 Student Degree Program: Information Technology – Software Emphasis Student Email: snolley@wgu.edu Four Digit Assessment/Project Code: TWA1 Mentor Name: Vinton Smith For Revisions Only Indicate Previous Grader: Submissions received with an altered, incomplete or missing cover sheet will be returned for resubmission. Submit to: Western Governors University Attn.: Assessment Delivery Department 4001 South 700 East, Suite 700 Salt Lake City, Utah 84107-2533 wgusubmittals@wgu.edu[->0] Technical Writing Project Cover Sheet Capstone Proposal Project Name: Static Website – www.booksandbottles.org Student Name: Selina Coley Degree Program: Information Technology – Software Emphasis Mentor Name: Vinton Smith Signature Block Student’s Signature Selina Coley Mentor’s Signature Table of Contents Capstone Proposal Summary 1 Review of Other Work 3 Rationale and Systems Analysis 4 Goals and Objectives 5 Project Deliverables 6 Project Plan and Timelines 7 References 9 Appendix 1: Competency Matrix 10 Capstone Proposal Summary My project proposal is to develop a static web site for a growing organization based in Sterling, Virginia. The mission of Books and Bottles is to promote healthy development of infants and young children through proper nutrition and early childhood exposure to reading...

Words: 2710 - Pages: 11

Premium Essay

Research

...1970’s: Smalltalk is an object-oriented, dynamically typed, reflective programming language. Smalltalk was created as the language to underpin the "new world" of computing exemplified by "human–computer symbiosis."[1] It was designed and created in part for educational use, more so for constructionist learning, at the Learning Research Group (LRG) of Xerox PARC by Alan Kay, Dan Ingalls, Adele Goldberg, Ted Kaehler, Scott Wallace, and others during the 1970s. The language was first generally released as Smalltalk-80. Smalltalk-like languages are in continuing active development, and have gathered loyal communities of users around them. ANSI Smalltalk was ratified in 1998 and represents the standard version of Smalltalk. Compiler Description Language, or CDL, is a programming language based on affix grammars. It was designed for the development of compilers. It is very limited in its capabilities and control flow; and intentionally so. The benefits of these limitations are twofold. On the one hand they make possible the sophisticated data and control flow analysis used by the CDL2 optimizers resulting in extremely efficient code. The other benefit is that they foster a highly verbose naming convention. This in turn leads to programs that are to a great extent self-documenting. The original version, designed by Cornelis H. A. Koster at the University of Nijmegen emerged in 1971. Pascal is a historically influential imperative and procedural programming language, designed in...

Words: 2326 - Pages: 10

Free Essay

The Knuth Marris Pratt Algorithm

...Middleware for Distributed Systems Evolving the Common Structure for Network-centric Applications Richard E. Schantz BBN Technologies 10 Moulton Street Cambridge, MA 02138, USA schantz@bbn.com Douglas C. Schmidt Electrical & Computer Engineering Dept. University of California, Irvine Irvine, CA 92697-2625, USA schmidt@uci.edu 1 Overview of Trends, Challenges, and Opportunities Two fundamental trends influence the way we conceive and construct new computing and information systems. The first is that information technology of all forms is becoming highly commoditized i.e., hardware and software artifacts are getting faster, cheaper, and better at a relatively predictable rate. The second is the growing acceptance of a network-centric paradigm, where distributed applications with a range of quality of service (QoS) needs are constructed by integrating separate components connected by various forms of communication services. The nature of this interconnection can range from 1. The very small and tightly coupled, such as avionics mission computing systems to 2. The very large and loosely coupled, such as global telecommunications systems. The interplay of these two trends has yielded new architectural concepts and services embodying layers of middleware. These layers are interposed between applications and commonly available hardware and software infrastructure to make it feasible, easier, and more cost effective to develop and evolve systems using reusable software. Middleware...

Words: 10417 - Pages: 42

Premium Essay

Java

...Release Team[oR] 2001 [x] java Java 2: The Complete Reference by Patrick Naughton and Herbert Schildt Osborne/McGraw-Hill © 1999, 1108 pages ISBN: 0072119764 This thorough reference reads like a helpful friend. Includes servlets, Swing, and more. Table of Contents Back Cover Synopsis by Rebecca Rohan Java 2: The Complete Reference blends the expertise found in Java 1: The Complete Reference with Java 2 topics such as "servlets" and "Swing." As before, there's help with Java Beans and migrating from C++ to Java. A special chapter gives networking basics and breaks out networking-related classes. This book helps you master techniques by doing as well as reading. Projects include a multi-player word game with attention paid to network security. The book is updated where appropriate throughout, and the rhythm of text, code, tables, and illustrations is superb. It's a valuable resource for the developer who is elbow-deep in demanding projects. Table of Contents Java 2 Preface - 7 Part l The Java Language - The Complete Reference - 4 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 hapter 10 - The Genesis of Java - 9 - An Overview of Java - 20 - Data Types, Variables, and Arrays - 36 - Operators - 57 - Control Statements - 75 - Introducing Classes - 94 - A Closer Look at Methods and Classes - 111 - Inheritance - 134 - Packages and Interfaces - 156 - Exception Handling - 174 Chapter 11 - Multithreaded Programming...

Words: 78285 - Pages: 314

Premium Essay

Cd Key

...Java Quick Reference Console Input Scanner input = new Scanner(System.in); int intValue = input.nextInt(); long longValue = input.nextLong(); double doubleValue = input.nextDouble(); float floatValue = input.nextFloat(); String string = input.next(); Console Output System.out.println(anyValue); JOptionPane.showMessageDialog(null, "Enter input"); GUI Input Dialog String string = JOptionPane.showInputDialog( "Enter input"); int intValue = Integer.parseInt(string); double doubleValue = Double.parseDouble(string); Message Dialog Primitive Data Types byte short int long float double char boolean 8 bits 16 bits 32 bits 64 bits 32 bits 64 bits 16 bits true/false Arithmetic Operators + * / % ++var --var var++ var-addition subtraction multiplication division remainder preincrement predecrement postincrement postdecrement Assignment Operators = += -= *= /= %= assignment addition assignment subtraction assignment multiplication assignment division assignment remainder assignment Relational Operators < >= == != less than less than or equal to greater than greater than or equal to equal to not equal Logical Operators && || ! ^ short circuit AND short circuit OR NOT exclusive OR if Statements if (condition) { statements; } if (condition) { statements; } else { statements; } if (condition1) { statements; } else if (condition2) { statements; } else { statements; } switch Statements switch (intExpression) { case value1: statements; break; ... case valuen: statements; break;...

Words: 73366 - Pages: 294

Premium Essay

Java

...November 30, 2011 Java Security Jessica Shaw: 628 Robert Grimsley: 596 Java is a programming language developed by Sun Microsystems in 1995, which is now called Oracle. The language itself is derived from the languages C and C++. Java is a simple language compared to C and C++; however they are all object-oriented languages. The language was designed to help minimize the amount of space and take up as little of your computer’s hardware resources as possible. The language was designed upon five key goals, and they are as followed: * It should be "simple, object-oriented and familiar" * It should be "robust and secure" * It should be "architecture-neutral and portable" * It should execute with "high performance" * It should be "interpreted, threaded, and dynamic" Java is used for a multitude of things. Java allows one to play virtual video games, view and design 3D photos, and many other interactive topics on the internet. Java is the main programming language for mobile devices as well as smart phones such as Android by google. Java is a very secure and reliable language that is used by over 800 billion people. Without the Java languages there are millions of applets and interactive applications on websites that wouldn’t preform properly without it. Java is compiled by byte code that allows for the program to be run through the Java Virtual Machine, or JVM. The compiling method allows for...

Words: 2557 - Pages: 11