ENGR13200_Sp2012_ICA06AB_Problems

ENGR13200_Sp2012_ICA06AB_Problems - ENGR 13200 Spring 2012...

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

View Full Document Right Arrow Icon
ENGR 13200 – Spring 2012 Activity 1 Class 6b Class 6b activities will be due in Class 7a In Class Activities : Completed in-class activity documents must be uploaded to your Instructor’s Blackboard ICA# Dropbox prior to the next class . All uploads must be done individually even if you worked with a partner. Partner names should appear in all documents that were worked with one or more partners. Completion of activities is part of the in-class participation grade and submissions may be subject to grading. Class6b : Upload c6b_actvity1a_ yourlogin .m , c6b_actvity1b_ yourlogin .m , c6b_factorial_cal_ yourlogin .m, c6b_series_sum_ yourlogin .m, and ENGR13200_Sp2012_ICA06AB_AnswerSheet_ yourlogin. docx . . Activity 1 - Introduction to WHILE Loops You will learn to analyze flowcharts that contain loops for situations in which the number of executions is uncertain. You will then learn to construct simple while loops from the flowcharts. Download the answer sheet and enter your responses for Activity1in the space provided. A. Consider this flowchart: 1. What happens if the user inputs 78 as the initial value of x? Track the loop using the table format provided on the answer sheet. 2. What value of x is displayed? ____________ 3. How many times does the loop operate? _______________ 4. What happens if the user inputs 33 as the initial value of x? Track the loop using the table format provided on the answer sheet. 5. What value of x is displayed? ____________ 6. How many times does the loop operate? _______________ Input x Is x more than 65? Display x Reduce x by 5. True False
Background image of page 1

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

View Full DocumentRight Arrow Icon
ENGR 13200 – Spring 2012 Activity 1 Class 6b B. Open script_header_template.m and rename it c6b_actvity1a_ yourlogin .m . Write the script that performs the logic shown in the flowchart. 1.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

ENGR13200_Sp2012_ICA06AB_Problems - ENGR 13200 Spring 2012...

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

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