|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Algorithm Verification
Consider the following selection statement where X is an integer test score between 0 and 100. input X 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" endif output "how did you do?" I am so confused with these questions can someone help me please. Answer the following question about the information of algorithm verification. 1. What will be printed if the input is 0? 2. What will be printed if the input is 100? 3. What will be printed if the input is 51? 4. What will be printed if the user enters “Wingding”? 5. Is this design robust? If so, explain why. If not, explain what you can do to make it robust. 6. How many levels of nesting are there in this design? 7. Give a set of test values that will cause each of the branches to be executed. 8. Give a set of test values that test the abnormal operation of this program segment. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Algorithm Matches Any Tumor Cells To Best Possible Anticancer Treatments | Kernel | Programming News | 0 | 07-29-2007 08:52 PM |
| efficient algorithm | sovixi | Python | 3 | 04-19-2007 02:47 PM |
| Algorithm needed | crazyinstinct | Visual Basic Programming | 2 | 03-03-2007 04:14 PM |
| can sum1 help me in making a CPU scheduling algorithm program in c? | bryan | General Programming | 2 | 11-28-2006 12:55 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%