Author: admin
Home > Articles posted by admin (Page 77)
Posted at 17:47h
in
Uncategorized
by admin
Question:
Given the following table of data about several planets of our solar system, create a web page that enables users to enter a planet name and, at the click of a button, have the distance and diameter appear either in an alert box or (as...
Question:
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides the land into numerous square plots. It then analyzes each plot separately, using sensing equipment...
Posted at 17:26h
in
Uncategorized
by admin
Question:
Create a new flask application or continue with the existing application. Create or use the below routes
/login -> use this route to login the user. You can use the /login route we created in the class as well.
/play which prints, “you are allowed...
Posted at 17:25h
in
Uncategorized
by admin
Question:
Continue with the pygame application. Write code to do the below tasks:
Create a new screen called the GameOverScreen which displays the text “Game Over. Press space to start game”
Make sure to transition to the game over screen, when the player is killed...
In the play framework application create the below simple routes
Create a route called /me, that returns your name on the browser
Create a route called /info, that returns some arbitrary information about you. For e.g the /info route that displays something like ‘I love...
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...
Question:
Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task:
Create a list from the input
Delete all repeated elements of the list.
Sample Input 1:
1 2 3 2 1 3 98 98 67
Sample Output...
Posted at 16:52h
in
Uncategorized
by admin
Question:
A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team.
Sample Input 1:
Age:...
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 16:48h
in
Uncategorized
by admin
You can do Question 1~ 3 in Python IDLE:
Question 1.
Use float() to create a number from a string like ‘12.34’. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up...