Free Essay

Quick

In: Other Topics

Submitted By karlo555
Words 1623
Pages 7
*>Karlo Clint V. Singco
*>Cobol Codes

*> OK codes

ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 1 TO VISIBLE OF grptrans MOVE 0 TO VISIBLE OF grpbal

ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 temp pic S9(5) comp-5. 01 temp2 pic S9(5) comp-5. 01 total pic S9(5) comp-5. 01 nega pic S9(5) comp-5. PROCEDURE DIVISION.

MOVE "TEXT" OF txtdep OF grpdep TO nega

IF nega IS GREATER THAN 0 THEN MOVE 0 TO VISIBLE OF grpdep MOVE 1 TO VISIBLE OF grptrans MOVE "Text" OF txtdep OF grpdep TO temp MOVE "Balance" OF ATMdb TO temp2 ADD temp TO temp2 GIVING total MOVE total TO "Balance" OF ATMdb INVOKE ATMdb "RewriteRecord" ELSE MOVE "Can't Deposit Negative Amount" TO CAPTION OF grpdep END-IF. *> Cancel codes
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF grpmntn MOVE 0 TO VISIBLE OF btncreate OF grpfu MOVE 0 TO VISIBLE OF txtupdate OF grpfu

MOVE " " TO "Text" OF txtFname OF grpfu MOVE " " TO "Text" OF txtLname OF grpfu MOVE " " TO "Text" OF txtUname OF grpfu MOVE " " TO "Text" OF txtPin OF grpfu

ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF grplogin MOVE 0 TO VISIBLE OF btncreate OF grpfu MOVE 0 TO VISIBLE OF btncreate2 OF grpfu MOVE 0 TO VISIBLE OF btncancel2 OF grpfu MOVE 1 TO VISIBLE OF btncancel OF grpfu INVOKE ATMdb "CloseDB" returning ReturnValue. *> Create Account Codes
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. 01 temp pic S9(5) comp-5. 01 temp2 pic S9(5) comp-5. 01 temp3 pic S9(5) comp-5. 01 ID2 pic S9(5) comp-5. PROCEDURE DIVISION. *> INVOKE ATMdb "OpenDB" returning ReturnValue INVOKE ATMdb "SelectRecords" returning ReturnValue MOVE 0 TO temp2 Perform NewID with test after until ReturnValue = 0. Compute temp3 = temp2 + 1 MOVE temp3 to "ID" of ATMdb MOVE "Text" OF txtFname OF grpfu TO "Fname" OF ATMdb MOVE "Text" OF txtLname OF grpfu TO "Lname" OF ATMdb MOVE "Text" OF txtUname OF grpfu TO "Username" OF ATMdb MOVE "Text" OF txtPin OF grpfu TO temp MOVE 0 TO "Balance" OF ATMdb MOVE temp TO "Pin" OF ATMdb. INVOKE ATMdb "WriteRecord" *> INVOKE ATMdb "CloseDB" MOVE 0 to OpenFlag. MOVE 0 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF grpmntn MOVE 0 TO VISIBLE OF btncreate OF grpfu. NewID. MOVE "ID" of ATMdb to ID2 if ID2 > temp2 then move ID2 to temp2 end-if invoke ATMdb "ReadNextRecord" returning ReturnValue move temp2 to temp3

ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. 01 ReturnValue2 pic S9(5) comp-5. 01 temp pic S9(5) comp-5. 01 temp2 pic S9(5) comp-5. 01 temp3 pic S9(5) comp-5. 01 ID2 pic S9(5) comp-5. 01 pin pic S9(5) comp-5. 01 tempor pic S9(5) comp-5. PROCEDURE DIVISION.

*> IF "CAPTION" OF grpfu = "Fill Up:" then

*>INVOKE ATMdb "OpenDB" returning ReturnValue INVOKE ATMdb "SelectRecords" returning ReturnValue MOVE 0 TO temp2 Perform NewID with test after until ReturnValue = 0. Compute temp3 = temp2 + 1 MOVE temp3 to "ID" of ATMdb MOVE "Text" OF txtFname OF grpfu TO "Fname" OF ATMdb MOVE "Text" OF txtLname OF grpfu TO "Lname" OF ATMdb MOVE "Text" OF txtUname OF grpfu TO "Username" OF ATMdb MOVE "Text" OF txtPin OF grpfu TO temp MOVE 0 TO "Balance" OF ATMdb MOVE temp TO "Pin" OF ATMdb INVOKE ATMdb "WriteRecord" INVOKE ATMdb "CloseDB" MOVE 0 to OpenFlag. MOVE 0 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF grplogin MOVE 0 TO VISIBLE OF btncreate OF grpfu MOVE 0 TO VISIBLE OF btncreate2 OF grpfu MOVE 0 TO VISIBLE OF btncancel2 OF grpfu MOVE 1 TO VISIBLE OF btncancel OF grpfu. INVOKE ATMdb "CloseDB" returning ReturnValue.

NewID. MOVE "ID" of ATMdb to ID2 if ID2 > temp2 then move ID2 to temp2 end-if invoke ATMdb "ReadNextRecord" returning ReturnValue move temp2 to temp3.

*> Username Check
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 Val pic S9(5) comp-5. 01 login pic S9(5) comp-5. 01 uname pic S9(5) comp-5. PROCEDURE DIVISION. INVOKE ATMdb "SelectRecords" MOVE 1 TO Val Perform check until Val = 0. check. IF Val = 1 then if("Text" OF txtUname OF grpfu) = ("Username" of ATMdb) then MOVE "Username Exists." TO "TEXT" OF txtUname OF grpfu MOVE 0 to Val else invoke ATMdb "ReadNextRecord" RETURNING Val end-if end-if.

*> Update Code
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. 01 temp pic S9(5) comp-5. PROCEDURE DIVISION. *>INVOKE ATMdb "OpenDB" returning ReturnValue MOVE "Text" OF txtFname OF grpfu TO "Fname" OF ATMdb MOVE "Text" OF txtLname OF grpfu TO "Lname" OF ATMdb MOVE "Text" OF txtUname OF grpfu TO "Username" OF ATMdb MOVE "Text" OF txtPin OF grpfu TO temp MOVE temp TO "Pin" OF ATMdb INVOKE ATMdb "RewriteRecord" *>INVOKE ATMdb "CloseDB" MOVE 0 to OpenFlag. MOVE 0 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF grpmntn MOVE " " TO "Text" OF txtFname OF grpfu MOVE " " TO "Text" OF txtLname OF grpfu MOVE " " TO "Text" OF txtUname OF grpfu MOVE " " TO "Text" OF txtPin OF grpfu ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. PROCEDURE DIVISION. INVOKE ATMdb "OpenDB" returning ReturnValue MOVE 0 TO VISIBLE OF grplogin MOVE 1 TO VISIBLE OF grpfu MOVE 0 TO VISIBLE OF btncancel OF grpfu MOVE 1 TO VISIBLE OF btncancel2 OF grpfu MOVE 0 TO VISIBLE OF btncreate OF grpfu MOVE 1 TO VISIBLE OF btncreate2 OF grpfu.

*> Login Codes
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. 01 temp pic S9(5) comp-5. 01 pin pic S9(5) comp-5. PROCEDURE DIVISION. INVOKE ATMdb "OpenDB" returning ReturnValue INVOKE ATMdb "SelectRecords" returning ReturnValue MOVE 1 TO ReturnValue

PERFORM loop WITH TEST AFTER UNTIL ReturnValue not = 1. loop. IF ReturnValue = 1 then MOVE "Pin" OF ATMdb TO temp MOVE "Text" OF txtpin OF grplogin TO pin IF (("Text" OF txtuname OF grplogin = "Username" OF ATMdb) and ("Text" OF txtpin OF grplogin = temp)) then *>IF pin = temp then MOVE 0 TO VISIBLE OF grplogin MOVE 1 TO VISIBLE OF grpns MOVE 0 TO ReturnValue

ELSE INVOKE ATMdb "ReadNextRecord" RETURNING ReturnValue END-IF

END-IF.

ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. LINKAGE SECTION. 01 POW-ARG-KEYCODE PIC S9(4) COMP-5. 01 POW-ARG-SHIFT PIC S9(4) COMP-5. PROCEDURE DIVISION USING POW-ARG-KEYCODE POW-ARG-SHIFT. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpmntn MOVE 1 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF btncreate OF grpfu ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpmntn MOVE 1 TO VISIBLE OF grpns ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 ReturnValue pic S9(5) comp-5. PROCEDURE DIVISION.

*>INVOKE ATMdb "OpenDB" returning ReturnValue MOVE "Fname" OF ATMdb TO "Text" OF txtFname OF grpfu MOVE "Lname" OF ATMdb TO "Text" OF txtLname OF grpfu MOVE "Username" OF ATMdb TO "Text" OF txtUname OF grpfu MOVE "Pin" OF ATMdb TO "Text" OF txtPin OF grpfu MOVE 0 TO VISIBLE OF grpmntn MOVE 1 TO VISIBLE OF grpfu MOVE 1 TO VISIBLE OF txtupdate OF grpfu

ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpns MOVE 1 TO VISIBLE OF grplogin INVOKE ATMdb "CloseDB" ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpns MOVE 1 TO VISIBLE OF grpmntn ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grpns MOVE 1 TO VISIBLE Of grptrans *> Bal Codes
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grptrans MOVE 1 TO VISIBLE OF grpbal MOVE "Balance" OF ATMdb TO "Caption" OF lblbal OF grpbal *> MOVE "Balance" OF ATMdb TO "Text" OF txtbal OF grpbal ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grptrans MOVE 1 TO VISIBLE OF grpdep ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION.

MOVE 0 TO VISIBLE OF grptrans MOVE 1 TO VISIBLE OF grpns ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 0 TO VISIBLE OF grptrans MOVE 1 TO VISIBLE OF grptransfer. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION. MOVE 1 TO VISIBLE OF grpwith MOVE 0 TO VISIBLE OF grptrans ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION.

MOVE 0 TO VISIBLE OF grpwith MOVE 1 TO VISIBLE OF grptrans ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. PROCEDURE DIVISION.

MOVE 0 TO VISIBLE OF grpwith MOVE 1 TO VISIBLE OF grptrans *>ok codes
ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 temp pic S9(5) comp-5. 01 temp2 pic S9(5) comp-5. 01 total pic S9(5) comp-5. PROCEDURE DIVISION.

MOVE "Text" OF txtwith OF grpwith TO temp MOVE "Balance" OF ATMdb TO temp2 SUBTRACT 100 FROM temp2 GIVING temp2 IF temp IS GREATER THAN temp2 then MOVE "INSUFFICIENT FUNDS!" TO CAPTION OF grpwith ELSE ADD temp2 TO 100 GIVING temp2 SUBTRACT temp FROM temp2 GIVING total MOVE total TO "Balance" OF ATMdb INVOKE ATMdb "RewriteRecord" MOVE 0 TO VISIBLE OF grpwith MOVE 1 TO VISIBLE OF grptrans END-IF. *> global variable 01 OpenFlag pic s9(4) comp-5 value 0 is global.

Similar Documents

Free Essay

Wearing Quick Weaves

...Wearing Quick Weaves versus Sew-ins Today women are more likely to be wearing not just the latest fashion, but also weave. There are many styles and methods when it comes to applying weaves. All techniques of weaves styles have different procedures; some may seem more difficult to apply than others. The two most popular techniques are quick weaves and sew-ins. Quick weaves and sew-ins differ in technique, care and cost. A quick weave is a method of installing hair extensions to hair without leaving out any natural hair. The hair extensions are attached to the natural hair by either adding gel to the natural hair to lay it down or by braiding the natural hair down to the scalp and then gluing the hair extensions down on top of that. With this method a person do not have to worry about choosing a color to match the natural hair, or about blending the hair extensions in with the natural hair. This method also gives a very flat and non bulky look to the hair extensions. A Quick Weave can last up to 4 weeks with proper maintenance. It could last longer but the natural hair needs to be washed and deep conditioned every month, especially when wearing braids or hair extensions regularly. To maintain a Quick Weave style a person should never put any oil based product onto the extension hair, for straight styles a person should wrap the hair every night and tie it up with a satin bonnet or satin scarf, for curly styles a person should apply light mouse and roller set to the hair......

Words: 660 - Pages: 3

Premium Essay

Macroeconomics Quick Check

...February 22, 2013 Week 6 Assignment Macroeconomics Quick Check: Page 180 1. Using the information in this chapter, label each of the following statements true, false, or uncertain. Explain briefly. a. The original Phillips curve is the negative relation between unemployment and inflation that was first observed in the United Kingdom. True: According to the reading on page 161, it says the same thing. b. The original Phillips curve relation has proven to be very stable across countries and over time. False: According to the reading on page 161, it states that the relation broke down and in most countries there was both high inflation and high unemployment. c. The aggregate supply relation is consistent with the Phillips curve as observed before the 1970s, but not since. False: According to the reading on page 171, it states that the relation has held quite well, but there are signs of warnings. d. Policy makers can exploit the inflation-unemployment trade-off only temporarily. Uncertain: I am not quite sure if this is true because I could not find in the reading about this being false or true. e. In the late 1960s, the economists Milton Friedman and Edmund Phelps said that policy makers could achieve as low a rate of unemployment as they wanted. Uncertain: According to the reading on page 170, Friedman and Phelps argued that the appearance of a trade-off between inflation and unemployment was an illusion, which it did disappear in the......

Words: 974 - Pages: 4

Free Essay

Sam Raimi - the Quick and the Dead

...to the movie upon filming. Raimi’s fascination with films started as he was a child, when his father would use the family video camera to make short films. Seeing how his father was able to manipulate time and space through the use of a camera, Raimi had found his calling (Warren 12). Once following in his father’s footsteps and creating his own short films, Raimi soon began developing a style all his own that would soon captivate the film world (Warren 13). With his style most notable within his early works of The Evil Dead (1981), Evil Dead II (1987), and Army of Darkness (1992), as well as his most recent horror film Drag Me to Hell (2009), it can also be seen in Raimi’s attempt at a western with 1995’s The Quick and the Dead. Set in the 1880’s, The Quick and the Dead begins with The Lady entering an old western town named Redemption, run by the ruthless outlaw John Herod. She enters the town annual contest of a single elimination gun-fighting tournament. Haunted by childhood memories of John Herod manipulating her to kill her own father, she plans to kill Herod, who is unaware that The Lady is the same girl. Encountering a preacher who once ran in Herod’s gang, the two battle to stay alive within the contest to eventually thwart Herod’s reign of terror over the town. Round after round, the two, who have gained some sort of friendship, battle to stay alive until there are few competitors left and they are forced to compete with each other. Using tricks, the......

Words: 1810 - Pages: 8

Free Essay

372 Quick Review

...372 Quick Review Sheet Videos Toyota • Lift trucks, number 1 in lift truck sales since 2002 Ships • WWII, German U boats sunk more ships than could be produced • Henry J Kaiser, not a sailor, worked on Hoover and San Fran Bay bridge • Liberty Ships, 3 per day, fastest produced in 80 hours Deming History • W. Edwards Deming, statistician who worked for census bureau • Created JIT, Deming circle • Focused on quality control and that workers were important Alaskan Pipeline • Large influx of workers, 28000 at the peak • Wages were good and living quarters were nice • Only 10% women and there were some marriages • Main issue was permafrost so had to build above ground Container Ships • 90% of materials shipped in steel containers • 1/3 of imports brought through Long Beach California JIT – Just in Time, MRP used to combat risk MRP (inbound) – Materials Requirements Planning, Part of larger system QR – Quick Response ECR – Efficient Consumer Response VICS – Voluntary Inter-Industry Communication Standards Committee POS – point of sale DRP (outbound) – Distribution Requirements Planning SKUs – Stock-Keeping Units STB – Surface Transportation Board ICC – Interstate Commerce Commission EOQ – Economic Order Quantity, Works best with single facility, always round up EOQ = square root (2DP/CV) P = Ordering Cost per order D = Annual demand of product C = Annual inventory carrying cost (as a % of product value) V = value of inventory......

Words: 329 - Pages: 2

Premium Essay

Quick Response

...The Reality of Quick Response (QR) in the Japanese Fashion Sector and the Strategy Ahead for the Domestic SME Apparel Manufacturers Nobby (Nobukaza) Azuma School of Management Heriot-Watt University UK E-mail: nobukaza@aol.com N.Azuma@hw.ac.uk Fax: +44-(0) 131-451-3498 Abstract Quick Response (QR) has long been perceived as the essential survival strategy of the textile and apparel (T-A) manufacturers in the developed economies against offshore competition. However, the regionalization of global economies and active governmental investment in the T-A industry in the offshore countries has allowed the offshore QR to become increasingly feasible. This changing facet of QR may spell out more lucrative opportunities for Japanese "apparel firms", which have predominantly in-house creative and marketing functions, to widen the scope and the scale of their fashion business operations, since the economic upgrading in the Pacific Rim will create a huge consumer market that shares similar fashion trends as in the Japanese market. However, the apparel firms' production shift offshore has, on the other hand, threatened the existence of the domestic SME apparel manufacturers that have traditionally served their apparel firms customers, now that QR is no longer the sustainable competitive advantage of domestic manufacturing. The purpose of this paper is to explore the levels of QR implementation, identifying the potential pitfalls and drawbacks of the current QR initiatives in the......

Words: 5667 - Pages: 23

Free Essay

Quick Sort Analysis

...Here is an analysis of the time complexity of quick-sort in detail. In quick sort, we pick an element called the pivot in each step and re-arrange the array in such a way that all elements less than the pivot now appear to the left of the pivot, and all elements larger than the pivot appear on the right side of the pivot. In all subsequent iterations of the sorting algorithm, the position of this pivot will remain unchanged, because it has been put in its correct place. The total time taken to re-arrange the array as just described, is always O(n)1 , or αn where α is some constant [see footnote]. Let us suppose that the pivot we just chose has divided the array into two parts - one of size k and the other of size n − k. Notice that both these parts still need to be sorted. This gives us the following relation: T (n) = T (k) + T (n − k) + αn where T (n) refers to the time taken by the algorithm to sort n elements. WORST CASE ANALYSIS: Now consider the case, when the pivot happened to be the least element of the array, so that we had k = 1 and n − k = n − 1. In such a case, we have: T (n) = T (1) + T (n − 1) + αn Now let us analyse the time complexity of quick sort in such a case in detail by solving the recurrence as follows: T (n) = T (n − 1) + T (1) + αn = [T (n − 2) + T (1) + α(n − 1)] + T (1) + αn (Note: I have written T (n − 1) = T (1) + T (n − 2) + α(n − 1) by just substituting n − 1 instead of n. Note the implicit assumption that the pivot that was chosen divided the......

Words: 1014 - Pages: 5

Free Essay

Gds Quick Reference

...QUICK REFERENCE GUIDE I) Security Sign on to computer Sign off the computer Display all work areas AMADEUS JI3115TS/SU JO* JD GALILEO SON/ZAW SOF OP/W* ABACUS / SABRE SI* SO* *S* WORLDSPAN BSI$0001XX/GS BSO$ B$ II) Information and Help Display index of information chapters Request help GGAIS HE GG* H/ or HELP F*FOX F*FOX/CAR HELP GRS HELP III) Encode and Decode City - encode City - decode Country - encode Country - decode Airline – encode Airline – decode Aircraft equipment – encode Aircraft equipment – decode City record DAN JERSEY DAC NYC DC FINLAND DC AU DNA IBERIA DNA EI DNE FOKKER DNE 744 GGAPTLHR .CE JERSEY .CD NYC .LE FINLAND .LD AU .AE IBERIA .AD EI .EE FOKKER .ED 744 .CR LHR W/-CCLONDON W/*LON HCCC/INDIA HCCC/IN W/-ALKINGFISHER W/*IT W/EQ-BOEING W/EQ*744 NA KC/JERSEY KD/JER 4C*FINLAND 4C*F KAC/IBERIA KAD/EI NOT APPICABLE HELP EQP747 NOT APPICABLE IV) Scrolling Move down Move up Move bottom Move top MD MU MB MT MD MU MB MT MD MU MB MT MD MU MB MT V) Printing Print all fields of the BF Print ticket, itinerary and MIT for all passengers Print ticket only Create electronic ticket WRA/ TTP/INV/IBPI TTP TTP/ET P-*ALL TKP TKPDTD TKPET DIT¥DPI W¥ETR¥DPE W¥DPE W¥ETR JTXXXRR/*A EZT EZEL#HV#DR#*IX EZE VI) Air Availability Display availability for today Display more availability Display availability by date & time Display availability by Airline Direct link to carrier ANZRHLON MD AN18JULZRHCPH1400...

Words: 1737 - Pages: 7

Free Essay

Quick Reference to C Programming

...A Quick Reference to C Programming Language Structure of a C Program #include(stdio.h) /* include IO library */ #include... /* include other files */ #define.. /* define constants */ /* Declare global variables*/) (variable type)(variable list); /* Define program functions */ (type returned)(function name)(parameter list) (declaration of parameter types) { (declaration of local variables); (body of function code); } /* Define main function*/ main ((optional argc and argv arguments)) (optional declaration parameters) { (declaration of local variables); (body of main function code); } Comments Format: /*(body of comment) */ Example: /*This is a comment in C*/ Constant Declarations Format: #define(constant name)(constant value) Example: #define MAXIMUM 1000 Type Definitions Format: typedef(datatype)(symbolic name); Example: typedef int KILOGRAMS; Variables Declarations: Format: (variable type)(name 1)(name 2),...; Example: int firstnum, secondnum; char alpha; int firstarray[10]; int doublearray[2][5]; char firststring[1O]; Initializing: Format: (variable type)(name)=(value); Example: int firstnum=5; Assignments: Format: (name)=(value); Example: firstnum=5; Alpha='a'; Unions Declarations: Format: union(tag) {(type)(member name); (type)(member name); ... }(variable name); Example: union demotagname {int a; float b; }demovarname; Assignment: Format: (tag).(member......

Words: 253 - Pages: 2

Free Essay

Quick Sort Algorithm

...6.5 Quick Sort Implementation Next, recall that our goal is to partition all remaining elements based on whether they are smaller than or greater than the pivot We will find two entries: – One larger than the pivot (staring from the front) – One smaller than the pivot (starting from the back) which are out of order and then correct the ordering – I.e., swap them 1 7.6.5 Quick Sort Implementation Continue doing so until the appropriate entries you find are actually in order The index to the larger entry we found would be the first large entry in the list (as seen from the left) Therefore, we could move this entry into the last entry of the list We can fill this spot with the pivot 2 7.6.5 Quick Sort Quick Sort Example First, we examine the first, middle, and last entries of the full list The span below will indicate which list we are currently sorting 3 7.6.5 Quick Sort Quick Sort Example We select 57 to be our pivot – We move 24 into the first location 4 7.6.5 Quick Sort Quick Sort Example Starting at the 2nd and 2nd-last locations: – we search forward until we find 70 > 57 – we search backward until we find 49 < 57 5 7.6.5 Quick Sort Quick Sort Example We swap 70 and 49, placing them in order with respect to eachother 6 7.6.5 Quick Sort Quick Sort Example We search forward until we find 97 > 57 We search backward until we find 16 < 57 7 7.6.5 Quick Sort Quick Sort......

Words: 1243 - Pages: 5

Free Essay

Quick Stress Relief Ideas

...INFORMATIVE SPEECH OUTLINE 4-6 minutes Student’s Name: Dakotah “Stormy” Watson Date: 9/18/2014 Topic: Quick Stress Relief General Purpose: To inform Specific Purpose: To inform my audience about the way to relief stress in a healthy manner Thesis: For a healthy relief of stress, try talking to someone who listens, communing with nature and doing some meditation practices. I. Introduction A. Attention Getter: You walk into your class late one day and your teacher has already begun a discussion. You notice that everyone else has a small packet, except you. You shrug it off and find yourself lost as your teacher appears to be going over several topics you vaguely remember from last class. After the professor ends the class, you walk up to them and inquire about the packets. Your professor hands you a packet and explains that it is the study guide for the exam you have next week. They go on to explain that this exam is worth 40% of your final grade. You give a brief look over the study guide and feel overwhelmed and instantly under millions of pounds of pressure that is crushing the life out of you. You just want to forget about the test and relieve the pressure of the stress. B. Reason to Listen: Why should the audience listen to your speech? Do you want to know a few quick stress reliever tips to make that stress go away? C. Credibility Statement: Based on my experience, people that are facing stress are always depressed and there is no sense to do......

Words: 713 - Pages: 3

Premium Essay

Quick Tips for a Healthy Lifestyle

...Quick Tips for a Healthy Lifestyle Everyone wants to be healthy and to live a long and active life. But changing habits is very difficult. So being healthy doesn’t mean changing your whole lifestyle because such drastic change might be difficult to make. So here are some easy, simple and quick tips which can help you become healthy and to live a healthy lifestyle. Drink one glass of water first thing in the morning: Drink one glass of water of room temperature first thing in the morning after waking up. Water is very good in clearing our system, increasing metabolic rate and flushing out toxins. It even helps in reducing weight. Eat healthy snacks: Get rid of all those unhealthy snacks like candies, nuts, cookies etc. as they contain tons of sugar, fat and salt. Instead snack on fresh fruits and berries or raw nuts which are rich in minerals and vitamins. Never skip breakfast: The most important meal of the day, breakfast should never be skipped especially by those seeking to lose weight. When you skip it, you get hungry before lunch and most likely snack on unhealthy snacks which are high in sugar and fat, but low in minerals and vitamins. It takes only 15 minutes to fix a healthy and delicious breakfast like fruit salad with yogurt or an omelet with vegetables. Get enough sleep: If you don’t get enough sleep it can damage your health physically and can especially affect the heart. On average it’s found that 6-8 hours of sleep is enough. So get your rest and......

Words: 458 - Pages: 2

Premium Essay

Solutions to Quick Quizzes

...Solutions to Quick Quizzes Chapter 1 1. There are many possible answers. 2. There are many possible answers. 3. The three principles that describe how the economy as a whole works are: (1) a country’s standard of living depends on its ability to produce goods and services; (2) prices rise when the government prints too much money; and (3) society faces a short-run tradeoff between inflation and unemployment. A country’s standard of living depends largely on the productivity of its workers, which in turn depends on the education of its workers and the access its workers have to the necessary tools and technology. Prices rise when the government prints too much money because more money in circulation reduces the value of money, causing inflation. Society faces a short-run trade-off between inflation and unemployment that is only temporary. Policymakers have some short-term ability to exploit this relationship using various policy instruments. Quantity of Clothing Produced the frontier), point B is an inefficient point (inside the frontier), and point C is an infeasible point (outside the frontier). Microeconomics is the study of how households and firms make decisions and how they interact in markets. Macroeconomics is the study of economy-wide phenomena, including inflation, unemployment, and economic growth. 2. An example of a positive statement is “a higher price of coffee causes me to buy more tea.” It is a positive statement because it is a claim that describes......

Words: 11456 - Pages: 46

Premium Essay

Quick Service Restaurants

...Study of Quick Service Restaurants in India Once an introvert, domestic home driven Indian population is now opening up to a culture of eating out. India is a young country with almost 60 percent of people in the age window of 18- 35 years which are also the most spending years, hence QSR. The first foreign Quick Service restaurant and casual dining entered Indian Market around 20 years ago. Although Quick Service Restaurants contributes to only 2-3% to India’s GDP, the market is worth INR 247,680 crore (USD 48 billion) and is expected to grow to INR 408,040 crore (USD 78 billion) by 2018. It comprises of food services that are organized such as full service casual and fine dining restaurants, hotels, bars and lounges, cafes and frozen dessert formats as well as unorganized sector such as Dhabas, street stalls, roadside vendors, food charts etc. The concept of QSR has gained prominence in India because of the affordable, competitive pricing and convenient quick service to the ever growing population. QSRs face few challenges in terms of Health and hygiene, beating local competition, monitoring multiple outlets in various cities, holding on to the customers as QSR customers are easy to sell to but also easy to lose, maintaining quality service, localization of menu and building a cost effective supply chain. Foreign QSRs have more 63% of the market shares but there are many Indian chains such as Haldiram’s, Faasos, Goli Vada Pav etc. that are flourishing in the market that......

Words: 4031 - Pages: 17

Premium Essay

Quick Trip

...Quick Trip Quick Trip has established itself as a dominant company and through that process, has created a workforce that is full of happy employees. In this paper, I will attempt to answer some questions about how these employees and their attitudes affect their work environment and the customers that come in and out of their stores. I will also give some perspective on how other companies can learn from Quick Trip and their employees. Case Study Review The case study “QuikTrip: Staffed by Passionate and Compassionate People” (McCuddy), touches on Chester Cadieux’s journey of starting a small business and developing it into the “Forbes List” company it is. Cadieux not only built the $9 billion company, but he has made this a company that has made it onto Fortune Magazine’s “Best Companies to Work For” list. Cadieux says “We’ve been able to compete successfully because of our people. We hire better people, train them better, and pay them more. We are obsessed with keeping the stores clean and well-merchandised and with providing a rewarding customer experience overall.” (Quicktrip.com) Discussion Employee Attitudes and Emotions Influence on Work Behaviors. It appears that the average Quick Trip employee carries a positive attitude and their emotions are projected as the same. As described in the course readings, these positive emotions then directly influence employee work behaviors in a positive way. Also, through creating a positive work environment, the......

Words: 611 - Pages: 3

Free Essay

Quick Brown Fox

...The quick brown fox jumps over the lazy dog From Wikipedia, the free encyclopedia The phrase shown in metal moveable type, used in printing presses (image reversed for readability) "The quick brown fox jumps over the lazy dog" is an English-language pangram—a phrase that contains all of the letters of the alphabet. It is commonly used for touch-typing practice. It is also used to test typewriters and computer keyboards, show fonts, and other applications involving all of the letters in the English alphabet. Owing to its brevity and coherence, it has become widely known. Contents [hide] 1 History 2 Computer usage 3 Cultural references 4 See also 5 References History[edit] The earliest known appearance of the phrase is from The Michigan School Moderator, a journal that provided many teachers with education-related news and suggestions for lessons.[1] In an article titled "Interesting Notes" in the March 14, 1885 issue, the phrase is given as a suggestion for writing practice: "The following sentence makes a good copy for practice, as it contains every letter of the alphabet: 'A quick brown fox jumps over the lazy dog.'"[2] Note that the phrase in this case begins with the word "A" rather than "The". Several other early sources also use this variation. As the use of typewriters grew in the late 19th century, the phrase began appearing in typing and stenography lesson books as a practice sentence. Early examples of publications which used the phrase include......

Words: 990 - Pages: 4