Preview

Excersise 1

Satisfactory Essays
Open Document
Open Document
492 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Excersise 1
Week 1 Activity—Pseudocode and Visual Basic
-------------------------------------------------
TCO 1—Given a simple business problem, design and desk-check a solution that is expressed in terms of pseudocode, flowchart, and/or input-process-output (IPO) diagrams.
-------------------------------------------------

Assignment This activity will assist you in the understanding of how output should appear after statements are executed (results) and how to write proper pseudocode, as well as the relationship between pseudocode, flowcharts, and programming language code. 1. Show the result of each pseudocode program. 2. Also rewrite the pseudocode statements or flowchart using Assignment statements.
Rubric
When completed, compile the following documents together neatly in order. 1) This instruction sheet first 2) Your answer sheet second
Point distribution for this activity: Activity | Document | Points possible | Points received | Problem #1 | 6 | | Problem #2 | 6 | | Problem #3 | 8 | | Total Points | 20 | |

Example

The variable A starts with value 5.
Add 1 to A
Display the value of A on the screen.

Example Output
-------------------------------------------------

------------------------------------------------- 6
-------------------------------------------------

Example Pseudocode
-------------------------------------------------

------------------------------------------------- Let A = 1
-------------------------------------------------
Let A = A + 1
-------------------------------------------------
Output A
-------------------------------------------------

Example flowchart (use MS Visio and paste flowchart here or submit in separate file)

Problem #1

The variable X starts with the value 0. The variable Y starts with the value 5. Add 1 to X. Add 1 to Y. Add X and Y, and store the result in Y. Display the value in Y on the screen.

You May Also Find These Documents Helpful

  • Good Essays

    Exercise

    • 562 Words
    • 2 Pages

    1. Working without taking a break. We try to get as much work done as we can in an hour.…

    • 562 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Exercise

    • 1356 Words
    • 6 Pages

    The main aim of the practical was to assess, what affects did light exercise have on the systolic and diastolic blood pressure, heart and respiration rate, tidal volume, minute volume and percentage of gas. The readings were taken before exercise, during exercise and after exercise. Blood pressure is defined as the amount of pressure exerted on the vessels walls, during blood flow. Blood pressure can be measured using a sphygmomanometer. The upper value indicates the systolic pressure; this is the highest level of pressure obtained. This is usually 120mm Hg in healthy adult. The diastolic blood pressure is the pressure achieved before the aortic valves reopen, which is usually between 70- 80mm (Barbara, J.C. 2005). The heart rate is the number of beats that is pumped by the heart per minute. It’s measured by taking the pulse rate. Respiratory rate is the number of breath exhaled and inhaled in a single breath. Respiratory rate can be measured simply by observing the person’s chest and stomach rise and fall. It is usually measured in breath per minute. Tidal volume is the amount of air inhaled or exhaled in a single breath. In an average human, the tidal volume is about 0.5litres, while the lungs can hold up to ten times more than this. Minute volume, is the amount of air or fluid moved per minute.…

    • 1356 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Exercise Week 3

    • 550 Words
    • 2 Pages

    1. A shoe manufacturer’s data show that the distribution of shoe size is normal with a mean of 11inches and SD 1.5 inches.…

    • 550 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Through research, I have discovered that Jade, a person of white ethnicity, prefers to play volleyball while Caralyne, a girl of Asian descent prefers to participate in soccer. However, Presley, a person of Indian descent, prefers to run. This supports my hypothesis that cultural background does affect what sports/physical activity people like to take part in.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    This exercise will cover the steps used to create a solution. You will use variable lists, IPO charts, pseudocode, flowcharts, and desk-checking.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Exercise Science

    • 347 Words
    • 2 Pages

    I chose to interview Diane Bischoff, a health education consultant for the Peoria Health Department. Diane has been working for the health department for 10 years and loves what she does.…

    • 347 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    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.…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Step 1: Examine the following algorithm as a base for how the program should flow. (Reference: Designing a Program, page 31).…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Exercise 2 Activity 1

    • 925 Words
    • 4 Pages

    Exercise 2: Skeletal Muscle Physiology: Activity 1: The Muscle Twitch and the Latent Period Lab Report Pre-lab Quiz Results You scored 20% by answering 1 out of 5 questions correctly. 1. Skeletal muscles are connected to bones by Your answer : c. ligaments. Correct answer: b. tendons. 2. Skeletal muscles are composed of hundreds to thousands of individual cells called Your answer : b. myofibrils. Correct answer: c. fibers. 3. The term motor unit refers to Your answer : b. all of the activated muscle fibers within one skeletal muscle. Correct answer: c. one motor neuron and all of the skeletal muscle fibers it innervates. 4. The motor neuron and muscle fiber intersect at what is called You correctly answered: d. the neuromuscular junction. 5. A twitch is Your answer : c. multiple contractile responses to a series of action potentials. Correct answer: a. one contractile response to a single action potential.…

    • 925 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Exercise Science

    • 562 Words
    • 3 Pages

    Have you ever had wanted to help someone as well as keep yourself in a positive lifestyle? If you answered yes to this question than Exercise Science is probably the correct major for you. I know that searching for the right major that fits you is a very difficult and time consuming aspect of college, however it is one of the most important aspects of college. Your whole entire future is based on your major in college. It starts the foundation of your career. With an Exercise Science degree, you would be able to choose from a very wide variety of careers to have, from being an athletic trainer or physical therapist, to a personal trainer or strength and Conditioning Coach. A lot of different course work is required for this major.…

    • 562 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    What Is Pseudocode?

    • 413 Words
    • 2 Pages

    Pseudocode consists of short, English phrases used to explain specific tasks within a program's algorithm. Pseudocode should not include keywords in any specific computer languages. It should be written as a list of consecutive phrases.…

    • 413 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Band Theory of Solids

    • 5192 Words
    • 21 Pages

    “A computer is a high-speed electronic device which follows instructions and is capable of performing arithmetic and logic operations.”…

    • 5192 Words
    • 21 Pages
    Good Essays
  • Good Essays

    Excercise 21

    • 419 Words
    • 2 Pages

    According to the U,S. Department of Health and Human Services (USDHHS) and the Centers for Disease Control and Prevention (CDC), there has been a dramatic increase in obesity in the United States over the past 20 years. Obesity epidemic has affected every part of the world. When speaking about United States, more than 72 million adults are obese and there is not a single state that has an obesity rate less than 15 % (CDC Vitalsigns 2010). Among all Americans Obesity has been directly linked to hypertension, diabetes, cancer, depression and many other health problems. Each year, approximately 400.000 deaths result from obesity and its complications and costs the national economy nearly $122.9 billion annually (Menifield 2008). In addition, as of 2004, the proportion of obese adults in the U,S. reached 32% of the total population. Among adolescents, obesity has increased to 17.1% of the population between the 1999-2004 periods (Menifield 2008). This increase in prevalence has made obesity a threat to public health in United States. There are various reasons of obesity such as behavior, environment and genetic factors. One of the causes of obesity is energy imbalance. This means eating too many calories compared to physical activity. As we know that, nowadays people spend more time watching T.V and playing video games. Moreover food portion size has also increased not only at home but also in many restaurants. In addition, environment and behavior play a large role causing people to be overweight. People make decision base on their culture, values and beliefs. For example, in some culture it is not important for women to exercise or women are not allowed to go for a walk. Many community lack sidewalks, parks and public activity area and that may influence their activity level. Science indicates that genetics shows a role in obesity. Genes can directly cause obesity in disorders such as Bardet-Biedl syndrome and Prader-Willi…

    • 419 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Booth multiplication

    • 430 Words
    • 2 Pages

    i.e., 0010 -- From 0 to 0 no change, 0 to 1 one change, 1 to 0 another change ,so…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    global warming

    • 2464 Words
    • 10 Pages

    INSY 2303 Exam 3 Review Chapter 9 Dot Coms Offshoring Outsourcing Database Administrator Computer Engineer Technical Writer Network Specialist/Administrator VAR Chapter 10 Exception Report Summary Report Ad Hoc Report Transaction Processing Decision Support System Batch Processing vs. OLTP Expert System Neural Network PERT WBS Gantt Chart SDLC/Phases of the SDLC order of phases main purpose/activities in each phase main deliverable from each phase Centralized vs Distributed Processing Unit Testing Integration Testing System Testing Chapter 11 Database Database Models Hierarchical Network Multi-dimensional Relational O-O Object-Relational DBMS Data Warehouse Data Mining Cardinality XML Normalization Primary Key Foreign Key SQL create database/table add, modify, delete data retrieve, join data Chapter 12 High-Level vs. Low-Level Languages 1st, 2nd, 3rd, 4th, and 5th Generation Languages Problem Statement Algorithm Variable vs. Constant GoTo vs. GoSub Syntax, Run-Time, and Logic Errors Pseudocode/Structured English Flowchart Programming Control Structures…

    • 2464 Words
    • 10 Pages
    Satisfactory Essays