Preview

Assignment 10.1: Decision-Making

Satisfactory Essays
Open Document
Open Document
376 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Assignment 10.1: Decision-Making
Week 9 and 10
1. Decision making (Selection Structure)
2. Often used comparison operators: (pp. 199-200)

3. If statements: single-alternative, dual-alternative, and multiple-alternative. (192-198, 276-278)
a. If / End If statement
If [evaluating a condition] Then
[Some code are executed if True] End If
b. If / Else /End If statement
If [evaluating a condition] Then
[Some code are executed if True]
Else
[Other code are executed if False]
End If

c. If / ElseIf .. /End If statement (When you have more than two selections, pp. 275-278.)
If [evaluating a condition] Then
[Some code are executed]
ElseIf [evaluating second condition] Then
[Other code are executed. You may have as many ElseIf sections as you

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Homework Unit 3

    • 354 Words
    • 2 Pages

    3. Multiple alternative decision structure- Tests the value of a variable to determine which statements to execute.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The language for which the compiler has been made is named as “M#”. M# is a general-purpose programming language having the most basic functionalities in it. This language basically focuses on the mathematical calculations, which are done using arithmetic operators and a few relational operators. M# is a case sensitive language.…

    • 703 Words
    • 3 Pages
    Good Essays
  • Good Essays

    c) Then a nested IF should test if B15 is equal to the shipping option in D41, and if so, then the value in E41 should be used, otherwise the value in E42 should be used.…

    • 724 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Decision Analysis Task 1

    • 1008 Words
    • 5 Pages

    1. I recommend that the Rugged Boot assembly line be rearranged to provide a more efficient process. Based on the diagram provided by Catherine Pang showing the layout of the production line, the current line uses eight stations. I determined the efficiency by using the following formula:…

    • 1008 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    A. In order to improve the current workflow in the plant, I recommend using the work stations layout tool whether through the Excel or POM program. This will help to show a clearer picture of the work flow that is present at Shuzworld, with allotting equal times in each work station. This will enable the company to find the shortest time to be used in each station for optimal performance and production of all shoes. Decision Analysis has been established to advance theory, application, and teaching of all aspects of decision-making methods.…

    • 2384 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Lab 7 Student

    • 1242 Words
    • 7 Pages

    This lab accompanies Chapter 5 (pp. 163-183 and pp. 196-201) of Starting Out with Programming Logic & Design.…

    • 1242 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A count-controlled repetition will exit after running a certain number of times. The count is kept in a variable called an index or counter. When the index reaches a certain value (the loop bound) the loop will end.…

    • 391 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    1. Will is a high school guy who finally got the courage to ask his crush, Christine, out on a date. The night went really well, and Will felt like he was on top of the world. But when Monday came, Christine did not sit by him at lunch. Will thought, "What did I do? Did she not like the restaurant we went to?" Will has just demonstrated:…

    • 5483 Words
    • 30 Pages
    Good Essays
  • Good Essays

    Decision Making

    • 496 Words
    • 2 Pages

    Capital Intensive: A business process or an industry that requires large amounts of money and other financial resources to produce a good or service. A business is considered capital intensive based on the ratio of the capital required to the amount of labor that is required. (investopedia)…

    • 496 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Decision Analysis Task 1

    • 1166 Words
    • 3 Pages

    To improve the current workflow in the plant Shuzworld needs change the facility layout so that production is more efficient. In order to do this they need to balance the amount of time spent at each workstation so that each employee is maximizing their time. According to the information provided 48 units of work boots are required for each 8-hour shift. Each shift totals 480 minutes divided by 48 units is 10 minutes, which is the maximum amount of time each task (workstation) should take in order to meet production goals. Currently Shuzworld uses 8 workstations as follows: Task A requires 10 minutes, task B requires 6 minutes, task C requires 3 minutes, task D requires 8 minutes, task E requires 3 minutes, task F requires 4 minutes, task G requires 3 minutes, and task H requires 9 minutes. The predecessors for each task are also listed as follows: B and C follow A, D follows B and C, E and F follows D, G follows E and F, and H follows G. Based upon the previous calculation of a maximum of 10 minutes at each workstation Shuzworld should reorganize their workstations to come as close to the 10 minutes as possible while still being efficient. I found that the best way to organize the assembly line is to have 5 workstations. Workstation 1 includes task A and will take 10 minutes, workstation 2 includes tasks B and C and will take 9 minutes, workstation 3 includes task D and will take 8 minutes, workstation 4 includes tasks E, F, and G and will take 10 minutes, and workstation 5 includes task H and will take 9 minutes. This layout was determined using the assembly line balancing tool.…

    • 1166 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Decision Making

    • 477 Words
    • 2 Pages

    With freedom comes responsibility. When we first began sending messages through cyberspace, few anticipated that the digital footprint we were creating would follow us for a lifetime. Posts on Facebook that people make in junior high and high school impact hiringdecisions when they are 30.…

    • 477 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Decision Making Problem

    • 1292 Words
    • 6 Pages

    For Problems 1-3 below, submit a non-technical consulting report (approximately ½ a page for each…

    • 1292 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    str = "insert into Staff values(" & Text1.Text & ",'" & Text2.Text & "', " & Text3.Text & "," & Text4.Text & ",'" & Text5.Text & "')"…

    • 270 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    there can never be a semicolon directly before else in Pascal whereas it is mandatory in C (unless a block statement is used)…

    • 3807 Words
    • 16 Pages
    Good Essays
  • Powerful Essays

    Basic Shell Scripting

    • 33932 Words
    • 136 Pages

    Basic Control Statements 44 The if Statement 44 The test Command and Bracket Notation 46 The while Statement 48 The for Statement 50 The case statement 53 The expr Command 56 Parsing, Variable Expansion, and Quoting 59 Variable Expansion and Field Separators 60 Special Characters Explained 61 Quoting Special Characters 64 Inline Execution 66…

    • 33932 Words
    • 136 Pages
    Powerful Essays