499695 Need a little basic program build from Alice 2.2.

Add a character to your world. Have the character "ask" a total of five questions to the user. Get an answer from the user. If the user's answer is correct, the character should praise them otherwise the character should tell them the correct answer. At the end have the character tell user their score. Program need to use veriables.

1)I am on the object that orbits the Earth and can often be seen in the night sky. Where am I? Your choices: 1. Asteroid 2. Moon 3. Sun

A window box should popup asking "Enter either 1(for asteroid) 2(for moon) or 3(for sun)

If user choose the correct asnwer program need to praise him by telling him "You're right. The moon orbits the Earth.", keep track of score and continue to second question. If user choose wrong answer, program need to tell him "You need to study better! The moon orbits the Earth."

character need to say "Now for question 2"

2) Do people weight less on the moon, than they do on Earth?

A window box should popup asking user question 2 and user need to be able to click Yes or No on the popup window.

If user click "Yes" character need to praise him by tellig him the following in 2 different steps "Correct", "Because the moon's gravitational pull is less than Earth's gravity, a person would weigh less.", keep track of score and continue to next question. If user click "No" character need to tell user "No, think about it! Because the moon's gravitational pull is less than Earth's gravity, a person would weigh less."

character need to say the following in 3 different steps "Now for question 3", "Here's your clue:", "To find out how much a person weighs on the moon, multiply their weight on Earth by ([url removed, login to view]). and "I weigh 100 pounds when I'am on the Earth."

3)How much do I weigh while I'm here on the moon?

A window box should popup where user can input there answer. Popup window need to say "Enter the number only". If user enter "17" the correct asnwer, character need to praise him and tell him "Exactly, I weigh 17 pounds.", keep track of score and continue to next question.

If user input anything else besides the number 17. Character needs to tell user "No. I weigh 17 pounds."

character need to say "Now for question 4"

4)In what year did a human first walk on the moon?

A window box should popup asking user "Enter a Number only:" If user input the correct answer "1969" character should praise him and tell him "Youre right. In 1969, when first human walked on the moon.", keep track of score and continue to next question.

If user input anything else than "1969" character should tell him "You should know your history! Neil Armstrong walked on the moon in 1969."

character need to say "Now for question 5"

5) Is there atmosphere on the moon?

A window box should popup asking user question 5 and user need to be able to click Yes or No on the popup window.

If user click "No" character need to praise him by tellig him "Youre right. The moon does not have an atmosphere." and a window box shoud pop up letting user know there score and the end of quiz.

If user click "No" character need to tell user "Oh no! The Moon doesn't have an atmosphere." and a window box should pop up letting user know there score and the end of quiz.

You can find the Alice 2.2 program on [url removed, login to view]

Beceriler: Her şey Kabul

İşveren Hakkında:
( 4 değerlendirme )

Proje NO: #2245615

Seçilen:

elliekathrin

Program is completed.

0 gün içinde 25\$ USD
(0 Değerlendirme)
0.0