Premium Essay

Prg 420

In:

Submitted By slgutknecht
Words 553
Pages 3
Read Me First

Introduction

JAVA™ IS A FULL-FEATURED, GENERAL-PURPOSE PROGRAMMING LANGUAGE WITH MANY CAPABILITIES. IT CAN SERVE AS A STANDALONE LANGUAGE FOR A VARIETY OF APPLICATIONS, INCLUDING DESKTOP AND SOME MOBILE PROGRAMS. THIS COURSE CLOSELY ALIGNS WITH THE ORACLE CERTIFIED ASSOCIATE JAVA™ SE EXAMINATION.

Course Overview

Week One includes an overview of how programming languages work and an introduction to Java™ and the Java™ Virtual Machine (JVM). The JVM is what enables the same Java™ program to run unchanged on multiple platforms. You learn Java™ syntax by writing a program that compiles and executes. You begin with the simplest programs that display a message to the user; however, the structure that you use carries forward into more complex programs later on.

Week Two focuses on two of the most important concepts in programming: selection and repetition. Selection allows you to make a choice between alternatives and determine which block of statements will be executed as a result. Repetition allows the program to repeat a block of code multiple times. This enables you to write programs that can do a lot of processing with very few lines of code. For example, you may want to read all of the records in a data file. With a repetition structure, you can write this in just a few lines. If repetition structures were not available, you would have to write a line of code for every record in the file.

In Week Three, you will look at methods and constructors in a lot more detail. A method signature is made up of an access modifier, an optional specifier, a return type, and a list of parameters. Understanding the differences between public, private, protected will help you design methods that help you achieve the goal of data encapsulation.

Week Four takes us into an important concept in object orientation: inheritance. It is an important concept

Similar Documents

Premium Essay

Prg 420 Week 4 Individual

.../* * To change this template, choose Tools | Templates * and open the template in the editor. */ package week4compensation; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Scanner; public class Week4compensation { private static Scanner input = new Scanner(System.in); // input as a Scanner object (used for keyboard monitoring) private static boolean allEqual = true; //used to check if all values in the array list are equal //Entry point public static void main(String[] args) { ArrayList<SalesPerson> employees = new ArrayList(); //Arraylist of SalesPerson int highestIndex = 0; //Index of salesperson with highest compensation double annualSales; //Used to retrieve user input String name = "John"; //For salesperson's name. //Output Application Name System.out.println("Salesperson Annual Compensation Calculator\n"); int counter = 0; //counter while (true) { //Need at least 2. //When we reached 2, we can now ask user if user wants to add more. if (counter >= 2) { System.out.print("Enter another? Y for yes. Anything else for No: "); if (!input.nextLine().toLowerCase().equals("y")) { break; } } //Ask for user input. Validate as well :) do { System.out.print("Enter...

Words: 767 - Pages: 4

Premium Essay

Prg 420 Week 3 Supporting Activity 1

...There are 3 kinds of loops—for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate? Explain your answers using specific examples. For loop- The for loop is best used when the number of iterations is known. The for loop is best used to repeat the loop a fixed number of times. The Boolean-expression is tested at the beginning of the loop. The for loop has the form: for (initialization; Boolean-expression; increment) {nested statements }. A for loop can be used to show every number divisible by 3 between 1 and 60. For (int num=0; num , 60; num++) { If (num % 3 == 0) { System.out.println( “#: “ + dex); } } While loop- While loops are best used when the exiting condition has nothing to do with the number of loops. The While loop tests the Boolean-expression at the beginning of the loop. It is in the form : While (Boolean-expression) { nested statements} The while loop can be used to prompt the user until the exit variable (any negative number) is entered. while ( input > 0) { System.out.println(“Please enter number. Enter negative number to exit.”) } Do while loop- It is best to use the do while loop when the iteration must be executed at least once. The do while loop tests the Boolean-expression at the end of the loop. It has the form: do { nested statements } while (Boolean-expression); The do while loop can be used to show the same message multiple times. int tries = 3; int count = 1; ...

Words: 273 - Pages: 2

Premium Essay

Senior Systrem Engineer

...College of Information Systems & Technology Bachelor of Science in Information Technology with a Concentration in Information Management The Bachelor of Science in Information Technology (BSIT) degree program is focused on the acquisition of theory and the application of technical competencies associated with the information technology profession. The courses prepare students with fundamental knowledge in core technologies, such as systems analysis and design; programming; database design; network architecture and administration; web technologies; and application development, implementation, and maintenance. This undergraduate degree program includes 45 credits in the required course of study and 15 credits in the concentration. Some courses have prerequisites. In addition, students must satisfy general education and elective requirements to meet the 120-credit minimum, including a minimum of 48 upper-division credits required for completion of the degree. At the time of enrollment, students must choose a concentration. The Information Management concentration is designed to provide coverage of the collection, architecture, modeling, retrieval and management of data for meaningful presentation to the organization. This concentration prepares students to develop, deploy, manage, and integrate data and information systems to support the organization. Note: The diploma awarded for this program will read: Bachelor of Science in Information Technology and will not reflect the concentration...

Words: 1892 - Pages: 8

Free Essay

Array List

...ArrayList Johnnie L. Bagley III PRG/420 October 09, 2013 Dr. Orenthio K. Goodwin ArrayList The differences between the Array and an ArrayList is a common question asked by beginners, just starting to code using Java. The Array and ArrayList are both used to store elements, which can be a primitive or an object in the case of ArrayList in Java. A main difference between the ArrayList and an Array in Java would be the static nature of the Array, but the ArrayList has a dynamic nature. Once an Array is created, programmers cannot change the size of it, but an ArrayList will be able to re-size itself at any time. There is one more notable difference between ArrayList and an Array (Paul, 2012). The Array is a core part of Java programming that has a special syntax and a semantics support within Java. An ArrayList is a part of the collection framework of popular classes, such as HashMap, Hashtable, and Vector. There are six more differences between Array and ArrayList which will be listed in numeral order: 1. First and Major difference between Array and ArrayList in Java would be that Array is a fixed length data structure, while ArrayList is a variable length collection class. 2. Another difference is that an Array cannot use Generics, due to it cannot store files, unlike the ArrayList that allows users to use Generics to ensure storage. 3. Programmers can compare the Array vs. ArrayList on how to calculate length of Array or size of an ArrayList. 4....

Words: 395 - Pages: 2

Free Essay

Class Date

...Class Date Assignment Learning Team C University of Phoenix Steve Randel PRG 420 November 30, 2011 Class Date Assignment Introduction There are several different aspects to programming that we need to take into consideration as we learn more and more of the language. In Java, there is much to learn that will assist in becoming programmers. During this paper we will discuss several aspects of a program that are essential to make a program run properly. Inside every program there is a certain set of commands and formats that are required in order for the program to work like it needs to. Several of them will be listed later. Karen Fords two bullets Methods The definition of a method is, “two of the components of a method declaration comprise the method signature—the method's name and the parameter types.” ("Defining Methods", 2011). There are several different aspects of a method that we, as programmers, need to keep in mind as begin our journey into the programming world. Each method has six components that make work correctly. Each of the six components will have to be used in order to make the method work right. The six components are: 1. Modifiers a. Public – allows this method to be used in all areas of the program b. Private – can only be used when direction is given or a password is used 2. Return Type a. Void – means that the method does not return any value ...

Words: 728 - Pages: 3

Premium Essay

Lta Wk5 Prg420

...LTA Code Reusability Gregory Z. Peck, Paul Newman Charles Barkley, Mark Whalberg, Christopher L Columbus, Jeffery Domer, Joshua Tree PRG 420 August 12, 2014 Gary Newman LTA Code Reusability When working on a program it is unusual that a single person will complete the program. Usually a team is responsible for working on it. Normally there is coordination prior to coding to ensure all the objects, methods, and classes will work together. The program was broken down into a few steps that included determining the programs to use, deciding what was best from those two programs, combining them, and then modifying the code to make the program run successfully. First was to decide what two programs to examine. This was determined by selecting two programs that had a similar flow to the programs. Two programs had a similar theme of the main method to call for the inputs and arrays while the second class had the methods to determine the compensation due. Due to similar logic, it made sense to combine these two programs. The next step was determining what was best from each program to decide what could be replaced. The code that was chosen to be what we designed was the program that completed the goals most effectively. The program properly used the arrays to hold several salespeople and compare their compensation. The program was capable of doing this for two salespeople. At this point, it needed to be determined what elements from the second code would be used and inserted...

Words: 749 - Pages: 3

Free Essay

Week 2

...Commission Calculation Combination Program Paper Learning Team C PRG-420 10/18/2012 We are tasked to combine the works of two team members; which on its own is quit a difficult task when we come right down to it. This is true for many reasons like skill, knowledge of the program, and style. All of which can sink a program before you even run it for the first time. We chose the two of our group members whose programs we most compatible to each others. In hope that the two programmer’s code worked together and could be a match when it is all done in the end; with the choice made and the code matched here is what we have done with the two programs to make one functioning program. The key component that makes combining two program’s code feasible is object oriented programming (OOP). With OOP a program is modular with each component being independent of other sections of the code. A class can be given requirements such as having certain attributes and methods. As long as a component maintains these attributes, a designer can make certain assumptions about a class without having to see unique code that is goes into creating the output. For this task, both Michael and Andrew’s code were chosen because they took similar approaches in creating a salesperson object that maintained certain attributes such as pay rate, calculating the pay including the percentage of their pay that came from sales. With this information the pay calculation program can make the same assumptions...

Words: 825 - Pages: 4

Free Essay

Engl 230

...ACC 560,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 560,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 561,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 561,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 565,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 565,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACCT 346,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACCT 346,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACCT 434,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACCT 434,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACCT 567,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACCT 567,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, PHI 200,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, PHI 200,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, Res 301,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, Res 301,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford BA 215,Course...

Words: 4565 - Pages: 19

Premium Essay

Get Online Help with Ur Assignment Ashford a+Material

...http://homeworktimes.com/downloads/acc-202-complete-course-acc-202-entire-course/ http://homeworktimes.com/downloads/acc-206-entire-course-new/ http://homeworktimes.com/downloads/acc-206-new-week-1-assignment-chapter-one-problems/ http://homeworktimes.com/downloads/acc-206-new-week-2-assignment-chapter-two-three-problems/ http://homeworktimes.com/downloads/acc-206-new-week-2-journal-institute-management-accounting/ http://homeworktimes.com/downloads/acc-206-new-week-3-assignment-chapter-four-five-problems/ http://homeworktimes.com/downloads/acc-206-new-week-3-journal-hershey-company/ http://homeworktimes.com/downloads/acc-206-new-week-4-assignment-chapter-six-seven-problems/ http://homeworktimes.com/downloads/acc-206-new-week-5-assignment-chapter-eight-problems/ http://homeworktimes.com/downloads/acc-206-new-week-5-assignment-final-paper/ http://homeworktimes.com/downloads/acc-212-financial-accounting/ http://homeworktimes.com/downloads/acc-250-complete-course-acc-205-entire-course/ http://homeworktimes.com/downloads/acc-290-complete-course-acc-290-entire-course/ http://homeworktimes.com/downloads/acc-291-complete-course-acc-290-entire-course/ http://homeworktimes.com/downloads/acc-340-entire-course-acc-340-complete-course/ http://homeworktimes.com/downloads/acc-400-complete-course-acc-400-entire-course/ http://homeworktimes.com/downloads/acc-407-entire-course/ http://homeworktimes.com/downloads/acc-455-complete-course/ http://homeworktimes.com/downl...

Words: 3197 - Pages: 13

Free Essay

Hist 415

...,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 307,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 307,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 344,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 344,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 346,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 346,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 403,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 403,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 504,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 504,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 560,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 560,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 561,Course,Complete,All,Entire,final,Week,1,2,3,4,5,6, ACC 561,dq,discussion,question,assignment,midterm, ,exam,quiz,Strayer,Latest,New,Project,Keller,Homework,Phoenix,Ashford, ACC 565,Course,Complete,All...

Words: 5653 - Pages: 23

Free Essay

Arabizi

...Sections Found Accounting Select CRN Subj Crse Sec Cmp Cred NR 21138 ACC 201 01 M 3.000 Title Fund of Financial Accounting Days Time TRU Instructor Date Location Attribute (MM/DD) 02/03-06/01 SBM 009 Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective Design Managmnt Major_Elective and Design Managmnt Minor_Elective and Economics Major_BAE_Elective and Eng'g Managmnt_Minor_Elective and MTH Major_Elective 09:00 Marian I. Mason am-09:50 (P) am NR 21139 ACC 201 02 M 3.000 Fund of Financial Accounting TRU Ronald D. 12:00 pm-12:50 Williams (P) pm 02/03-06/01 SBM 012 ...

Words: 48244 - Pages: 193

Premium Essay

Nishat Mills

...Internship Report on Nishat Mills www.vustudents.net Executive Summary Nishat has grown from a cotton export house into the premier business group of Pakistan with 5 listed companies, concentrating on 4 core businesses; Textiles, Cement, Banking and Power Generation. Today, Nishat is considered to be at par with multinationals operating locally in terms of its quality products and management skills. I recently have done my internship in Nishat Mills Limited, in which I got training from each of its department. The internship basically revolved around the product knowledge training. The system, the style of working & the commitment of the employees in NML is really exemplary. The difference between the success & failure is doing things right and doing things nearly right, & NML has always tried for success & that is why it is known to be one of the leading organizations in Pakistan. Irrespective of all these positive points of Nishat Mills Limited, I have noticed a few areas where the improvement can really increase the efficiency of NML. In this report I have given a very brief review of what I have seen during our internship I have mentioned all these as I have made an internship as according to the schedule. I also mentioned about the Textile industry in Pakistan and vision of its industry. Then I have done a detailed SWOT analysis as well as PEST Analysis. Then I have discussed about my learning in the whole internship that is all about the Textile...

Words: 9757 - Pages: 40

Premium Essay

Internship Report on Mba (Hrm)

...Internship Report on Nishat Textile Mills | | |[pic][pic] | |Internship report | |On | |  | |  | |[pic] | |  | |  ...

Words: 10212 - Pages: 41

Premium Essay

Word

...|Internship Report on Nishat Textile Mills | |[pic][pic] | |Internship report | |On | |  | |  | |[pic] | |  ...

Words: 10243 - Pages: 41

Free Essay

Magt

...i Computational Complexity: A Modern Approach Draft of a book: Dated January 2007 Comments welcome! Sanjeev Arora and Boaz Barak Princeton University complexitybook@gmail.com Not to be reproduced or distributed without the authors’ permission This is an Internet draft. Some chapters are more finished than others. References and attributions are very preliminary and we apologize in advance for any omissions (but hope you will nevertheless point them out to us). Please send us bugs, typos, missing references or general comments to complexitybook@gmail.com — Thank You!! DRAFT ii DRAFT About this book Computational complexity theory has developed rapidly in the past three decades. The list of surprising and fundamental results proved since 1990 alone could fill a book: these include new probabilistic definitions of classical complexity classes (IP = PSPACE and the PCP Theorems) and their implications for the field of approximation algorithms; Shor’s algorithm to factor integers using a quantum computer; an understanding of why current approaches to the famous P versus NP will not be successful; a theory of derandomization and pseudorandomness based upon computational hardness; and beautiful constructions of pseudorandom objects such as extractors and expanders. This book aims to describe such recent achievements of complexity theory in the context of the classical results. It is intended to both serve as a textbook as a reference for self-study. This means...

Words: 210134 - Pages: 841