27 Aug Aurora Monday 18:30 Python Homework 20.08.24.
Question 1: Modify the program we made in the class below, so you could convert decimal number into Hex(base 16 number): from stack import * def convBin(num): s = Stack() while num > 0: r...
Question 1: Modify the program we made in the class below, so you could convert decimal number into Hex(base 16 number): from stack import * def convBin(num): s = Stack() while num > 0: r...
Question: Modify the program we made in the class. if the boss is got shot by laser, use gotShot() function to make boss's HP decrease. If boss's hp is lower than 0 make the boss disappear from the screen ( you can use kill() method)...
Question: Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint) You can download the background images from below: The size of the...
Question: We have learned how to create 5 enemy spaceship at once in the class. Try to modify the game we made in the class: The program will keep creating new enemy spaceship. the new enemy spaceship always shows on the top of the screen but...
Question 1: We have learn how to make the picture bounce from left to right and right to left. Please make change of the program we made in the class to make the picture bounce up and down as well. Hint: We made a variable named ‘xspeed’ to...
Problem Description We have learn how to use stack to solve some problems and how to convert decimal number into binary number: Please write the program to convert a given decimal number into a binary number by using the following steps for python coding solutions: takes an...
Question: Problem Description 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:(if you did not do this question last week) Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle Question 2: Draw below image using pygame. (could using different color) Code to draw a rectangle is pygame.draw.rect(screen,[red,blue,green],[x,y,width,height,0]...
Question: Problem Description You are trying to pass the time while at the optometrist. You notice there is a grid of four numbers: 1 2 3 4 You see lots of mirrors and lenses at the optometrist, and wonder how flipping the grid horizontally or vertically would change the grid. Specifically, a...
Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle...