...LAB EXERCISE 1: READ FROM URL URLReader.java import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Exception { URL yahoo = new URL("http://www.lelong.com/"); BufferedReader in = new BufferedReader( new InputStreamReader( yahoo.openStream())); String inputLine; for ( int i =0;(inputLine = in.readLine()) != null; i++){ System.out.println(inputLine);} in.close(); } } LAB EXERCISE 2: Echo Client EchoClient .java import java.io.*; import java.net.*; public class EchoClient { public static void main(String[] args) { try { Socket s = new Socket("127.0.0.1", 9999); BufferedReader r = new BufferedReader(new InputStreamReader(s.getInputStream())); PrintWriter w = new PrintWriter(s.getOutputStream(), true); BufferedReader con = new BufferedReader(new InputStreamReader(System.in)); String line; do { line = r.readLine(); if ( line != null ) System.out.println(line); line = con.readLine(); w.println(line); } while ( !line.trim().equals("bye") ); } catch (Exception err) { System.err.println(err); } } } LAB EXERCISE 3:MULTI THREADS SimpleThreads.java public class SimpleThreads { //Display a message, preceded by the name of the current thread static void threadMessage(String message) { String threadName = Thread.currentThread().getName(); System...
Words: 1219 - Pages: 5
...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
...THE WAJA CONCEPT Proton’s Waja was conceptualised as the basis for the company’s advancement from assembly and minor re-engineering to the position of full design and manufacture. It was designed as a competitive product for global consumption of the 21st Century with an attractive design targeting mature, dynamic and multi-cultural markets. The Proton Waja boasts superlative handling dynamics together with compliant ride and enormous body strength and integrity. The new Proton broadens the company’s product line-up joining the cult-status Satria GTi as well as the price-leading Persona and Satria models. Waja is the result of intensive engineering work by Proton R & D in Malaysia and Lotus Engineering in Hethel, England. The blend of technologies from Malaysia and England has produced a car that is at once safe, secure, strong and precise, a car worthy of comparison with the world’s best mid-size sedans. KEY TECHNICAL FEATURES OF THE WAJA • Lotus ride and handling • Unique modular integration • A stronger more rigid body • High levels of primary and secondary safety • Significant NVH reductions STYLING The Proton Waja benefits from inspired styling and boasts clean and stylish lines born in the company’s design studio at Shah Alam. The Waja has a personality all its own and has adopted clean smooth lines in a classic three box design on a platform which will be used as the basis for other models in the future. The styling has been aimed...
Words: 1378 - Pages: 6
...public abstract class Animal extends Organism { boolean ateThisTurn; boolean wantsToMove; public void wasIJustFed(boolean ateOrNot) { if (ateOrNot == true) { ateThisTurn = true; } else { ateThisTurn = false; } } public void resetHunger() { ateThisTurn = false; } public void wasIJustMoved(boolean movedOrNot) { if (movedOrNot) { wantsToMove = false; } else { wantsToMove = true; } } public String toString() { String deadOrAlive = new String(); if (isAlive) { deadOrAlive = "A Living "; } else { deadOrAlive = "A Dead "; } return "[" + deadOrAlive + organismType + ": " + currentHP + "/" + maxHP + " | " + lastReproduced + "/" + reproduceEvery + " - ateThisTurn = " + ateThisTurn + "\n"; } public boolean justAte() { return ateThisTurn; } public boolean moveThisTurn() { return wantsToMove && isAlive; } public boolean isReadyToReproduce() { return super.isReadyToReproduce() && maxHP == currentHP && ateThisTurn && isAlive; } public boolean isBurning() { return false; } } import java.awt.*; import java.util.ArrayList; public class Breeder { public Breeder() { } public static void breed(Organism breedingOrganism, WorldWorker environment, Point pointHolder)...
Words: 2671 - Pages: 11
...Introduction Article 15(4) was inserted into the Constitution by way of amendment and wasn’t a clause which was present in the Constitution, since it came into being. This amendment gave the executive powers to make any special provisions for the advancement of any socially and educationally backward classes of citizens or for the Schedule Castes and Schedule Tribes. This provision was considered necessary by the legislature as India gained independence and a democratic form of Government came into being, the need to uplift the down-trodden was felt. Reservation were to be implemented initially for only 10 years but have being continuing till now. Over the years the extent to which reservations should be allowed has been a matter of great controversy and has been discussed in various cases. The present condition is that reservations in general should not exceed 50%. But this was not always the position. Since Article 15(4) permits discrimination in reverse by reserving seats in educational institutions, the extent of such reservation assumes great importance for the citizen, for the public generally and for the State. An instructive illustration of such appointments to unreserved and reserved posts is furnished by the facts of T. Devadasan v. Union of India and Anr. Out of 45 appointments to be made, 16 were made from unreserved seats and 29 from candidates belonging to the Schedule Castes and Tribes. The petitioner complained that although he had obtained 61 per cent marks...
Words: 1443 - Pages: 6
...Question 1: (5 marks) Write a program in Java using linked list to manage information about persons. Variables used to store information about a person are: • name - the name of a person (character string). • age - the age of a person (integer value). You should write the MyList class, which is a linked list data structure to store person information. The following functions should be included in the MyList class: • void addLast(String xName, int xAge) - check if the first letter of xName is not 'B' (i.e. xName.charAt(0) != 'B') then add new person with name=xName, age=xAge to the end of the list. • void addFirst(String xName, int xAge) - check if the first letter of xName is not 'B' then add new person with name=xName, age=xAge to the begining of the list. • void addMany(String [] a, int [] b) - this function is given. • void ftraverse(RandomAccessFile f) throws Exception - display all nodes in the file f in format: (name, age). This function is given. • void f1() – Test addLast function. You do not need to edit this function. Your task is to complete the function addLast(String xName, int xAge) function only. With the given data, the content of f1.txt must be the following: (A0,9) (A7,13) (A5,7) (A3,11) (A4,9) (A2,12) (A6,5) (A1,6) • void f2() – Test addFirst function. You do not need to edit this function. Your task is to complete the function addFirst(String xName, int xAge) function only. With the given data, the content of f2.txt must be the following: ...
Words: 349 - Pages: 2
...culture differs from the other. In the fast food industry the corporate cultures can be as different as night and day. While one company may believe that training is time and money well spent another may believe that training, whether it be cross training or promotional training, is a waste of time and money and that most employees will better serve the company by cooking more food. In other words better the bottom line not the employee. However the above mentioned “bottom line” mentality is not part of the culture at Chipotle or Chick fil A. Both of these companies hire with the mindset of hiring to promote and grow that employee. “The key to our success there is the strength of our people culture,” Chipotle spokesman Chris Arnold wrote in an e-mail (Melnick, 2011). These two companies share this idea of growing the employee and promoting from within but their corporate cultures have other traits that distinguish them from one another. For example Chick fil A endorses and promotes a Christian attitude in their everyday business operations. This attitude is reiterated...
Words: 992 - Pages: 4
...Weapons (tier 1): Press Up, Square, Square, Down, Left, Square, Square, Right during game play. The brass knuckles, knife, Molotov cocktails, 9mm handgun, shotgun, Tec-9, AK-47, flamethrower, and sniper rifle will be unlocked. A message will confirm correct code entry. To get unlimited ammunition for this or the other weapons tiers, repeatedly enable the code until no ammunition number appears beneath the gun pictures. Enabling this code will cause your street creds to substantially drop in points. Weapons (tier 2): Press Up, Circle, Circle, Down, Left, Circle, Circle, Right during game play. The katana sword, grenades, revolver, sawn-off shotgun, Uzi, M16, rocket launcher, and laser scoped sniper rifle will be unlocked. A message will confirm correct code entry. To get unlimited ammunition for this or the other weapons tiers, repeatedly enable the code until no ammunition number appears beneath the gun pictures. Enabling this code will cause your street creds to substantially drop in points. Weapons (tier 3): Press Up, X, X, Down, Left, X, X, Right during game play. The chainsaw, grenades, revolver, SMG, combat shotgun, mini-gun, and sniper rifle will be unlocked. A message will confirm correct code entry. To get unlimited ammunition for this or the other weapons tiers, repeatedly enable the code until no ammunition number appears beneath the gun pictures. Enabling this code will cause your street creds to substantially drop in points. Body armor: Press L, R,...
Words: 1067 - Pages: 5
...“Chick-fil-A Named Nation’s Top Chicken Chain” Consumer Reports in 2011, which polled an estimated 36,000 readers, rates seven other chicken chains across the country and Chick-fil-A beat its competitors in outstanding scores for politeness of staff, high marks for food, value and speed of service. When founder and Chief Executive Officer, S. Truett Cathy, founded his first restaurant in 1946 oddly named Dwarf Grill, in Hapeville Georgia, he never thought that he will be involved with constructing the second largest quick-service chicken restaurant chain in the United States, with over 1,700 locations in 39 states and Washington, D.C. In 2012, annual sales were well over $4.6 billion. Not too shabby for a company that since its inception in 1946 closes its doors each and every Sunday faithfully . The key players of this restaurant chain or the executive committee consist of S. Truett Cathy, the Chairman, Founder, and Chief Executive Officer. Cathy built his life and business based on hard work, humility and biblical principles. In his 2002 book, “Eat Mor Chikin: Inspire More People”, he said, “Nearly every moment of every day we have the opportunity to give something to some else-our time, our love, our resources.” With these Truett Cathy has built Chik-fil-A as the second-largest quick-service chicken restaurant chain in the United States based on annual sales. Dan T. Cathy, (son of founder) President and Chief Operative Officer simply describes...
Words: 616 - Pages: 3
...CASE 7 CHICK-FIL-A: BIRD OF A DIFFERENT FEATHER STRATEGY MANAGEMENT COMPETIVENESS AND GLOBALIZATION, CONCEPT AND CASES BY 02/23/2016 Executive Summary. This case analysis evaluates Chick-fil-A. It is designed to show the Strength, weakness, opportunities and threat. It delineates how the founding principles have guided the company over the years, and how it has responded slowly to change over the years. CFA has grown to be a force to reckon with in the industry with strength in customer experience and sandwich trademark. However, the emerging markets, social changes, economic issues and intense rivalry will continue to pose threat to this strong cultured company. At the end of the case analysis, we would have been able to devise possible solutions for the present and future times. Background. The story of Chick-fil-A will be incomplete without the man who turned a dwarf house into a giant brand. Samuel Truett Cathy was born in 1921 into a religious family and in fact was named to honor a Baptist evangelist. These factors would plan a significant role in Cathy’s life. At an early stage, Cathy developed entrepreneurial skills; he delivered papers and sold Coca cola and helped with the meals. And at the age of 25, he and his brother opened their first restaurant- Dwarf House. Cathy soon realized he could prepare chicken faster and insert between two buns. He went ahead to trademark the name Chick-fil-A borrowed from the then steak fillets. Cathy explored expansion...
Words: 2451 - Pages: 10
...Chick- Fil- A and Same Sex Marriages Regina Antone-Smith BUS-7200/HRF-7001 Value Systems and Professional Ethics June, 6 2014 Jennifer Stephens Chick- Fil- A and Same Sex Marriages In the summer of 2012, the billionaire family behind fast food chain Chick-fil-A found themselves in hot water. It’s not every day that the leader of a big business steps into a national debate that has the potential to offend many of its customers. But Dan Cathy, president of the popular fast food chain Chick-fil-A, has done just that The fast food chains in-your-face Christian values it was Dan Cathy’s reaffirmation of his firm’s same-sex marriage stance that set off a wave of protests. Cathy admitted his anti-equality stance probably wasn’t a wise business decision, regretting making the company a symbol in the marriage debate. On the one hand, you could argue leaders of businesses, particularly private, family-owned ones, should be able to speak their minds. But when a business leader elects to take a public and vocal position on a hot-button political issue in an election year, he or she also risks losing the support of many of its customers. “Every leader goes through different phases of maturity, growth and development and it helps by (recognizing) the mistakes that you make,” Cathy said. “And you learn from those mistakes. If not, you’re just a fool. I’m thankful that I lived through it and I learned a lot from it( McGregor, J. (2012, July 19). Chick-fil-A president Dan Cathy bites...
Words: 1216 - Pages: 5
...MIPS Reference Data Card (“Green Card”) 1. Pull along perforation to separate card 2. Fold bottom side (columns 3 and 4) together M I P S Reference Data Add Immediate Add Unsigned And And Immediate Branch On Equal addi 1 CORE INSTRUCTION SET FORNAME, MNEMONIC MAT OPERATION (in Verilog) add Add R R[rd] = R[rs] + R[rt] I I R[rt] = R[rs] + SignExtImm R[rt] = R[rs] + SignExtImm Add Imm. Unsigned addiu addu and andi beq OPCODE / FUNCT (Hex) (1) 0 / 20hex (1,2) (2) 8hex 9hex 0 / 21hex 0 / 24hex (3) (4) (4) (5) (5) chex 4hex 5hex 2hex 3hex 0 / 08hex (2) (2) (2,7) (2) 24hex 25hex 30hex fhex 23hex 0 / 27hex 0 / 25hex (3) dhex 0 / 2ahex R R[rd] = R[rs] + R[rt] R R[rd] = R[rs] & R[rt] I I I J J R[rt] = R[rs] & ZeroExtImm if(R[rs]==R[rt]) PC=PC+4+BranchAddr if(R[rs]!=R[rt]) PC=PC+4+BranchAddr PC=JumpAddr R[31]=PC+8;PC=JumpAddr Branch On Not Equal bne Jump Jump And Link Jump Register j jal jr Load Byte Unsigned lbu Load Halfword Unsigned Load Linked Load Upper Imm. Load Word Nor Or Or Immediate Set Less Than lhu ll lui lw nor or ori slt R PC=R[rs] R[rt]={24’b0,M[R[rs] I +SignExtImm](7:0)} R[rt]={16’b0,M[R[rs] I +SignExtImm](15:0)} I R[rt] = M[R[rs]+SignExtImm] I I R[rt] = {imm, 16’b0} R[rt] = M[R[rs]+SignExtImm] R R[rd] = ~ (R[rs] | R[rt]) R R[rd] = R[rs] | R[rt] I I R[rt] = R[rs] | ZeroExtImm R R[rd] = (R[rs] < R[rt]) ? 1 : 0 OPCODE / FMT /FT FOR/ FUNCT NAME, MNEMONIC MAT OPERATION (Hex) bc1t FI if(FPcond)PC=PC+4+BranchAddr (4) 11/8/1/-Branch On FP True...
Words: 2042 - Pages: 9
...THE POWER LINE POLES If you were in the position of Gordon Yarrow how would you deal with the bid exceptions requested? If I was Mr. Yarrow, I would request Henry Nelson Co. that several pre-award meetings are held to discuss the exceptions made with the goal of setting final agreements on these exceptions prior contracting the services. I would also make sure that these discussions are recorded as minutes of the meetings so that the document(s) can become an integral part of Henry Nelson’s quote and eventually included in the contract agreement. With regards to each of the exceptions requested (Exhibit 2), my comments are: • Exception 1: To handle this exception, Moren should request Henry Nelson and for that matter all bidders, to include in their quote a Jobsite delivery. Although most of the companies in the US are more familiar with the UCC transportation terms, Moren should request that the latest version of Incoterms (developed by the ICC) should be used as the applicable transportation terms of the contract. By enforcing the use of Incoterms, Moren may even specify that the quoted terms should be DDP-Jobsite which would indicate Henry Nelson and all other bidders that the supplier “must” carry the responsibility and risk of delivering the equipment to the jobsite by the requested date. With this in mind, Henry Nelson and other bidders should include as part of their cost estimate the costs for using DDP-Jobsite delivery terms. This way, the sales price to Moren is...
Words: 913 - Pages: 4
...|FRONT SHEET FOR ASSESSMENT fORM & FEEDBACK TO LEARNER(HND) | |ورقة الغلاف لنموذج ورقة العمل ونتائج المتدرب | |BTEC High National Diploma in { } | |Diploma in Programming Technology دبلوم تقنيه البرمجة | |HND Computing (software development) | | | |Student Name | |اسم المتدرب | | | | ...
Words: 1682 - Pages: 7
...Improving Accuracy and Increasing Productivity in the Food Preparation Area At Chick-fil-a Nick James Managerial Applications of Information Technology – IS535 Devry University, Keller Graduate School of Management November 10, 2013 Why This Course Project was chosen: It consists of a complete solution for products and the procedures that can be used with some technology. Table of Contents Abstract……………………………………………………………………………………….2 Brief Company Background…………………………………………………………..2 Discussion of business problem…………………………………………………….4 High level solution…………………………………………………………………………5 Benefits of solving the problem………………………………………………………5 Business/technical approach…………………………………………………………6 Business process changes………………………………………………………………7 Technology or business practices used to augment the solution………..7 Conclusions…………………………………………………………………………………….8 High level implementation plan……………………………………………………….9 Specific bulleted list of recommendation………………………………………….9 References……………………………………………………………………………………..10 Abstract With technology becoming a priority for running a successful business today there are ways that technology can be a solution to a company or organizations problem. Technology can provide a great way to stop unnecessary losses for a company. Continuous waste can be pin pointed and rectified with the right technology. For instance America wasted 33.79 million tons of food in 2010. Which was enough to fill the Empire state Building 91 times...
Words: 1730 - Pages: 7