OtherPapers.com - Other Term Papers and Free Essays
Search

Algorithm Verification

Essay by   •  August 26, 2011  •  Study Guide  •  255 Words (2 Pages)  •  1,705 Views

Essay Preview: Algorithm Verification

Report this essay
Page 1 of 2

CheckPoint: Algorithm Verification

Answer the following questions about the information in Appendix J:

What will be printed if the input is 0? You Fail

What will be printed if the input is 100? Your Grade is (X), You Did Great

What will be printed if the input is 51? Your Grade is (X), You Did OK

What will be printed if the user enters "Wingding"? How did you do?

Is this design robust? If so, explain why. If not, explain what you can do to make it robust. I do not believe it is robust because it does not give a command in the event that a user does not input an integer. Also, it does not define what X is mean to be, for instance Declare X as an Integer

How many levels of nesting are there in this design? 4

Provide a set of values that will test the normal operation of this program segment. Defend your choices. -1,0,49,50,51,69,70,71,84,85,86,99,100,101 All values are one below, at the normal levels, and just one above the various thresholds for determining if each segment works properly.

Provide a set of test values that will cause each of the branches to be executed. 1,51,71,86

Provide a set of test values that test the abnormal operation of this program segment.

-1,101, ABC

My academic advisor directed me to a text:

https://ecampus.phoenix.edu/content/eBookLibrary2/content/DownloadList.aspx?assetMetaId=56573e54-add7-4520-9a90-1e105e665d4b&assetDataId=04cf218c-f12b-4ec9-8ed5-22c21fd7b058

that has been helping me greatly (I think) to help me better understand pseudocode. So, I would greatly appreciate you feedback as to whether or not I am beginning to grasp this concept.

...

...

Download as:   txt (1.6 Kb)   pdf (50.5 Kb)   docx (9.1 Kb)  
Continue for 1 more page »
Only available on OtherPapers.com