Author: admin
Home > Articles posted by admin (Page 172)
Posted at 03:25h
in
archives
by admin
Problem Description
We have learn how to use stack to solve some problems and how to convert decimal number into binary number:
Please write the program to convert a given decimal number into a binary number by using the following steps for python coding solutions:
takes an...
Problem Description
We have learn how to use stack to solve some problems and how to convert decimal number into binary number:
Please write the program to convert a given decimal number into a binary number by using the following steps for python coding solutions:
takes an...
Posted at 03:15h
in
Uncategorized
by admin
Please make some modifications of the following code. Make ball appears on the top when the ball reaches the bottom, and appears at bottom when the ball reaches the top.
sss...
Posted at 03:11h
in
Uncategorized
by admin
Question.
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 03:07h
in
Uncategorized
by admin
Question 1:
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...
Question:
Create a PWD(Password) class it will contain the following methods:
__init__
to create a password object by passing one argument into it
validate
to check the validity of password input by users. it need to use the following method:
checkLetter: At least 1 letter between [a-z] and 1 letter between[A-Z].
checkNumber:...
Posted at 20:56h
in
Uncategorized
by admin
Question:
Write a function to calculate the total value of some change—quarters, dimes, nickels, and pennies. The function should return the total value of the coins. Then write a program that calls the function. The output should look like this when it runs:
Sample input:
quarters: 3
dimes: 6
nickels: 7
pennies: 2
Sample output:
total is...
Posted at 20:51h
in
archives
by admin
Problem DescriptionA palindrome is a word which is the same when read forwards as it is when read backwards. For example, mom and anna are two palindromes.
A word which has just one letter, such as a, is also a palindrome.
Given a word, what is the...
Problem DescriptionA palindrome is a word which is the same when read forwards as it is when read backwards. For example, mom and anna are two palindromes.
A word which has just one letter, such as a, is also a palindrome.
Given a word, what is the...
Posted at 02:44h
in
Uncategorized
by admin
Problem Description
Suppose we have a number like 12. Let’s define shifting a number to mean adding a zero at the end. For example, if we shift that number once, we get the number 120. If we shift the number again we get the number 1200....