01:198:111 Lecture Notes - Lecture 6: Pseudocode

175 views2 pages
Verified Note

Document Summary

Decision tree pseudocode java code. How do you decide between three numbers to which one is larger. E. g. for( int i = 0; i <1000; i ++) The difference between a while and a do while is that a do while will. Always run the code the first time regardless if the condition is met or not. Between a while and a for loop, there is a negligible difference between when to use one or another. Meaning when you can use a for loop, a while loop would often work too. You will not being using it for this course, or very often at all but it is handy to know. The operators you will need to know for this class. == is a boolean operator and compares two primitive types to see if they are equal. != is another boolean operators and compares two primitive types to see if they are not equal.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions