Author: admin
Home > Articles posted by admin (Page 98)
Posted at 00:11h
in
Uncategorized
by admin
Question:One morning, completely by chance, Mirko found a positive integer N in the middle of the street. Since Mirko adores the number 30, he wants to know the maximum multiple of the number 30 that can be obtained by shuffling the digits of the number...
Question:
Continue modify the program we made in the class:
the game will be restarted if you press the space key.
...
Posted at 02:49h
in
Uncategorized
by admin
Question 1:(please use function that return a value)
Write a program to display information to a driver based on his/her speed according to the following table:
km/h over the limit
Fine
1 to 20
$100
21 to 30
$270
31 or above
$500
Sample Input 1:
Enter the speed limit: 40
Enter the recorded speed of the...
Posted at 02:46h
in
Uncategorized
by admin
Question 1:Use recursion to write a function has_digit that consumes a string and produces True if the string contains a digit (0 through 9) and False otherwise.
Hints:
Make sure that you have a base case.
Make sure to use the function on a shorter string.
Before calling the function, first check to see...
Question 1:
Create a Student class and make the following methods to :
__init__() – Initialize it with name and roll number.
__str__() – Display all information of the student.
setAge() – It should assign age to student.
setMarks() – It should assign marks to the...
Posted at 02:42h
in
Uncategorized
by admin
Question:
You are in charge of adding cheese topping to a pizza prepared for a special customer. This pizza is a very long rectangular strip. It is divided into N slices, numbered 1 to N from left to right. To add cheese topping to the pizza, you have a special...
Posted at 02:41h
in
archives
by admin
Question:
Continue modify the program we made in the class, so that:
if there's head shot and you hit the target, please display the head shot message
if you chose the gun, the enemy’s hp will decrease and message box will tell how much damage caused...
Question:
You are in charge of adding cheese topping to a pizza prepared for a special customer. This pizza is a very long rectangular strip. It is divided into N slices, numbered 1 to N from left to right. To add cheese topping to the pizza, you have a special...
Question 1(continue to think and go to question 2):
Little Marin spent all his day generating test data for COCI. He simply couldn’t make it work, so he had a nervous breakdown and can’t even see clearly anymore. Every time he blinks while reading, the letters...
Posted at 02:25h
in
Uncategorized
by admin
Question:You are in charge of adding cheese topping to a pizza prepared for a special customer. This pizza is a very long rectangular strip. It is divided into N slices, numbered 1 to N from left to right. To add cheese topping to the pizza,...