Review of what we’ve covered so far

Here is a graphical review of the topics we have introduced already. You will need a little time to consolidate this knowledge and get used to applying it, but you are already able to make useful computer programs!

Review: Intro to Netbeans, Variable, Input, If statements.

Challenges:

  • Write a program that gets a year from the user and prints whether it is a leap year. (A year is a leap year if it is divisible by four, except if it is divisible by 400, except if it divisible by 2000.)
  • Write a program that gets three numbers from the user and prints which number is the largest.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s