3.7 7 French Flag

Question: 3.3.4: Your Name and Hobby

Answer: function start(){

println(“My name is Leo.”);

println(“I like to hunt.”);

}

Question: 3.4.4: Apples and Oranges

Answer: function start(){

var numApps = 20;

println(“Number of Apples: “ + numApps);

var numOra = 15;

println(“Number of Oranges: “ + numOra);

var numOrg = 0;

println(“Number of Apples: “ + numApps);

println(“Number of Apples: “ + numOra);

}

Question: function start(){

var name = readLine(“YourName? “);

var age = readInt(“How many driods do you want to met?”);

var wookies = readInt(“How many wookies? “);

println(“Hi “ + name + “ you want to meet “ + age + “ droids and “ + wookies + “ Wookie.”);

}

Answer: 3.5.4: Obi-Wan Says

Question: function start(){

var COSTOFFRISBEE = 15;

var amount = readInt(“How many would like?”);

var sum = COSTOFFRISBEE * amount;

println(sum);

}

Answer: 3.6.6: Sporting Goods Shop

Question: function start(){

var miles = readInt(“ How far did you run? “);

var minutes = readInt(“How many minutes”);

var hours = minutes / 60;

var speed = miles/ hours;

println(“Speed in mph: “ +speed);

}

Answer: 3.6.7: Running Speed

Question: 3.7.7: French Flag

Answer: function start(){

var rectWidth = getWidth() / 3;

var rectHeight = getHeight();

var blueRect = new Rectangle(rectWidth, rectHeight);

blueRect.setPosition(0, 0);

blueRect.setColor(Color.blue);

add(blueRect);

var redRect = new Rectangle(rectWidth, rectHeight);

redRect.setPosition(rectWidth * 2, 0);

redRect.setColor(Color.red);

add(redRect);

}

Question: 3.7.8: Snowman

Answer:

Donation Page

Support Our Work

Do you appreciate the value this website provides? If so, please consider donating to help keep it running. Your donation will go a long way in helping us continue to provide the same quality of content and services. Every bit helps, and your support is greatly appreciated. Thank you for your generosity.