Premium Essay

Unit 4

In:

Submitted By
Words 292
Pages 2
Unit 4 Homework

1. What are the five advantages and disadvantages of using global variables?
Advantages
* It is accessible to all modules in a program * You only have to declare it once outside the modules * It is good to use it for constants you want to keep consistent * It simplifies maintenance, avoids duplication of local constants * It can make a program easier to read in reference to constants
Disadvantages
* It makes debugging difficult * If modules use global variables it is dependent upon the module and if other modules are presented you have to redesign all over each time. * Any statement in a program can change the variable * It makes a program hard to understand since it can be modified and have to be aware of all other parts of the program that access it. * Global variables are not willing direct into flowcharts

2. How can you declare global and local variables in flowcharts? * Global variables are displayed in pseudo code but not in flowcharts directly In order to declare global variables in a flowchart, you’d put that variable in the main part of the program (the main box where other functions will branch off from) for local variables, you’d put those variables in the box where each separate functions executed.

3. What is the main difference between global and local variables? * A global variable applies to the entire application you are writing as for a local variable it could only apply for the section you are programming in.

4. How can you declare global and local variables in psedudocode and real basic code? * A local variable is a variable declared inside a construct, such as a class or function, whole a global variable is a variable declared outside of any construct.

Similar Documents

Premium Essay

Nt1330 Unit 4 Assignment

...There's dirt filling every pore, a kink in my neck from straining down into the unit, and several rocks somewhere in my abdomen desperate to make their presence known. Lifting the last spoonful of 5YR 3/2 silty clay loam carefully into the dustpan with my trusty plastic spoon, I confidently declare the shallow, twisting tunnel I had spent the last 45 minutes meticulously excavating... a chipmunk hole. Likely constructed in the early 21st century. Strange though it may sound, this experience is one of my proudest moments. Sweat dripping down my nose from the humid Connecticut summer, back sore from countless hours hunched over screens, finding nothing in the small dustpan’s worth of dirt collected from the potential feature, I knew there was nothing I would rather do....

Words: 669 - Pages: 3

Premium Essay

Nt1310 Unit 4

...“Assignment 1.1: Instructional Materials LP1.” a. Name the three components of the Central Processing Unit (CPU). (3 points) b. Elaborate on the capacity of primary memory. Does a computer require primary memory? (1 point) c. Describe a byte. How many bits are in a byte? (1 points) d. Explain why secondary storage is required. (1 point) e. List three input devices. (3 points) f. List three output devices. (3 points) g. List the functions of an operating system. (5 points) h. Explain the purpose of utility software. (1 point) i. Describe the difference between data and information. (1 point) j. Explain software distribution methods. (1 point) A. The three components of the CPU are: the arithmetic logic unit, the control unit and the registers. B....

Words: 424 - Pages: 2

Premium Essay

Nt1420 Unit 4 Assignment

...function displayMoles() { //Selects random number to choose a mole var firstMole = Math.floor(Math.random() * 4); var displayMole = setInterval(function displayMole() { //Hides all moles document.getElementById("mole-1").style.display = "none"; document.getElementById("mole-2").style.display = "none"; document.getElementById("mole-3").style.display = "none"; //If all moles shown, it hides all if (i === 0){ document.getElementById("mole-1").style.display = "none"; document.getElementById("mole-2").style.display = "none"; document.getElementById("mole-3").style.display = "none"; return; } else if (i > 40) { document.getElementById("mole-1").style.display = "block"; document.getElementById("mole-2").style.display...

Words: 740 - Pages: 3

Free Essay

Unit 4 Lab Nt1110

...Task 1) Task 1: Procedure 1a) Examine the following motherboard. One interesting thing you will see is the use of two BIOS chips. The M-BIOS chip is the Main BIOS chip and the B-BIOS chip is the Backup BIOS chip, which is used to rewrite the M-BIOS chip if it becomes corrupted. 2a) The LGA 1156 connector known as H socket is a land grid array socket used by first generation workstation. The LGA 1156 connector is used with two processors; Lynnfield and Clarkdale. The Lynnfield has different series of processors the Core i5 700 series, the Core i7 800 series and the X3400 series and L3400 series Xeon. The Clarkdale uses the Core i3 500 series, the Core i5 600 series, the Pentium G6000 series and the Celeron G1000 series. The LGA 1156 connector connects the motherboard to the CPU. Without this connector the system will not operate. 3a) The H55 Chipset is used to provide the interface for the graphics and HD media technology that goes though the CPU and the motherboard. The H55 connects to the MCH (Northbridge). IT is compatible with core i7, core i5, and core i3 processors. 4a) The Gigabyte GA-H55M-UD2H is an Intel motherboard chipset that is compatible with Intel core i7, core™ i5 and core™ i3 processors. Includes an on/off technology that allows you to charge your iphone, ipad, ECT regardless the PC is on, in standby mode or even turned off. This feature draws current from the Gigabyte motherboard USB ports. Uses a 3x USB power boost that delivers extra power to USB devises...

Words: 639 - Pages: 3

Premium Essay

Nt1310 Unit 4 Process Cycle

...4 process cycle 1) reads and 2) interprets machine language 3) executes and 4) stores the code performed by CPU 17- What is the Data bus and what is the Address bus? A data bus is a system (of electrical wires) found inside a device and used to send information between two or more components. An address bus is a computer bus that transfers data according to the location it has to be stored in. It follows identified physical addresses which is always specified by the processor. 18- What is the difference between the Operating System and Application Software? An Operating System is a software that acts as an interface between you and the hardware by prompting a graphical user interface (GUI). On the other hand, an application software...

Words: 387 - Pages: 2

Premium Essay

Nt1310 Unit 4 Assignment 1

...Digital graphics assignment 1 CPU- the CPU is an abbreviation for central processing unit and acts as the brain of the computer. Carrying out a high percentage of the commands given by hardware and software that is also installed in the computer. An example of a modern day CPU is the Intel core i7 processor Graphics card- the graphics card is a piece of hardware installed into a computer on the motherboard, which processes and displays images that the computer needs displaying. The graphics card has its own memory built in so it does not strain the CPU to use and doesn’t use the RAM installed to run constantly. The higher the amount of built in memory the higher quality it can process and display images .And example of a modern day graphics...

Words: 739 - Pages: 3

Premium Essay

Nt1310 Unit 4 Components Of Internal Memory

...The CPU/Processor is essential the brains of a computer, CPU stands for Central Processing Unit and it is the hardware inside of the computer which follows out the instructions of a program on the computer by performing the arithmetical. Graphics Card The graphics card is an expansion card which will create a feed of output images to display on a Monitor. The graphics card is known as a GPU which stands for graphics processing unit, It is used to process all graphical tasks required by the user. Internal memory (RAM) The Internal memory otherwise known as RAM stands for Random-access memory, Is a form of data storage. RAM allows data items to be read and written in the same amount of time regardless of which order the data items were opened....

Words: 776 - Pages: 4

Premium Essay

Nt1310 Unit 4 Components Of Operating System

...communicate with each other. The picture below depicts a motherboard with all the main components named. 2.2.2 Central Processing Unit (CPU) The CPU is the brain of the computer. It is responsible for all the calculations carried out in the entire computer system. Furthermore the speed of the CPU effects the overall performance of the computer system. The CPU is available in several architectures delivering various levels of performance. Few of them are • Embedded CPU architectures • Microcomputer CPU architectures • Workstation/Server CPU architectures • Mini/Mainframe CPU architectures • Mixed-core CPU architectures There are two main components in the CPU the first is known to be the Arithmetic Logic Unit (ALU) this unit performs the arithmetic and logical processes of the computer system. The second is the Control Unit (CU) this unit it responsible for extracting instructions from the memory and decodes and implement them, while calling the ALU whenever necessary. Apart from these components there are few other components within the CPU such as Registers, Cache Memory and Internal Bus. Registers are high speed data storage areas within the CPU. All the data are usually processed after it is depicted in a register....

Words: 774 - Pages: 4

Premium Essay

Unit 4

...Unit 16: Human Resource Management in Business (10 Credits) Assessment Sheet Name: ……………………………………………………………………………… | | | | | |Assessment Criteria |Achieved | | | | | |Pass 1 |Describe the internal and external factors to consider when planning the human resource | | | |requirements of an organisation | | | | | | |Pass 2 |Describe how the skills that employees require to carry out jobs in an organisation are | | | |identified | | | | | | |Pass 3 |Outline how an organisation motivates it’s employees | | | | ...

Words: 1556 - Pages: 7

Premium Essay

Unit 4

...Unit 4 Assignment 1 1. Read the following article Agans, R., & Shaffer, L. (1994). The hindsight bias: The role of the availability heuristic and perceived risk. Basic and Applied Social Psychology, 15(4), 439-449. “ This article can be located by using the Kaplan Online Library article search feature. Click here to access the Kaplan Library. You may also access the Kaplan Library by following these instructions: 1. Click the Academic Tools tab 2. Click Online Library. 3. Log in to your account 2. Read the narrative for Exercise 11-38 – found on page 459 in your textbook. Assume that you are a business consultant hired to advise Earth Baby, Inc. (EBI) on the proposed venture from Great Deal, Inc. (GDI). Your task is to analyze the proposal and make a recommendation to either accept or reject it. Your analysis must include critical thinking and analysis supported by evidence using independent references. Your analysis must also include any biases that might be relevant to the proposal. The analysis must be Word document, 2 to 2 and ½ pages long, not including the Title Page and Reference List. The analysis must be presented in proper APA, 6th Edition formatting, including a Title Page with properly formatted Running head. A “Conclusion” section is also 11-38 Special Order Earth Baby Inc. (EBI) recently celebrated its tenth anniversary. The company produces organic baby products for health-conscious parents. These products include...

Words: 969 - Pages: 4

Premium Essay

Unit 4

...Running Head: Managing Talent Case Study MT203- 01 Unit 4 Assignment Human Resource and Management October 19, 2015 Professor Maria Minor 1. What conclusions can you draw about the supply of and demand for labor at Yahoo? The conclusion about the supply would be for Yahoo to try to continue to do what they were doing when the old internet of Yahoo when business was booming but little twist to getting involved in the new internet. The twist of getting the new internet into their business would be the demand of their supply. Something that can attract the new generation especially since it’s all about the internet and the new technology. I also think that Yahoo should partner with other investors that will help advertise their business. Example would be like Samsung and Amazon Fire use google or have the google app already on their devices. So going into business with another company/investor can also help them as well. 2. What actions might Yahoo take to strengthen its internal recruiting? How might these efforts support Yahoo’s corporate strategy? Some actions that yahoo can take to strengthen its internal recruiting would be to advance in careers and to have the employees share their ideas. It states that Yahoo is seeking pathways for growth so since the employees already have an idea of what the company is expecting or may need; maybe promoting someone into office and having them share their ideas on what the company needs can strengthen the company...

Words: 546 - Pages: 3

Free Essay

Unit 4

...Deborah Rodriguez April 22, 2014 Social Security & Disability Seminar Assignment Unit 4 In unit four, we learned about the attorney fees that came up with our assignment. There are two main sources of attorney’s fees in Social Security cases. Most awards by far are paid by the claimant, usually out of past-due benefits. Another source of fees is the Equal Access to Justice Act (EAJA), a federal fee-shifting statute. For the most part, attorney’s fees for OASDI and SSI claims are governed by the same or similar rules. Many of the same rules apply also to non-attorney representatives. Attorney’s fees paid out of the claimant’s benefits are regulated by statute and regulations. Fees for claims resolved within SSA are authorized at the administrative level where the final decision is reached. Thus, administrative law judges approve fees in cases where a favorable hearing decision was issued, and the Appeals Council authorizes fees in cases decided finally only by the Appeals Council. The representative must file a request for fees in writing, which must include a list of services performed, the amount of the fee, and any expenses incurred. SSA considers a number of factors when evaluating a representative’s request for fees, including the type and amount of services performed, the difficulty of the case (including the skill required of the representative), and the results achieved. Although the amount of benefits received is taken into consideration, it does...

Words: 344 - Pages: 2

Premium Essay

Unit 4

...Unit 4 “Calgon, Take Me Away” Larry Fiegle BUS 620 Tina Haller May, 20, 2012 “Calgon Take Me Away” My paper is going to be on Calgon and their famous advertising slogan, “Calgon, take me away”. This slogan has always been popular in my home especially during stressful times when I feel like I need a break from my busy stressful day and need time to myself. For over 50 years, Calgon has been dedicated to creating uniquely exhilarating bath and body experiences that make people feel good. The meaning of “Calgon take me away” was put in place because the product, Calgon restores the spirit and takes you on a special fragrant journey to a place you want to be. Calgon has always been about taking you away on your journey. (Our story) I believe Calgon does differentiate their product from the competitor’s product. Their name is mentioned in the famous slogan and they mention the journey that all the different fragrances that Calgon has taken you on. Their ad also comments on the way their product makes your skin feel. Another popular slogan they use is “love the skin you’re in”. They use this slogan because they believe their product makes your skin feel soft and nice unlike their competitors. (Our story) I believe all competitors mention their fragrances and they all believe they have the best product ever but Calgon also mentions their fragrances and they believe their fragrances will relax you and take you away. The market segments targeted in this...

Words: 682 - Pages: 3

Premium Essay

Unit 4

...Assignment Instructions Unit: 4 Instructions: This week's Assignment consists of reading a scenario about Sandwich Blitz, Inc., and responding to four questions. Dalman and Lei have discussed two possible avenues to grow and expand Sandwich Blitz, Inc. One possible strategy would be to franchise locations. Another strategy would be to secure venture capital to finance an internal expansion by opening more company-owned shops. Dalman feels that he just doesn’t have time to investigate these options because he is spending an increasing amount of his time assisting the location managers. Lei noted that two of the location managers had exhibited a lot of skill in the management of their locations and perhaps a new position could be added to coordinate with the location managers. This would free Dalman to work on these larger issues. After reading the scenario above and your assigned readings in the textbook, paying particular attention to the section on authority, respond to the following questions: (Please number your responses 1 – 4 according to the four questions) 1. How would creating a new position between the CEO and the location managers help the business to grow? 2. Is promoting an existing manager the best option to fill this position? If not, what is an alternative source to fill the position? 3. Who within the company should make these decisions? 4. List the levels of authority (management) that Sandwich Blitz, Inc. would have if the new position is created. To help...

Words: 513 - Pages: 3

Premium Essay

Unit 4

...Unit 1 - Task 4 Assessment Criteria: P6 - describe how political, legal and social factors are impacting upon the business activities of the selected organisations and their stakeholders. M3 - analyse how political, legal and social factors have impacted on the two contrasting organisations. This task will require some research. Apply to both organisations What to include: Political – explain 2 of the following and their impact on a business activity (i.e. recruitment, transport of goods, product design, promotion of products, etc.) and 2 stakeholders: Examples can be:  VAT increase 17.5% to 20%  changes to the minimum wage  improvement in infrastructure  apprenticeship programs and other training programs  political stability  government support for different types of organisations e.g. private, voluntary, public  level and types of taxation  government grants  improving transport links  improving education and skills of the population  membership of the EU  support from organisations set up to support businesses e.g. Business Link Legal – explain 2 of the following and their impact on a business activity and 2 stakeholders: Examples can be:  Trade Description Act  Equality Act  Equal Pay Act  dishonest advertising competition law  Company Law – ensure fair and honest trading  Protection for consumers and employees ...

Words: 267 - Pages: 2