📄 page_756.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>page_756</title> <link rel="stylesheet" href="reset.css" type="text/css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <table summary="top nav" border="0" width="100%"> <tr> <td align="left" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_755.html">< previous page</a></td> <td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_756</strong></td> <td align="right" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_757.html">next page ></a></td> </tr> <tr> <td align="left" colspan="3" style="background: #ffffff; padding: 20px;"> <table border="0" width="100%" cellpadding="0"><tr><td align="center"> <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td align="left"></td> <td align="right"></td> </tr></table></td></tr><tr><td align="left"><p></p><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="right"><font face="Times New Roman, Times, Serif" size="2" color="#FF0000">Page 756</font></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">Testing: The program was executed with the following test data, which include at least one zero in each row and column. Case Study Follow-Up Exercise 2 asks you to outline a complete testing strategy for this program.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="2">File聽</font><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">dataFile<br /></font><font face="Courier New, Courier, Mono New, Courier, Mono" size="2">0聽聽6聽聽3聽聽3聽聽4聽聽1<br />1聽聽0聽聽1聽聽3聽聽0聽聽3<br />1聽聽1聽聽0聽聽2聽聽1聽聽1<br />1聽聽0聽聽1聽聽0聽聽0聽聽1<br />2聽聽3聽聽4聽聽2聽聽1聽聽0</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">Listed below are the results written to file </font><font face="Courier New, Courier, Mono New, Courier, Mono" size="3">reportFile</font><font face="Times New Roman, Times, Serif" size="3">.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Courier New, Courier, Mono New, Courier, Mono" size="2">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ABSENTEE聽DATA<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽Monday聽聽聽聽聽聽Tuesday聽聽聽聽Wednesday聽聽聽聽聽Thursday聽聽聽聽聽聽聽Friday<br />聽聽聽聽聽聽聽聽聽聽聽Value聽聽聽%聽聽聽聽Value聽聽聽%聽聽聽聽Value聽聽聽%聽聽聽聽Value聽聽聽%聽聽聽聽Value聽聽聽%<br />Dept聽A聽聽聽聽聽聽0聽聽聽-100聽聽聽聽聽1聽聽聽聽聽聽0聽聽聽聽聽1聽聽聽聽聽聽0聽聽聽聽聽1聽聽聽聽聽聽0聽聽聽聽聽2聽聽聽聽100<br />Dept聽B聽聽聽聽聽聽6聽聽聽聽200聽聽聽聽聽0聽聽聽-100聽聽聽聽聽1聽聽聽聽-50聽聽聽聽聽0聽聽聽-100聽聽聽聽聽3聽聽聽聽聽50<br />Dept聽C聽聽聽聽聽聽3聽聽聽聽聽67聽聽聽聽聽1聽聽聽聽-44聽聽聽聽聽0聽聽聽-100聽聽聽聽聽1聽聽聽聽-44聽聽聽聽聽4聽聽聽聽122<br />Dept聽D聽聽聽聽聽聽3聽聽聽聽聽50聽聽聽聽聽3聽聽聽聽聽50聽聽聽聽聽2聽聽聽聽聽聽0聽聽聽聽聽0聽聽聽-100聽聽聽聽聽2聽聽聽聽聽聽0<br />Dept聽E聽聽聽聽聽聽4聽聽聽聽233聽聽聽聽聽0聽聽聽-100聽聽聽聽聽1聽聽聽聽-17聽聽聽聽聽0聽聽聽-100聽聽聽聽聽1聽聽聽聽-17<br />Dept聽F聽聽聽聽聽聽1聽聽聽聽-17聽聽聽聽聽3聽聽聽聽150聽聽聽聽聽1聽聽聽聽-17聽聽聽聽聽1聽聽聽聽-17聽聽聽聽聽0聽聽聽-100<br /><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽BAR聽CHART:聽聽ABSENCES聽BY聽DAY<br />聽聽聽聽聽Monday聽聽聽聽Tuesday聽聽Wednesday聽聽聽Thursday聽聽聽聽聽Friday<br />100%<br />聽90%<br />聽80%<br />聽70%<br />聽60%<br />聽50%<br />聽40%聽聽聽*<br />聽30%聽聽聽*聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽*<br />聽20%聽聽聽*聽聽聽聽聽聽聽聽聽聽*聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽*<br />聽10%聽聽聽*聽聽聽聽聽聽聽聽聽聽*聽聽聽聽聽聽聽聽聽聽*聽聽聽聽聽聽聽聽聽聽*聽聽聽聽聽聽聽聽聽聽*</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">Something looks a little strange: the percentages in the bar chart add up to 110 percent. Remember that in Chapter 10 we mentioned that strange things can happen with floating point numbers. In the Absentee program, each percentage figure is changed to an integer for use as an index. To do so, the percentages are rounded to the nearest 10 percent. When we noticed that the percentages added up to 110 percent, we put a debugging output statement in the program to monitor what was happening. The percentages and rounded values are shown below.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table></td></tr></table><p><font size="0"></font></p>聽 </td> </tr> <tr> <td align="left" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_755.html">< previous page</a></td> <td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_756</strong></td> <td align="right" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_757.html">next page ></a></td> </tr> </table> </body> </html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -