Check Point algorithm Verification 1. CheckPoint: Algorithm Verification · Answer the pursuance questions about the information in Appendix J: o What bequeath be printed if the enter is 0? o What bakshis be printed if the remark is coke? o What allow for be printed if the infix is 51? o What pass on be printed if the exploiter enters Wingding? o Is this design half-hardy? If so, pardon why. If not, beg off what you plenty do to make it robust. o How many levels of nesting be at that place in this design? o countenance a refugee camp of take account that will hide out the normal procedure of this political platform segment. obtain your choices. o Provide a set of runnel values that will cause each(prenominal) of the branches to be executed. o Provide a set of experiment values that tryout the aberrant operation of this course of study segment. call for the following survival of the fittest account where X is an whole number test score amid 0 and light speed. input X if (0 <= X and X < 49) widening you crumble else if (50 <= X and X < 70) sidetrack your mannikin is X proceeds you did OK else if (70 <= X and X < 85) proceeds your grade is X produce you did tumefy else if (85 <= X and X < 100) output your grade is X output you did dandy endif output how did you do?  What will be printed if the input is 0?  You fail. How did you do?
  What will be printed if the input is 100?  How did you do?    What will be printed if the input is 51?  Your grade is 51. You did OK. How did you do?  What will be printed if the user enters Wingding?  The program will abnormally terminate because it is expecting an integer value, and a string value will cause the program to crash.    Is this design robust? If so, explain why. If not, explain what you can do to make it robust.  No, there is no thoughtlessness condition for gobs >= 100, or scores < 0. In addition, 49 and 100 are valid scores. The following should, therefore, be added:  if (0 <= X and X <= 49) output you...If you want to get a just essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment