Lab 01 Flow Charts and Pseudo code (1).docx

Common flowchart symbols lines arrows show the flow

Info icon This preview shows pages 1–5. Sign up to view the full content.

Common flowchart symbols: Lines (Arrows) show the flow Input symbols (parallelograms) Processing symbols (rectangles)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Start End Output symbols (parallelograms) Terminal symbols (lozenges – flattened ovals) Decision symbols (diamonds) output “What is your favorite Number?” input favNumber doubleFun = favNumber * 2 output “Double your fun is: ” + doubleFun
Image of page 2
Pseudo Code: Pseudo code is informal and fairly close to natural language. Rather than complete sentences, we tend to use very brief statements which will ultimately translate more directly to program code. Indentation is used to show groups of related statements, pay attention to it. Look carefully at the example here and be sure to understand how both the pseudo code and the flowchart express the same logic (i.e. the same program). Prompts: In every case, you have to prompt the user so they know what you need for them to input. Thus, before every input, we output the prompt msg so the user knows what we want to get from them. Always include the prompt in your pseudo code and flowcharts when you do input. Output should always be in the form of a complete sentence, not just a raw calculated value. i.e. The total calculated building costs is: $560.00. Example: start output “What is your favorite number?” input favNumber doubleFun = favNumber * 2 ouput “Double your fun is “ + doubleFun stop Lab: 1. Work with your group. Complete the lab together but each student should type and submit it separately as you will learn more that way. Insert your work for the completed lab here within this MS Word document and submit it.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

It is up to you to make the effort to get the benefit of the learning experience from the group lab for yourself. Don’t do the lab on your own. Don’t let others complete the lab for you. Most importantly, as you work through the lab with your group, make sure that you and everyone else in your group understands each part. Discuss the code and ask questions about items that are not clear.
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '17
  • Tom Wulf
  • 5%, 17%, 3 pts, 2 pts, $560.00

{[ snackBarMessage ]}

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