×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

63

0

2

# IT210 - Week 6 Algorithm Verification Appedix J fin571

Marketplace > Kaplan University > fin571 > IT210 Week 6 Algorithm Verification Appedix J

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

IT210 - Week 6 Algorithm Verification Appedix J
COURSE
PROF.
TYPE
Study Guide
PAGES
2
WORDS
KARMA
50 ?

## Popular in Department

This 2 page Study Guide was uploaded by an elite notetaker on Wednesday November 11, 2015. The Study Guide belongs to fin571 at Kaplan University taught by in Fall 2015. Since its upload, it has received 63 views.

×

## Reviews for IT210 - Week 6 Algorithm Verification Appedix J

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 11/11/15
o What will be printed if the input is 0? You fail. How did you do? o What will be printed if the input is 100? How did you do? o What will be printed is the input is 51? Your grade is 51. You did OK. How did you do? o What will be printed if the user enters "Wingding"?  The program will crash instantly because it is expecting an integer value,  and a string value will cause the program to crash. o Is this design robust? If so, explain why. If not, explain what you can do to  make it robust. No, there is no default condition for Scores >= 100, or scores < 0. In addition,  100 is a valid score. The following should, therefore, be added: if (0 <= X and X <= 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did OK" else if (70 <= X and X < 85) output "your grade is" X output "you did well" else if (85 <= X and X < 100) output "your grade is" X output "you did great" else  output "Invalid Score" end if  Alternative: if (X >= 0 and X <= 49) output "you fail" else if (X < 70) output "your grade is" X output "you did OK" else if (X < 85) output "your grade is" X output "you did well" else if (X < 100) output "your grade is" X output "you did great" else  output "Invalid Score" end if  o How many levels of nesting are there in this design?  There is no nesting in the problem. Nesting is defined as a control structure  within a control structure. This is just one multiple selection statement. o Give a set of values that will test the normal operation of this program  segment.  Defend your choices. 1. 0 and 49 will test the boundary conditions of the first condition. 2. 50 and 69 will test the boundary conditions of the second condition. 3. 70 and 84 will test the boundary conditions of the third condition. 4. 85 and 100 will test the boundary conditions of the third condition (which  will reveal a mistake in that 100 is a valid score). o Give a set of test values that will cause each of the branches to be executed. 1. 8 will test the first selection. 2. 58 will test the second selection. 3. 83 will test the second selection. 4. 95 will test the fourth selection. o Give a set of test values that test the abnormal operation of this program  segment. 1. ­32 will test the invalid input below 0. 2. 220 will test the invalid input above 100.

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Jim McGreen Ohio University

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Amaris Trozzo George Washington University

#### "I made \$350 in just two days after posting my first study guide."

Jim McGreen Ohio University

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com