filmov
tv
CSC110 Project 5 Review - Using Java do - while Loops and Testing for Even / Odd Values

Показать описание
This video reviews a programming project where the user is prompted for several integers and the numbers of even and odd numbers are counted.
0:12 - The project description
1:55 - Copying the sample output
2:33 - Setting up & testing the Scanner & a do-while loop
4:34 - Checking for even & odd numbers and keeping track of how many of each
5:56 - Testing (and finding string append bug)
6:30 - Avoiding counting 0 (which we are using as a sentinel value)
7:36 - Adding a case for when no values were entered
0:12 - The project description
1:55 - Copying the sample output
2:33 - Setting up & testing the Scanner & a do-while loop
4:34 - Checking for even & odd numbers and keeping track of how many of each
5:56 - Testing (and finding string append bug)
6:30 - Avoiding counting 0 (which we are using as a sentinel value)
7:36 - Adding a case for when no values were entered