Lab 05 - Getting to know Loops

Lab 05 - Getting to know Loops - CIS*1500 Week #6 Computer...

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

View Full Document Right Arrow Icon
CIS*1500 – Week #6 Computer Lab #5 Getting to know Loops Duration: 40 minutes Purpose: In the classroom lab we introduced loops. In the computer lab we will experiment with the constructs introduced. We will refer to slides from the classroom lab presentation. Ensure that you understand the functions and syntax of loops by asking the TA for clarification on anything you do not fully understand. Create a new project in Pelles, and perform the following tasks: Task #1 Enter the code shown on slide #10. Execute the code, and enter the values ( -5, -1, 4 ). Verify that the program behaves as it should. Task #2 Modify the code you wrote in task #1 so it appears the same as the code on slide #11. Execute the code, and enter the values ( -10, 55, 3). Verify the program's behavior. Task #3 Modify the code in task #2 so that it allows values between -5 and 5 to be inputted and it prints an appropriate message if this is not the case. Verify that using the values (-50, 50, -7, 3) and (7, 6, 5). Task #4
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 / 2

Lab 05 - Getting to know Loops - CIS*1500 Week #6 Computer...

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