# Unit 3

Submitted By cgarcia87
Words 1394
Pages 6
Lab 3: Input, Processing, and Output
This lab accompanies Chapter 2 (pp. 56-68) of Starting Out with Programming Logic & Design.
Chris Garcia
Name: ___________________________

Lab 3.1 – Pseudocode

This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following program prior to completing the lab.

Write a program that will take in basic information from a student, including their name and how many credits they have taken in Network Systems Administration program. The program will then calculate how many credits are needed to graduate. Display should include the student name and the number of credits left to graduate. This should be based off a 90 credit program, where some courses are half credits.

Step 1: This program is most easily solved using just a few variables. Identify potential problems with the following variables declared in the pseudocode. Assume that the college has the ability to offer half credits. (Reference: Variable Names, page 39-40).

|Variable Name |Problem (Yes or No) |If Yes, what’s wrong? |
|Declare Real creditsTaken |n | |
|Declare Int creditsLeft |y | |
|Declare Real studentName |y | |
|Constant Real credits Needed = 90 |y | |

Step 2: What is wrong with the following calculation? (Reference: Variable Assignment and Calculations, page 43).

Set creditsLeft = creditsTaken –...

### Similar Documents

Free Essay

#### Pharmacology Unit 3

...Determine the correct metric length: 1. 15 cm = ¬¬¬¬¬¬¬¬¬____150_____mm 2. 1800 cm = ¬¬¬¬¬¬¬¬¬_18________m 3. 0.4 m = ¬¬¬¬¬¬¬¬¬_______40__ cm Determine the correct metric volume: 4. 1300 mL = ¬¬¬¬¬¬¬¬¬_____1.3____ L 5. 8.01 L = ¬¬¬¬¬¬¬¬¬_______8010__ mL Determine the correct metric weight : 6. 0.6 mg = ¬¬¬¬¬¬¬¬¬___600______ mcg 7. 40 mg = ¬¬¬¬¬¬¬¬¬_______0.04__ g 8. 0.05 g = ¬¬¬¬¬¬¬¬¬___50______ mg 9. 320 g = ¬¬¬¬¬¬¬¬¬_____0.32____ kg 10. 100 mg = ¬¬¬¬¬¬¬¬¬_____0.1____ g 11. 7 g = ¬¬¬¬¬¬¬¬¬______7000___ mg 12. 1200 mg = ¬¬¬¬¬¬¬¬¬_1.2________ g Determine the correct household measurement: 13. 3 tbs = ______9____ tsp 14. 2 pt = _____32____ oz 15. 7 tsp = ¬¬¬¬¬¬¬¬¬____2.3_____ tbsp PART 2: PRACTICAL APPLICATIONS Each question is worth 3 points for a total of 15 points. 1. A medication comes in 0.5 g or 500 mg strengths. Explain which medication is weaker (smaller strength). Neither one they are the same strength. 2. An incision measured 55 mm. How many centimeters is this? It would be 5.5 centimeters 3. A patient drank 2250 mL of water. How many liters is this? 2.25 L 4. A syringe contains 0.5 mL of sterile water. How many cubic centimeters does the syringe contain? 0.5 cc 5. The directions on a cough syrup are “take two tablespoons.” How many teaspoons are equivalent to two tablespoons? 4tsps PART 3: PRACTICAL APPLICATIONS What is the difference between a prescription and a medication order? (5 points) A...

Words: 392 - Pages: 2

Free Essay

#### Unit 5 Video Summary 3

...among AMD and Intel processors are the LGA 775 and 754 and ZIF locks hold the CPU into socket. Fans that are placed around or on the CPU are used to draw heat away from it and out of the case. * System bus carries info into and out of the CPU; controls the functioning speed of the computer * Frontside (uses 64 bit) bus is when the system bus enters the CPU * Controllers manage communications between motherboard, basic functions and other components * ALU – Arithmetic Logic Unit * ALU performs multiple calculations. These gave earlier Pentiums their multiprocessing capabilities * Internal bus is used to provide communication between the ALU and the Controller and uses a 32-bit wide data path * Backside is used to provide communication between the ALU and the Cache * Multiprocessors are two CPUs on one motherboard * Cache uses SRAM(static RAM) and is much faster and holds memory without being refreshed unlike DRAM(dynamic RAM) which must be refreshed * 3 types of cache: * L1 is on the processor chip * L2 is inside the processor housing, not on chip * L3 also in processor housing, further away from chip * Optimal temperature is around 90-110 F Almost all the information from this video I understood and noticed some things that I had no knowledge about and can be found by one looking at the motherboard. The buses are used to connect all these components to one another on the board. I also learned the difference between......

Words: 379 - Pages: 2

Free Essay

#### Unit 3 Assignment 1 Video Review

...Unit 3 Assignment 1: Video review This video runs over the three major components of a computer the CPU, RAM, I/O devices. The video then goes over a handful of different ways that computers can and are linked together but how no matter how they are the overall aspect is the same. There is always a CPU, RAM, and I/O device. It then runs over some smaller computers such as Hand-Held and Embedded systems in which the goal is to utilize as little power as possible. It Runs over Mainframes and how a lot of companies are moving away from them because they can use a cluster to achieve the same means for less money. Overall this video runs over the basic make up of PCs and the major components that are used in a functioning PC. • Client/Workstation (PC) • Server (responds to request from Network) • Hand-Held (Phone, Music Player) • Embedded system (toaster, car) • Mainframe (a big server) • Supercomputer (a many-processor system) • Cluster (group of computers linked over a network) RAM (random access Memory) Addressable by the CPU Volatile Faster than storage Code and data of running programs CPU (Central processing Unit) Executes instructions Instructions (a sequence of bits understood by the processor to signal a certain action) Copy bytes Arithmetic Bit logic And, or, exclusive or Jumps (moves from on instruction to another) Register (a small memory area in a processor) Status General Purpose ISA (Instruction Set......

Words: 307 - Pages: 2

#### Unit 3

...UNIT 3 P1- Identify the difference between start-up and operating costs, variable and fixed costs. Introduction I have started this unit talking amongst my classmates discussing the differences between theses costs start-up, operating, variable and fixed costs. In this unit I will be explaining the differences between them. Define start-up costs, operating costs, fixed costs and variable costs Start-up costs- it means if the start-up costs are incurred before a business can start to operate, such as the deposit on rented property, and the purchase of equipment and initial stock. Operating costs- refers to the money that is spent when the business is running, it is the everyday costs. Fixed costs- costs that will not charge regardless of how much the business sells. Fixed costs are costs that do not vary depending on production or sales levels. Variable costs- these costs are linked to the number of items sold. A cost that is directly proportional to the volume of output produced. When production is zero, the variable cost is equal to zero. Explain the difference start-up and operating costs provide examples of each Start up costs are the things you are going to need to get the business going i.e. premises, furniture, IT, registration with local authorities, stock / materials etc. These are mainly one off payments that do not reoccur. Operation costs are the day to day costs of running the business usually calculated in terms of monthly or......

Words: 381 - Pages: 2

Free Essay

#### Unit 3

...NT 1430 UNIT 3 Bash Scripts: * Script –commands written to a file. * Bash- a command processor a Unix shell Bash History: It was written by a man called Brian Fox. It was part of the GNU Project. The first release was 1989. It was a improvement and replacement to something called the Borne shell The Borne Shell: The creator was Stephen Borne. His employer was AT&T Labs. It was a Unix Shell he developed for Unix 7. Like everything it was replacing a older program called Thompson shell. The Borne Again Shell: Bash Borne Again Shell A free replacement to Borne shell Commands in Linux Mkdir- Make Directory rmdir- remove directory cd- Change directory Mv- Change name move directory Pwd – print working directory chmode-Change file access Permissions Commands are what tell Linux what to do. Chapter 7: 1. It waits for the process to be finished. You can give it multiple commands it will execute them in order. 3.Process Identification Number, The numbers tell you what commands are running in the background. Type ps 4. a. \$ls section* b. \$ls section[1-3] \$ ls section? c. \$ls I* d.\$ls *[13] 8. a. \$ grep \\$ID < * .c > id_list b. \$ grep –I suzi < addresses c. \$ grep –il memo *.txt > memoranda_files D. \$ file /usr/bin*|grep “Again shell script” | sort –r Chapter 9 1. You get permission denied, Not executable search though path 2. With ...

Words: 363 - Pages: 2

Free Essay

#### Unit 3

...Thomas Whittemore Unit 3 Post University 1. How can Unions secure economic gains? Explain the ramifications Unions help economic growth, and they do not hinder them. Unions are out fighting for workers and getting them high pay and better pension benefits. This all translates into money that can be spent into a market economy. The more people buy products, the stronger and more powerful the economy becomes for everybody. To clarify - real unions are as important just as police, teachers, doctors etc. are necessary. Unfortunately in the US very few or none exist. Working men and woman who have fought and sacrificed for this country are the ones that have purchased true freedom and deserve to have voice 2. Briefly explain why organized labor was opposed to NAFTA. There has been significant opposition to NAFTA from organized labor. Unionists say NAFTA harms workers both here and in Mexico by taking U.S. jobs away and intensifying the exploitation of Mexican workers. Nearly half a million Mexicans already work in "maquiladoras" where over 1,500 mostly U.S.-owned assembly plants operate free of taxes and tariffs. Only about 10 percent are organized, compared to 25 percent of Mexican workers overall. Average pay runs from 50 cents to a dollar an hour. NAFTA will only intensify this exploitation as it lures corporations to set up runaway shops. Yet much of the opposition to NAFTA has been drawn on narrow lines and lets the capitalist system off the......

Words: 1521 - Pages: 7

#### Unit 3

...Kaplan University Tammy Landry Unit 3 Assignment Zelma M. Mitchell v. Lovington Good Samaritan Center, Inc. 555 P.2d 696 New Mexico Supreme Court (1976) CASE NAME: Zelma M. Mitchell v. Lovington Good Samaritan Center, Inc., 555 P.2d 696 New Mexico Supreme Court (1976) FACTS: Mrs. Zelma Mitchell started working at the Lovington Good Samaritan Center, Inc. as a nurse’s aide in 1972. Approximately one year on the job Mitchell began serving as a relief medications nurse two (2) days a week. Mitchell was terminated for misconduct. Mitchell’s testimony stated that she punctually arrived to work at 3:00 p.m. She stated that the Director of the Center questioned as to why she had filled out her time card. Mitchell responded that she would be working eight (8) hours for the day as long as she did not “break a leg or die.” The Director responded “Well, I’m not so sure about that.” Mitchell became defensive and made comments where the Director of Nursing overheard. This causing words to be exchanged between the three (3) parties in an open area where others could hear. The issue was taken for further discussion behind closed doors. The Director of the Center had to resolve the issue by putting Mitchell on two (2) week probation on the grounds that Mitchell had used the phrase to describe her employers “a birdbrain against another birdbrain” and stating “she can’t work with us”. Immediately, Mitchell......

Words: 687 - Pages: 3

#### Unit 3

...Ruby Blanco AC503 Kaplan University Unit 3: Homework Assignment 5-29 1. Valuation or Allocation 2. Rights and Obligations 3. Completeness 4. Presentation and Disclosures 5. Rights and Obligations 6. Valuation or Allocation 7. Completeness 8. Rights and Obligations 9. Valuation or Allocation 10. Valuation or Allocation 11. Rights and Obligations 6-21 A. Inquiry oral evidence is the weakest form of evidence and if given by the client should typically be followed up and verified by better evidence. Inquiry of outside parties can be more convincing. Evidence from inquiry should be based on how knowledgeable the parties are about the business and procedure. Often the client will tell you what they think is happening but they might not have verified it lately and may be relying on what someone else has told them. So, the best inquiry is from the person actually doing the activity, not someone who thinks it should be done. Inquiry has very low validity and is a good starting place to decide what to test and perhaps the areas for attention but is not persuasive. B. An audit may include computation of various balance sheet and operating ratios for comparison to prior years and industry averages. Discuss the validity and limitations of ratio analysis in an audit. Ratio analysis and analytical review is helpful to get the big picture and find areas that do not meet expectations and therefore are higher risk. The......

Words: 1320 - Pages: 6

Free Essay

#### Unit 3

...Class NT2580 Introduction to Information Security Unit 3 Discussion 1 1. For this company I would say that the 12 computers that they have should have passwords on all the computers. The reason why I say this is because they only people who should have access to these computers are they people who have the password or know the password. That is why this is the best protection for this construction company. This construction company will have a role-based access controls. This means with the uses that they have on site will have special groups based on the access they require for the company. 2. For this company since they all contact one another with smart phones and have 12 computers each and every one of these users should have an identification number as in a pin for each and every one of them that way they can all be able to be identified. On this company they are required to have a rule-based access controls. The reason why I require this for this company is cause each user is going to have access to a phone and computer which requires each and every one of them to have a pin in order for them to access their devices. That is why this access control is so important on these devices cause if they don’t know there pin then they will not be able to gain access. 3. For this company I would recommend that they use fingerprint technology for all these servers and employes. The reason why I say this is because for one thing there is too many employees to keep......

Words: 624 - Pages: 3

Free Essay

#### Unit 3

...David Sahler 7/18/2013 Unit 3. Exercise 1 specifications definitions Application- a system, the transmission method of which is supported by telecommunications cabling, such as 100Base-TX Ethernet, or digital voice. Unshielded Twisted-Pair - (UTP) a popular type of cable that consists of two unshielded wires twisted around each other. Shielded Twisted-Pair- Twisted pair cabling is a type of wiring in which two conductors (the forward and return conductors of a single circuit) are twisted Fiber-Optic Cable- a cable made of optical fibers that can transmit large amounts of information at the speed of light. Dark Fiber- Dark fiber or unlit fiber (or fiber) is unused optical fibers, available for use in fiber-optic communications Coaxial Cable- a transmission line for high-frequency signals Plenum- A space completely filled with matter Riser- a space for indoor cables that allow cables to pass between floors, normally a vertical shaft or space Ripcord- a length of string built into optical fiber cables that is pulled to split the outer jacket of the cable without using a blade. Core- the central part of a single optical fiber in which the light signal is transmitted. Attenuation- A general term indicating a decrease in power from one point to another Noise- In a cable or circuit, any extraneous signal that interferes with the desired signal normally present in or passing through the system Headroom- the number of decibels by which a system exceeds the minimum......

Words: 370 - Pages: 2

#### Unit 3

...UNIT 3 INDIVIDUAL PROJECT MKTG205 – Principles of Marketing by Kendra M Hutchins AIU Online October 21 2012 Going into business is good only if you sell your product. In order to sell your product, you have to make your product available to consumers. With making your product available, you need a distribution plan established. There are different channel levels and organizations. You also have to analyze your target market's needs and decide which channel members you will use. There are many characteristics you will have to look at before you choose a channel organization. Either choice will be good, as long as management decides on what is best for the company. First, our coffee company has to set up its distribution channels. Management has to look at direct versus and indirect distribution. Direct distribution is defined as a, “model used by organizations to move products from production to buyer without the use of wholesalers and retailers. By eliminating the number of parties involved in the distribution process, significant savings can be realized. An organization using direct distribution must sell and distribute that product using their own warehouses and sales staff.” ( www.businessdictionary.com) Direct is a good option for our new coffee company because we can lower or cost of distribution. We will need to keep our cost under our budget. Indirect distribution on the other hand is when, “a chain of intermediaries through which a product......

Words: 931 - Pages: 4

#### Unit 3

...Introduction: Whilst completing this assignment I am hoping to learn about ten different pieces of legislation in detail and also be able to link all ten to different health and social care settings. I am also hoping to successfully identify the policies that accompany the individual pieces of legislation and then further explain how these pieces of legislation and policies allow individuals to feel safe and secure within a setting and help to protect the health, safety and security of service users and employees within the settings. I am hoping the further my knowledge of how legislation, policies and procedures are used within health and social care. Describe how health and safety legislation, policies and procedures promote the safety of individuals in a health or social care setting. Health and Safety at Work Act (HASAWA) 1974 The Health and Safety at Work act is a primary piece of legislation that provides the legal structure to promote high standards of care in health and social care settings. The aim of the Health and Safety at Work act is to protect employees, service users and the public from potentially hazardous activities, objects and surroundings. The Health and Safety at Work Act states that employers are to provide a safe environment, personal protective equipment and training for employees regarding health and safety in order to provide the best quality of care and the highest level of safety. Employers must provide the suitable......

Words: 5025 - Pages: 21

Free Essay

#### Unit 5 Assignment 1: Video Summary 3 Cpus Nt1110

...Fredrick Donaldson Nov.5, 2014 NT1110 Unit 5 Assignment 1 Video Summary 3 CPUs In today’s market there are 2 main manufacturers of CPUs: Intel and AMD. There are also some smaller competitors that manufacture CPUs, but they tend to come and go. The way a CPU is organized varies, but here are the basics: The motherboard system bus carries information into and out of the CPU. When the system bus enters the CPU, it’s called a Front side bus. The Front side bus usually uses a 64-bit wide data path. On the side of the CPU you will find a controller. A controller manages the basic functions of the CPU, and controls communication between the motherboard and other components within the CPU. These other components includes one or more ALUs and internal cache. An ALU (Arithmetic Logic Unit), is responsible for solving complex calculations. Having multiple ALUs in a single processor is what gave the early Pentiums their multi-processing capabilities. Communication between the controllers and the ALU uses a 32-bit wide internal data bus. The bus system that supports communication between the cache, the ALU, and the controllers is referred to as the backside bus. The most important thing a person needs to know about a processor is the speed at which it processes information; (CPU speed). There are several ways to gauge CPU speeds. This may sound like an advantage, but oftentimes, these multiple ways are misleading. The speeds differ inside and outside the processor. Internally...

Words: 784 - Pages: 4

#### Unit 3

...Marketing Techniques Describe the marketing concepts used by Apple and Tesco. Marketing definitions: • Marketing is the social process by which individual’s and groups obtain what they need and want through creating and exchanging products and value with others (Kotler) • Marketing is the management process that identifies, anticipates and satisfies customer requirements profitability ( The chartered institute of marketing ) • The right product, in the right place, at the right time, at the right price (Adcock et al). Marketing Orientation: Product concept- This is when a company or an organisation for e.g. Apple improve there product such as the iPhone by adding new features to it so it’s better than the last phone. This is because it maintains the interest of existing customers and also attracts new customers. Selling concept- This is when a company or an organisation persuades customers into buying products through aggressive selling for e.g. putting on special offers. Production concept- This is when a company or an organisation sell on selling the product as cheap as possible. This is because it attracts more customers and by selling the product cheap as possible they use cheap materials to increase profit margins. Marketing concept- This is when a company or an organisation focuses on the customers where the business looks at all aspects of the business to insure that it has the customers at the heart of all its decisions making...

Words: 3146 - Pages: 13