Author: admin
Home > Articles posted by admin (Page 108)
Posted at 07:09h
in
Uncategorized
by admin
Question:Continue modify the program in the last class, if your fighter touches the enemy:
the fighter will explode
the game status will be STATUS_GAMEOVER
when game over, everything will not show on the screen except for the background and planets.
...
Question 1:
A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20 percent off purchases of greater than $10. Write a program that asks the purchase price and displays the discount (10% or 20%) and the final price.
Sample Input...
Posted at 19:48h
in
Uncategorized
by admin
Question:Continue modify the program in the last class, so the titan enemy can be killed after its HP reaches or is below zero.
...
Posted at 19:38h
in
Uncategorized
by admin
Question 1:
Canada Cosmos Control has received a report of another incident. They believe that an alien has illegally entered our space. A person who witnessed the appearance of the alien has come forward to describe the alien’s appearance. It is your role within the CCC...
Question 1:
You are hosting a party and do not have room to invite all of your friends. You use the following unemotional mathematical method to determine which friends to invite.
Number your friends 1,2,…,K and place them in a list in this order. Then perform m...
Posted at 19:30h
in
Uncategorized
by admin
Question 1:
A fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that...
Question 1:
You have been asked to take a small icon that appears on the screen of a smart telephone and scale it up so it looks bigger on a regular computer screen.
The icon will be encoded as characters (x and *) in a 3 ×...
Posted at 18:44h
in
Uncategorized
by admin
Question:You and your friend have come up with a way to send messages back and forth.
Your friend can encode a message to you by writing down a positive integer N and a symbol. You can decode that message by writing out that symbol N times in a row on...
Posted at 18:29h
in
Uncategorized
by admin
Question 1:Continue modify the program we made in the class:
to use spritecollide to let the fighter collect energy crystals,
Create a variable score, if the energy crystal is collected, the score will increase
Question 2:
In the class Laser and Explosion. We showed you how to load different...
Posted at 21:56h
in
Uncategorized
by admin
Question 1: (please use function that return a value)
Write a function to calculate the total value of some change—quarters, dimes and nickels. The function should return the total value of the coins. Then write a program that calls the function. The output should look like this...