Author: admin
Home > Articles posted by admin (Page 37)
Question:
Stuart the Minion was kidnapped!!
he miss his friends minions very much and is very scare now. You can’t image how dark the room he was put into is, so poor :(.
As a smart Minions, you want to get Stuart out of the monster’s labyrinth(maze). But...
Posted at 20:00h
in
Uncategorized
by admin
Question:
Make changes of the program we made in the class, so the enemy spaceship could complete the following tasks:
the new enemies will appear at the random x position from the top of the screen.
the enemy can bounce back when it reaches left...
Question:
When moving, ants form rows so that each ant except the first is behind another ant. It is not widely known what happens when two rows of ants moving in opposite directions run into each other in a passage too narrow for both rows to...
Posted at 15:46h
in
Uncategorized
by admin
Question:
Write a program to print out a calendar for a particular month given the day on which the first of the month occurs together with the number of days in the month.
Your program should take as input an integer representing the day of the week...
Question:
A company's network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided the network into two subnetworks in order to minimize traffic between parts.
Jack hacked into the company's network and decided to reassign computers to maximize the...
Question:
Create a loop between 1 to 20.
Print “fizz” if the number is divisible by 3
Print “bizz” if the number is divisible by 5
Print “fizzbizz” if a number is divisible by both 3 and 5.
Otherwise, print the number itself.
Hint: You should use...
Question:
Write a program to print out a calendar for a particular month given the day on which the first of the month occurs together with the number of days in the month.
Your program should take as input an integer representing the day of the week...
Question:
write a program to ask user about the date(year, month and day), then pass these year month and day as arguments to a function calcDay that return the day of the year.
Sample input:
Year: 2016
Month: 6
Day: 23
Sample output:
Day of the year: 175
Hint:
You need consider leap years and...
You could do the following homework using IDLE
Question 1
Make a variable and assign a number to it (any number you like). Then display your variable using print.
Question 2
Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display...
Question:
Input a string. You must using a stack, reverse the string and print it.
Sample Input 1:
Enter String to reverse : Apple
Sample Output 1
elppA
Sample Input 2
Orange
Sample Output 2
eganrO
...