From 8a232a470cba464737cd47a6a2e110e65b404b22 Mon Sep 17 00:00:00 2001 From: zrkdpster Date: Mon, 9 Jul 2018 17:00:51 -0500 Subject: [PATCH] Update exercise1 Changed yesOrNo to iitStudent so now the name makes sence added my info (69? really?) --- exercise1 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/exercise1 b/exercise1 index 2536c77..47c1b04 100644 --- a/exercise1 +++ b/exercise1 @@ -15,32 +15,33 @@ public class exercise1 { //Strings are alphanumerical words that inlcude nearly any character/ //Replace this String with your name and favorite food! - String name = "TheLegend27"; - String favFood = "waffles"; + String name = "Zoe!!"; + + String favFood = "Chocolate ^_-"; //Intergers are whole numbers that are either positive or negative, or 0. //Replace this integer with your age! - int age = 46; + int age = 69; //Doubles are numbers that have decimals and are positive or negative //Replace this Double with the gas prices in Chicago -Double gasPrice = 3.48; +Double gasPrice = 2.70; //Boolean are values that are either true or false //Replace this boolean value with true or false for the following question //Are you a student at IIT? -boolean yesOrNo = false; +boolean iitStudent = true; //Characters are values with 1 letter from A-Z and they use single quotes '' //Replace this char with your first and last initials -char firstInitial = 'a'; -char lastInitial = 'z'; +char firstInitial = 'z'; +char lastInitial = 'k'; //Run this file after making changes and see what you have! @@ -59,7 +60,7 @@ System.out.println("My initials are " + firstInitial + ". " + lastInitial + ". " -if(yesOrNo == true){ +if(iitStudent == true){ System.out.println("I am a student at IIT!"); } else { System.out.println("I am NOT a student at IIT!");