Lecture19-LIN10182019-TopDown_Driver_Stub.pdf - Computing I COMP.1010 Fall 2019 Lecture 19 Top-Down Design By Sirong Lin PhD University of Massachusetts

Lecture19-LIN10182019-TopDown_Driver_Stub.pdf - Computing I...

This preview shows page 1 - 11 out of 22 pages.

Computing I By: Sirong Lin, PhD University of Massachusetts Lowell COMP.1010, Fall 2019 Lecture 19: Top-Down Design
Image of page 1
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Turn in HW2 2
Image of page 2
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Upcoming Due Dates 3 Due Date Daily 15 10-18-2019 (F), 9:00pm Week 07 Practice Sun, 9:00pm Week 8 Reading MF, 9:00am Daily 16 10-23-2019 (W), 9:00pm Program 2 10-30-2019 (W), 9:00pm
Image of page 3
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Announcement CS Department Chair Visit on Monday, please come on time 4
Image of page 4
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Outline Top-down Design & Algorithm Driver, Stub 5
Image of page 5
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Top-down Design & Algorithm 6
Image of page 6
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin How to Design 7
Image of page 7
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin 8 Recipe for cooking a cake: ingredients steps 1~3 baking tool One step in program design is to write a “recipe”
Image of page 8
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Design a Program Step by Step Understand the problem Write/think an initial Algorithm recipes for computer program write steps-by-steps instructions — pseudo code (simple English, not code) Algorithm Refinements how to solve each step Implementation in C 9
Image of page 9
Work Ready Life Ready World Ready Computing I, F2019, By Dr. Sirong Lin Design a Program Step 1 Understand the problem draw a box of percent signs (*) on the screen user inputs: first number: the number of * on a line second number: the number of lines in the box output on screen: draw a box with * with two numbers 10
Image of page 10
Image of page 11

You've reached the end of your free preview.

Want to read all 22 pages?

  • Fall '15

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes