...* 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
...Lab 1.1 Use Task Manager to Monitor a Server Objectives * Monitor a server using Task Manager * Determine which applications, processes, and services are running * Determine the CPU and memory resources used by a server * Monitor network utilization at a NIC * Monitor users on a network Estimated completion time: 20 minutes Activity Background Task Manager is a useful monitoring tool for getting a quick picture of a server. The more you use Task Manager, the more you will get from using it. For instance, you’ll start to know at a glance what is normal for a particular server what is not normal. Such expertise will help you determine, for example, which services should be running the typical performance CPU The Task Manager tabs for monitoring information • Applications—displays currently running applications—lists running processes, as explorer.exe (Windows Explorer) exe (for DNS Server) * Services—lists services and their status, running, stopped, or paused * Performance—displays real-time CPU and memory performance at a glance * Networking—shows real-time network performance in terms of network utilization at all server NICs * User—lists users connected to the server and provides tools to log off or disconnect users, as well as to send users a message Two advantages of Task Manager are that you can start it quickly and it typically requires fewer server re-sources than many other monitoring tools. You...
Words: 4058 - Pages: 17
...usually stood in line thrice: once to find out what they need to do and the value of the stamps needed; then to buy the stamps and finally to do the accountable transaction. About half of the customers coming to the post office for accountable transactions and SB invariably had requirements of stamp and stationery. The post office currently has one SB counter, two counters for accountable transactions, and one counter for stamps and stationery. The average service time in the SB counter, accountable service counters, and the stamp and stationery counter was three minutes, two and a half minutes and one minute respectively. 1 The postmaster usually observed the stamps and stationery line to be the longest. However, he got maximum complaints from the people who came for accountable transactions. While he was wondering what he could do to improve customer service, especially in terms of reducing waiting times, he received a letter from the superintendent of post offices. The letter indicated that this post office branch had been selected as one of the post offices for computerization. Computerization was expected to enable the counters engaged in accountable transactions to reduce the average service times from two and a half minutes to one and a half minutes. It would also eliminate the need for customers to buy stamps for the accountable transactions. The letter also indicated the possibility of improved software being used, which...
Words: 535 - Pages: 3
...RESTAURANTS 1.) How are in-store orders taken? SUBWAY: Orders are from the front counter as a customer walks in also via phone for home delivery. KFC : Orders are from the front counter as a customer walks in and also via phone for home delivery. MCDONALDS: Orders are taken either from the front counter as a customer walks in or through phone for home delivery or from the drive-thru window. 2.) How are the BURGERS cooked? SUBWAY: The burgers are prepared using oven. KFC : The burgers are cooked on an open conveyor that rides the patties over and open flame. MCDONALDS: The burgers are cooked on a fryer. 3.) Are the BURGERS prepared ahead of time? SUBWAY: No, the vegetables and ingredients to be added will be selected by the consumer personally and later served to the consumer. KFC : No, they are prepared after the orders are placed. MCDONALDS: Yes they prepare burgers ahead of time. 4.) How are the BURGERS assembled? SUBWAY: The burgers will be placed inside the oven and also for display since the burger base needs to be selected as per the consumer’s request. KFC : The burgers will be arranged in an oven like container and will be taken out whenever orders are placed MCDONALDS: The burgers will be prepared, wrapped up and served as and when required. 5.) Is a Microwave Oven used in the process? SUBWAY: Yes, Microwave ovens are used. KFC : Yes, Microwave ovens are used. MCDONALDS: Yes, Microwave ovens are used. 6.) How are common items like...
Words: 364 - Pages: 2
...Counter Ads Name: Institution: Course: Date: Counter advertisement is made to make the consumers aware of the dangers and the harm a product can cause to them. In most cases, I have witnessed counter-advertisement utilized to create awareness of the possible negative influence that alcohol may cause to the consumers and other related issues. Such action will work effectively if done through the media in the form of printings or video broadcast. They counter advert can also be labeled with the product to make sure that everybody who buys that product has seen that label. The public health departments are increasingly using the counter advertisement to impact the good behavior among the consumers. There are those who argue that creating awareness of the side effects cannot be the appropriate means to pass the information via the mass media. The counter ads communication structure can be used for the promotion of a wide responsibility to perfect the challenges facing health. Initially, the normal advertisement promotes the policies and the product counters ads, on the other hand, promote only the views that are relevant by the health of the public. The key role played by the counter ads is to change the existing views that public health problems are the same as the personal health problems. The counter ads result to conflicts between various parties because they mix up health issues with the political and social issues. The acceptable strategies to carry out such counter advertisement...
Words: 1304 - Pages: 6
...main functions of the HC12 Timer unit? 2. Two input capture events occur at counts 0x1037 and 0xFF20 of the free-running counter. How many counts (in decimal) have transpired between these two events? 3. What is the maximum time possible before the free-running counter overflows when the e MHz? 4. Two input capture events occur at 0x1037 and 0x002A. If the prescaler bits PR[2:1:0] are set to 101 and the e clock is 24 MHz, how much time as transpired between the two events? 5. Calculate the count that should appear in the timer capture register TC0 if a 125 kHz rectangular wave is inputted on timer pin PT0 while TCTL4 is preset for falling edge detection. Assume a 24 MHz e-clock, TMSK2 was programmed with the value $02, and the count of the 1st edge event has already been subtracted off from TC0. 6. Write down the name of the HC12 timer register that should be polled through software to determine whether or not an active input edge has been captured on one of the port T pins. 7. What is the duty cycle of a signal produced by the PWM when and ? a. 28.0% b. 29.8% c. 50.0% d. 72.0% 8. What values are required for period and duty cycle to generate a 6.0 kHz, 95% duty cycle waveform using the PWM function? Assume e-clock frequency is 24 MHz. 9. What is the slowest clock signal that can be generated from the PWM output using the 16-bit counter mode with pre-scaling and scaling? Assume e-clock frequency is 24 MHz. 10. Write down the C statements needed to program...
Words: 1661 - Pages: 7
...accurately. When somebody enters the room, the counter is incremented by one. When somebody exits the room, the counter will count down by one. The total number of individuals inside the room is displayed on the two 7-segments. Individual Counting is simply a measurement of the individual traffic entering and exiting offices, malls, sports, venues, rooms etc. Counting the number of individuals helps to maximize the efficiency and effectiveness of employees, floor area of an organization, and even the monitoring of the people inside. Individual counting is not limited to the entry or exit point of an establishment but has a wide range of applications that provide information to management on the volume and flow of people throughout a location. A common method for counting the visitors involves sharing human auditors to manually tally the number of individuals who pass by a certain location. But human-based data collection comes at great expense. Our project aims to automate the counting of individuals with the use of a detector called Light-Dependent Resistor which makes it more reliable and efficient. The use of human auditors is redirected to other functions which makes a more productive system. Another feature of this project is its automatic adjustment of the system’s volume according to the number of people inside the room. To be able to understand more about the project below are some notes and explanation of how each equipment will be used to contribute...
Words: 4260 - Pages: 18
...C12756051 Due Date: 24/10/2014 Lecturer: Jim Ffrench Dublin Institute of technology Bolton Street, Dublin 1. I. Abstract Heat exchangers are a piece of process equipment used for heat transfer between two media. The media do not come into direct contact and there is no mixing. Heat is transported from the hot medium to the cold medium by way of a heat conducting partition. In this experiment, we analysed the working principle of parallel and counter flow. We observed different fluid temperatures, fluid flow rates and how this affected the heat exchangers performance. Calculations were needed to determine the variation of the two configurations. There are some possible percentage errors that need to be considered in the experiment, these include the tube changeover from parallel to counter flow, the fluid loss will have an effect on the readings. Also if the unit is not allowed enough time to stabilise when changing the flow rates, the readings will not be accurate. 1"Vh"(L/min) Parallell"flow Counter"flow Vs U"= U"= 3"Vc"(L/min) 2.9"W/m 2 K 3.5"W/m 2 K The percentage difference between the U values is 20.6 %. II. Table of Contents 1. INTRODUCTION ........................................................................................................... 1 2. THEORETICAL BACKGROUND ....................................................................................... 2 ...
Words: 2209 - Pages: 9
...that will be discussed are as follows: counter movements, myth of grassroots, emotions, and collective memories. Growing up my mother also told me that I will encounter people who will not agree with what I value and believe in. The same is true for many social movements. Many movements have opposing movements, this is called, counter movement. According to Staggenborg, a counter movement is defined as, “a set of opinions and beliefs in a population opposed to a social movement” (Staggenborg 2011:6). A counter movement is formed because a social movement has risen and the counter movement is trying to oppose the values, beliefs, and standards...
Words: 875 - Pages: 4
...p. 3) Law enforcement has undergone dramatic changes as a result of the devastating events in the United States on 11 September 2001 (9/11). This essay will examine how law enforcement, specifically within Australia, has shifted its policies and strategies to fight the post-9/11 terrorist threat. An analysis of police actions towards terrorist related incidents since 9/11, displays how law enforcement agencies have demonstrated their ability to respond to the various threats of terrorism as they arise. “Since 2001, numerous terrorist attacks have been thwarted in Australia. Thirty-eight people have been prosecuted as a result of counter-terrorism operations and 20 people have been convicted of terrorism offences under the Criminal Code.” (Counter-Terrorism White Paper, 2010, p. ii) Australia’s State and Federal policing agencies have ‘a long tradition of reactive patrol’ (White, 2012, p. 487) However, uniformed policing plays an important role in counter-terrorism operations. Due to their knowledge and close working relationships within the local community, police are in the best position to detect and prevent terrorist actions from occurring. “So far, terrorist attempts in Australia have been disrupted by the coordinated and highly professional efforts of Australia’s security agencies and police services” (Counter-Terrorism White Paper, 2010, p. 14) The Australian Government has defined terrorism as “the use of violence by groups or individuals pursuing political objectives...
Words: 2434 - Pages: 10
...The book defines productive behavior, and counter productive behavior as follows. Productive behavior is employee behavior that contributes positively to the goals and objectives of the organization (Jex & Britt, p. Page 96, 2008). Counter productive behavior is employee behavior which explicitly runs counter to the goals of an organization (Jex & Britt, p. Page 168, 2008). In this paper I will be discussing examples of both productive and counter productive behaviors, how both impact an organization and how to increase productive behavior and decrease counter productive behavior. Productive Behavior Productive behavior is generally defined as anything an employee can do to help the organization reach their goals. Productive behavior can help an organization reach the goals that they have set because each productive employee is working toward the same goal. The end results would be that the organization’s goals become the individual employees goals, and they become more motivated to reach those goals. Having an employee be invested in the organization completely is the best way to keep an employee productive. One example of productive behavior would be an employee learning different tasks than what they were originally hired for. For example, someone who was hired to do the accounting for an organization, may step in and take phone calls, or direct a meeting when necessary. This would help the organization save money, because when every productive employee can do multiple...
Words: 841 - Pages: 4
...toPower=2 Declare Integer number=2 Declare Integer counter=0 Do ToPower=number^2 Display “2 to the power of”, number, “is” toPower Counter=counter+1 Number=number+1 While counter < 8 Lab7.4 Declare integer counter = 1 Declare integer toPower = 2 Declare integer number = 2 counter < 7 Display “2 to the power of”, number, “is”, toPower counter = counter + 1 False toPower = 2 ^ number True Lab7.5 Module Module1 Sub Main() Dim keepGoing As Integer = 1 Dim Count As Integer = 5 pingMe() openWebsite() finalOutput() While Count > 0 Console.WriteLine("Count down ..." & Count) Count -= 1 End While Console.ReadLine() End Sub Sub pingMe() Shell("Ping.exe 127.0.0.1", , True) End Sub Sub openWebsite() Dim myTargetURL As String = "http://www.microsoft.com" System.Diagnostics.Process.Start(myTargetURL) End Sub Sub finalOutput() Console.WriteLine("Complete and explanation of what this program does.") Console.WriteLine("The Shell function and ping.exe check for a response from the web server") Console.WriteLine("Dim is how we declare a variable.") Console.WriteLine("Press any key to continue...") Console.ReadLine() End Sub End Module Lab7.6 Module Module1 Sub Main() Dim Counter As Integer = 0 Dim toPower As Integer = 2 Dim Number As Integer = 2 While Counter < 7 toPower = 2 ^ Number Console.WriteLine("2 to the power of " & Number & " is " & toPower) Counter += 1 Number...
Words: 298 - Pages: 2
...Over-the-Counter Birth Control Stephanie Myers BCOM/275 September 23, 2013 Jacqueline Crawford Over-the-Counter Birth Control In the fussing over the sale of emergency contraception over-the-counter, it is easy to forget that there is another contraception drug that should be available over-the-counter but is not: the birth control pill. Oral contraceptives are basically the same drug as Plan B, but in smaller doses. Over-the-counter birth control should be readily available to women. There are many health risks to teenagers who get pregnant. It is commonly known that teen pregnancies occur with lower income, drug abuse, and high school drop-outs. From a sensible point-of-view, the financial hardships that teen pregnancy places on the health care system at large are enormous. It is ridiculous to say that birth control will encourage sexual activity; people will have sex regardless of their access to birth control. It is foolish for people to think they can demand that Americans go by their moral standard of waiting until marriage to have sex. We have to educate teenagers to the risks of unprotected sex, but it is ultimately up to them how they handle their bodies. When will men in government and men in the church stop telling women how to take care of their bodies. Women know how to take care of themselves. This would also cut down on the number of women seeking abortions. Young females should be making their decisions based on their own emotional...
Words: 538 - Pages: 3
... lab was to learn how to use data sheets and information given in them to design and create a one minute clock. Introduction/Background/Theory: When designing and creating things sometimes the materials needed are not always readily available to use, for example a function wave generator to generate the clock input needed for the flip flops. In this lab the 555 timer will be used to supply the clocking mechanism that is needed. Looking at the data sheets and reading them is very helpful in understanding what it is that is given, from there arrangements to the design can be made to make what is needed using the supplied materials. In the 555 timer: Figure 1: 555 timer schematics info. Reading the data sheet schematic for the 555 timer, equations are given to calculate the frequency. In this way one can calculate how fast the pulse is ...
Words: 1066 - Pages: 5
...expenses but also tries to save a part of the income for future needs. Money may be needed in future for various purposes like medical treatment in case of illness in the family, expenses on account of marriage, or for higher studies of the children, or to celebrate religious festivals, etc. The money saved to meet future needs may be kept at home. But will it be safe at home? It may be stolen. Moreover, the money saved will remain idle at home without any return. So people keep their savings with someone where it will be safe and earn a return. Bank is such a place where money once deposited remains safe and also earns interest. In this lesson, we shall learn about the types of deposit accounts that can be opened in a bank, and also discuss how a savings bank account can be opened and operated. 16.1 Objectives After studying this lesson, you will be able to: classify bank deposit accounts; discuss the steps to be taken for opening a Savings Bank Account; and describe the procedure of operating a Savings Bank Account. 15 Business Studies 16.2 Types of Bank Deposit Accounts Bank deposits serve different purposes for different people. Some people cannot save regularly; they deposit money in the bank only when they have extra income. The purpose of deposit then is to keep money safe for future needs. Some may want to deposit money in a bank for as long as possible to earn interest or to accumulate savings with interest so as to buy a flat, or...
Words: 4279 - Pages: 18