Preview

Programming

Good Essays
Open Document
Open Document
3038 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Programming
Programming

Programming Logic and Design, 6th Edition

Chapter 3

Exercises

1. In Figure 3-10 the process of buying and planting flowers in the spring was shown using the same structures as the generic example in Figure 3-9. Describe some other process with which you are familiar using exactly the same logic.

Answer: Student answers will vary widely. They should come up with processes that fit the generic logic shown in Figure 3-9. Some examples could include: making a dentist appointment or registering for a class. Pseudocode for each follows.

if it’s time for your annual teeth cleaning call the dentist for an appointment tomorrow while the day and time you want isn’t available if another time the same day is available make the appointment at the new time on the same day else pick a new day and time endif endwhile write appointment on your calendar endif

if you are taking a class this semester then register for a class while the class is full if another section is available enroll for the available section else select a new class endif endwhile print schedule endif

2. Each of the flowchart segments in Figure 3-35 is unstructured. Redraw each flowchart segment so that it does the same thing but is structured.

Answer:

a. [pic]

b. [pic]

c. [pic]

d. [pic]

e. [pic]

3. Write pseudocode for each example (a through e) in Exercise 2 making sure your pseudocode is structured but accomplishes the same tasks as the flowchart segment.

Answer:

a. do A while B is true do C do A endwhile

b. do D if E is true then do H do I else do F if G is true then do I endif endif

c. do k if L is true then do P while Q is true do P endwhile do R else

You May Also Find These Documents Helpful

  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    Use MS Visio to create a flowchart. Paste the flowchart here, or attach it as a separate document. Use the same valid variable names you used in Step 1.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Sm C102 Quiz #2

    • 650 Words
    • 3 Pages

    Correct Question: A process flowchart uses symbols to represent which of the following? Your Answer: Flows of material or customers…

    • 650 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    CIS115 W2 Exercise

    • 757 Words
    • 10 Pages

    5) Use MS Visio to create a flowchart. Paste the flowchart here or attach it as a separate document. Use the same valid variable names you used in Step 1.…

    • 757 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Coding

    • 335 Words
    • 2 Pages

    of any impingements. The camera was then removed from the subacromial space. The area was then infiltrated with Marcaine. The posterior portal was then closed with absorbable sutures and Steri-Strips, and a Mepore dressing was placed on it. The arm was then placed in a sling; the patient awakened and was placed on her hospital bed and taken to the recovery room in good…

    • 335 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Assignment 1

    • 1774 Words
    • 19 Pages

    Aims for Assignments 1 and 2: Through these question answer based assignments, you will learn the process of…

    • 1774 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Flowchart In Health Care

    • 1598 Words
    • 7 Pages

    Flowchart: A graphic tool that uses standard symbols to visually display detailed information, including time and distance, of the sequential flow of work of an individual or a product as it progresses through a process.…

    • 1598 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Savage

    • 435 Words
    • 2 Pages

    7. What are the main purposes of a flow chart? Why might creating flow charts of the major processes for which you are responsible be a good idea when you start a new job?…

    • 435 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Excersise 1

    • 492 Words
    • 2 Pages

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

    • 492 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Circuit Board Fabricators Inc. uses a job shop process flow structure. The job shop process flow structure is a production of small batches of a large number of different products.The job shop process is also a flexible operation that has several activities through which work can pass. In a job shop, it is not necessary for all activities to be performed on all products, and their sequence may be different for different products.CBF, Inc. bases its board fabrication process on the average job size or on its typical order.…

    • 655 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Intro to Programming

    • 390 Words
    • 2 Pages

    Procedure Programming and Object Oriented Programming both uses linear sequence of commands, yet Object Oriented Programming have developed a more complex and abstract approach (Stetson, 2004).…

    • 390 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CHP 3 HW

    • 322 Words
    • 2 Pages

    Compare the guidelines for preparing flowcharts and DFDs. What general design principles and limitations are common to both documentation techniques?…

    • 322 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    homework

    • 376 Words
    • 2 Pages

    TCO 1) Name two reasons why it is important to have a working knowledge of DFDs and flowcharting. (Points TCO 1) Name two reasons why it is…

    • 376 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Critical Path

    • 1605 Words
    • 7 Pages

    4. Draw a project network with nodes and arcs depicting the activities and immediate predecessors listed in steps 1 and 2. Please see problem 4, 7, and 8 below for an example of a network with arcs.…

    • 1605 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Study Guide GB 310

    • 5424 Words
    • 22 Pages

    is a graphic description of a process, showing the sequence of process tasks, which is developed for a specific purpose and from a selected viewpoint…

    • 5424 Words
    • 22 Pages
    Good Essays
  • Good Essays

    Programming Solution

    • 541 Words
    • 3 Pages

    Object-oriented programming (OOP) and procedural programming are two of the programs used for writing software and moving objects. Procedural programming is a method of writing software. It is a programming practice centered on the procedures or actions that take place in a program. Object-oriented programming centers on the object. Object-oriented programming creates objects from abstract data types that encapsulate data and functions together (Gaddis 2010). There are many similarities and differences in terms of procedural programming modules and objects in relation to; reusability, hiding code, and the passing of data within the program itself.…

    • 541 Words
    • 3 Pages
    Good Essays

Related Topics