Presentation is loading. Please wait.

Presentation is loading. Please wait.

Group Activity! Design First! Discuss the problem as a group. What data do you need? What data types? What data comes from the user? What data is a constant?

Similar presentations


Presentation on theme: "Group Activity! Design First! Discuss the problem as a group. What data do you need? What data types? What data comes from the user? What data is a constant?"— Presentation transcript:

1 Group Activity! Design First! Discuss the problem as a group. What data do you need? What data types? What data comes from the user? What data is a constant? What calculations do you need to perform?

2 Group numbers that are a power of 2: Write a program that will calculate the cost of a flight to the moon! To send an empty rocket to the moon you need 10,000 meters 3 of fuel. For each kilogram of payload you need to add 3 meters 3 of fuel. Ask the user for the cost of a meters 3 of fuel and the number of kilograms of payload. Display the number of kilograms of fuel used and the cost of the flight. To be user friendly, ask the user for his or her name and produce a personalized output message!

3 Group numbers divisible by 3: For chemistry class, you need to combine two beakers of liquid to form a solution. Each beaker contains a different liquid. Ask the user for the name of the liquid in the first beaker and the number of centiliters contained in the beaker. Do the same for the second liquid. Display the total number of centiliters in the final solution and the percentage of each liquid found in the final solution. Be sure to label the percentages with the name of the liquid.

4 Other groups: Write a program to calculate the air-speed velocity of a swallow. Heavier birds fly slower, and birds carrying coconuts fly even slower. The basic swallow that weighs 20 grams flies at 11 meters per second. Each coconut the swallow carries slows the bird down by 2 meters per second. Birds slow down by 0.5 meters per second for every gram over 20 that they weigh. No birds weigh less than 20 grams. Ask the user for the weight of the bird and the number of coconuts (0 to 3) being carried and display the air-speed velocity.


Download ppt "Group Activity! Design First! Discuss the problem as a group. What data do you need? What data types? What data comes from the user? What data is a constant?"

Similar presentations


Ads by Google