Author: admin
Home > Articles posted by admin (Page 61)
Posted at 18:01h
in
Uncategorized
by admin
Question 1:
Use while loop (NOT for loop) to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this:
Sample Input:
Which multiplication table would you like? 7
How high do you want to go?...
Question:
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 a...
Posted at 17:54h
in
Uncategorized
by admin
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...
Question:
Annie has two favourite baseball teams: the Eagle and the Warrior. She has followed them throughout the season, which is now over. The season lasted for N days. Both teams played exactly one game on each day.
For each day, Annie recorded the number of runs scored by...
Question:
You supervise a small parking lot which has N parking spaces. Yesterday, you recorded which parking spaces were occupied by cars and which were empty. Today, you recorded the same information. How many of the parking spaces were occupied both yesterday and today?
Input Specification:
The first line of input contains the...
Posted at 03:08h
in
Uncategorized
by admin
Question 1:
Use while loop (NOT for loop) to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this:
Sample Input:
Which multiplication table would you like? 7
How high do you want to...
Posted at 03:05h
in
Uncategorized
by admin
Question 1:
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here’s your table:
5 x 1 = 5
5 x 2...
Posted at 05:19h
in
Uncategorized
by admin
Using the example that we did in the last class, create the below table with the name called questions. The questions table should have the below columns:
Table Columns Column Typeidid question String (varchar(3000))option1...
Posted at 05:16h
in
Uncategorized
by admin
In the previous class, we learned about how to create a custom event in pygame. Using the custom event, write the pygame code to create an N enemies every X milliseconds. You can choose the value of N (how many enemies to display) and also...
In the play framework application create the below route:
Create a route called /calculate that takes in three query parameter that is num1 and num2 and operation and does the below stuff:
If the value of operation is “add”, then add the two numbers.
if the...