A Balanced Introduction to Computer ScienceFor Introduction to Computing and the Web courses in departments of Math and Computer Science. This thoughtfully written text uses the Internet as a central theme, studying its history, technology, and current use. Experimental problems use Web-based tools, enabling students to learn programming fundamentals by developing their own interactive Web pages with HTML and JavaScript. Integrating breadth-based and depth-based chapters, Reed covers a broad range of topics balanced with programming depth in a hands-on, tutorial style. Supplements Include:
Bridge Page: www.prenhall.com/reed Author Website: www.dave-reed.com/book |
From inside the book
Results 1-3 of 33
Page 237
... counter-driven loop—i.e., a while loop whose test is based on a counter. The counter associated with a counter-driven loop is designed to record the number of times the loop has executed, so we can think of it as a repetition counter ...
... counter-driven loop—i.e., a while loop whose test is based on a counter. The counter associated with a counter-driven loop is designed to record the number of times the loop has executed, so we can think of it as a repetition counter ...
Page 240
... counter - driven while loop , but forgot to increment the repetition counter inside the loop . repCount = 0 ; while ( repCount < 100 ) { } document.write ( " HOWDY ! <br /> " ) ; Because the repetition counter is initialized to zero and ...
... counter - driven while loop , but forgot to increment the repetition counter inside the loop . repCount = 0 ; while ( repCount < 100 ) { } document.write ( " HOWDY ! <br /> " ) ; Because the repetition counter is initialized to zero and ...
Page 317
... COUNTER // AS LONG AS ROLLS REMAIN roll = RandomInt(1, 6) + RandomInt(1, 6); // GET NEXT ROLL if (roll == 2) ... counter to be accessed and updated via its corresponding index. Because the smallest possible dice total is two, its counter ...
... COUNTER // AS LONG AS ROLLS REMAIN roll = RandomInt(1, 6) + RandomInt(1, 6); // GET NEXT ROLL if (roll == 2) ... counter to be accessed and updated via its corresponding index. Because the smallest possible dice total is two, its counter ...
Contents
M01_REED7226_02_SE_C01 | 1 |
M02_REED7226_02_SE_C02 | 18 |
M03_REED7226_02_SE_C03 | 40 |
Copyright | |
21 other sections not shown
Other editions - View all
Common terms and phrases
algorithm ARPANet array assigned attribute behavior binary numbers bit pattern Boolean browser button Celsius characters circuit circuitry complex components computer science contains control unit corresponding counter Dave Reed define dice rolls display electrical evaluates to true example executed EXERCISE Fahrenheit Figure format function Google grade hardware instructions integer interactive Internet Explorer E:\Chapter JavaScript JavaScript code JavaScript statements load machine machine language machine-language main memory memory cell memory location menu method Mozilla Firefox operating system output perform processors prompts the user registers repCount represent result roll1 roll2 script type="text/javascript sequence server simulator specified stored string switch tasks temperature text area text box transistors TRUE or FALSE user clicks vacuum tubes variable von Neumann architecture Web browser Windows Internet Explorer wire World Wide Web write statement