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

    Nt1310 Unit 1 Study Guide

    • 359 Words
    • 2 Pages

    5. Explain the salient features of spiral model of a software process with an illustration diagram.*…

    • 359 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    IT/210 Appendix D

    • 453 Words
    • 4 Pages

    Up to this point, you have identified the processes the program must perform, but you have not given any consideration to exactly how the processes work together to solve the problem. At this point, you must generate a description of the processing using pseudocode, a natural language description of the processing the application must perform.…

    • 453 Words
    • 4 Pages
    Powerful 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
  • 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
  • Good Essays

    Study Guide GB 310

    • 5424 Words
    • 22 Pages

    the activity of creating a detailed flow chart of process map of a work process showing its inputs, tasks, and activities, in a structured sequence…

    • 5424 Words
    • 22 Pages
    Good Essays
  • Satisfactory Essays

    Pt1420 Unit 3 Essay

    • 502 Words
    • 3 Pages

    On Thursday, I download and print all the reading assignment materials, what allow me to read the information all along the week. I read the materials assigned for this week. Through my reading I learned the two methods in order to organize the ideas before programming; flowcharting and pseudocode. Also I stalled the program “Dia” and I could work on it, I do not think that it is a good program; I think it could be more intuitive, my plan is to develop something that can help me to work with flowcharts.…

    • 502 Words
    • 3 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
  • 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

    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
  • 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
  • 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