A Balanced Introduction to Computer ScienceThis carefully written, balanced book teaches the most important concepts in computing and computer science while providing enough programming depth to enable understanding about how people work with computers. Taking advantage of today's interest in and familiarity with the Web, the book contains experimental problems using Web-based tools; enabling readers to learn the fundamentals of programming by developing their own interactive Web pages. Beginning with an introduction, overview, and the basics of computers, the book proceeds with comprehensive chapters on HTML and Web pages, the Internet, JavaScript and Web page creation, the history of computers, abstraction and user-defined functions, algorithms and programming languages, event-driven programming, conditional execution, data representation, conditional repetition, JavaScript strings, and transistors and integrated circuits. This book can serve as an excellent reference resource for those entering the computer job market: programmers, Web site and Web page designers, and technical support staff. |
From inside the book
Results 1-3 of 7
Page 236
... repCount = 0 ; while ( repCount < DESIRED_NUMBER_OF_REPETITIONS ) { STATEMENTS_FOR_CARRYING_OUT_DESIRED_TASK repCount = repCount + 1 ; } Note that the repetition counter is initialized to 0 before the loop begins and then incremented at ...
... repCount = 0 ; while ( repCount < DESIRED_NUMBER_OF_REPETITIONS ) { STATEMENTS_FOR_CARRYING_OUT_DESIRED_TASK repCount = repCount + 1 ; } Note that the repetition counter is initialized to 0 before the loop begins and then incremented at ...
Page 238
... repCount , roll1 , rol12 ; doubleCount totalRolls = repCount = 0 ; = 0 ; // initialize the counter parseFloat ( document.DiceForm.reps.value ) ; while ( repCount totalRolls ) { roll1 RandomInt ( 1 , 6 ) ; rol12 RandomInt ( 1 , 6 ) ...
... repCount , roll1 , rol12 ; doubleCount totalRolls = repCount = 0 ; = 0 ; // initialize the counter parseFloat ( document.DiceForm.reps.value ) ; while ( repCount totalRolls ) { roll1 RandomInt ( 1 , 6 ) ; rol12 RandomInt ( 1 , 6 ) ...
Page 249
... . Test the page repeatedly to verify that it behaves identically to the while loop version . 14 Chapter Chapter Outline CPU Subunits and Datapath CPU Subunits 249 for ( repCount = 0 ; repCount < 100 ; repCount = repCount + 1 ) {
... . Test the page repeatedly to verify that it behaves identically to the while loop version . 14 Chapter Chapter Outline CPU Subunits and Datapath CPU Subunits 249 for ( repCount = 0 ; repCount < 100 ; repCount = repCount + 1 ) {
Contents
The Internet and the | 37 |
19 | 57 |
JavaScript and Dynamic Web Pages | 58 |
Copyright | |
20 other sections not shown
Other editions - View all
Common terms and phrases
algorithm ARPANet array assignment binary numbers Boolean browser Bus Address Celsius Chapter character circuit circuitry components computer science contains copy counter Dave Reed dice rolls display Edit View Favorites electrical enter errors evaluates to true example executed EXERCISE Favorites Tools Help Figure File Edit View function grade hardware input instructions integer integrated circuits JavaScript JavaScript code language load machine machine-language main memory memory location menu method microchip Microsoft Internet Explorer misc Netscape Navigator operating system output perform Pig Latin processors prompt registers represented result roll1 script type="text/javascript sequence server simulator specify Stop Refresh Home stored string substring switch tags tasks text area text box TextEdit transistors TRUE or FALSE user clicks variable View Favorites Tools von Neumann architecture Web browser window wire word write statements