Class Notes (838,371)
Canada (510,867)
York University (35,470)
ITEC 1620 (35)


6 Pages
Unlock Document

Information Technology
ITEC 1620
Stephen Chen

Sample 1: I have a number. Should you guess my numb er, I will say “You guessed my number.” Otherwise, I will say “Lower” when your guess was too high, and I will say “Higher” when your guess was too low. For example: nummyer yoguess 5 3 Higher r e w o L 6 r e h g i H 4 5gYessed. On the following page, there is a flowchart for a program that will take as input the value of my number and the value of your guesses, and that will output my response to each guess. For Example: In5poupout. In3put:Output: Higher In6put:Output: Lower In4put:Output: Higher In5put:OutputgYeused. On the page after the flowchart, please onvert the program from the flowchart into JAVA. Flowchart: Start Input my number Input guess Input guess Output: Output: “Higher” “Lower” no yes guess > number yes guess ≠ number no Output: “You guessed my number.” End Program: public class Sample1 { public static void main( String args [] ) { } } Sample 2: The triangular numbers are as follows: 11 3
More Less

Related notes for ITEC 1620

Log In


Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.