Lab 10 - Lab Ten [30 points] In this lab you must write one

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab Ten [30 points] In this lab you must write one program/algorithm. Please submit a zip file of the project folder when you turn in your assignment via KS Online. Try to work through the lab on your own, but if you get stuck, ask a neighbor or the instructor for help. Just be sure that you understand everything that you turn in. Input & Output In this lab you must write a program that asks the user for a list of numbers, and then prints out how many of the values are positive, negative, and zero. Another example of the output is: The memory addresses printed to the screen by your program will be different than those shown above. The Program Your program must include 2 functions: (The address of npos is: 3221223940) Please enter 5 numbers: 3 -1 11 0 15 (The value of pos is: 3221223940) Positives: 3, negatives: 1, zeros: 1 (The address of npos is: 3221217240) Please enter 5 numbers: -4 0 -1 3 0 (The value of pos is: 3221217240) Positives: 1, negatives: 2, zeros: 2
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Lab 10 - Lab Ten [30 points] In this lab you must write one

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online