Posted at 01:04h
in
archives
by admin
Question 1:
Write a program for a movie theater using while loop. It will keep asking your age and display the ticket price, until you enter “quit”. It is free if you are less than 3 years old, otherwise if your age is less than 16...
Question:
Problem DescriptionYou 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...
Posted at 00:49h
in
Uncategorized
by admin
Question:
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...
Question:Winnie is feeling generous today, so she decided to adopt all the children in an orphanage. There are N orphanages, numbered from 1 to N, that she can choose from. Each orphanage has M children. Each children has a cuteness value ranging from 1 to...
Posted at 18:51h
in
archives
by admin
Question:
We have learned how to use keyboard to control the movement of the fighter in the last class. Please continue to write the code we did in the class so that the fighter can move left, down and right by clicking 'a', 's' and 'd'...
Question:
Continue with the code we did in the class and try to solve a mini sudoku. The rules of the mini sudoku are as below
No two same numbers can be in the same row and column
Only numbers 1,2,3,4 are allowed
Each row and...