CSC1350Lab03.pdf - Laboratory Assignment № 3 Wyatt Clements CSC 1350 Louisiana State University Using Decision Statements Learning Objectives 1 Using

# CSC1350Lab03.pdf - Laboratory Assignment № 3 Wyatt...

• Homework Help
• drive_throwaway
• 3

This preview shows page 1 - 2 out of 3 pages.

Assignment № 3 Page 1 Laboratory Assignment № 3 Wyatt Clements, CSC 1350, Louisiana State University 09/13/2017 Using Decision Statements Learning Objectives 1. Using Nested-If Statements and Keeping Common Code out of Them 2. Using a Counter Variable for the Number of Comparisons 3. Building a Complex String Incrementally, Using Concatenation In this week’s lab, you will write an interactive program that uses decision statements. A decision statement is a control structure that allows a program to condition the execution of a code segment on a logical expression. When using decision statements, avoid redundant test cases. A good programming habit, especially when writing large programs or ones with challenging control structures, is to program incrementally. Definition 1. The statistical range , denoted R , is an order statistic that gives the difference between the largest and smallest values of a sample. More formally, given order statistics Y 1 = min j X j ,Y 2 ,...,Y N 1 ,Y N = max j X j , the range of the random sample is defined by R = Y N Y 1 The RangeOfThreeCalculator Program

#### You've reached the end of your free preview.

Want to read all 3 pages?

• Spring '08
• Blanks

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern