# Computer (Programming with Python)

posted by .

Problem 1:
Multiplication Drill
Computers can perform calculations extremely quickly and accurately, but it's often handy to calculate with the computers we carry around inside our heads.

Write a program to drill you in multiplication tables. Your program should read a single line of input containing an integer, and print out the multiples of that number up to 12 times that number.

Here is an example interactive session between your program and a user:
Enter a number: 3

3 x 1 = 3
3 x 2 = 6
3 x 3 = 9
3 x 4 = 12
3 x 5 = 15
3 x 6 = 18
3 x 7 = 21
3 x 8 = 24
3 x 9 = 27
3 x 10 = 30
3 x 11 = 33
3 x 12 = 36

Problem 2:
Pyramids

You have always wanted to visit the Pyramids of Giza but unfortunately you've got too much homework to do!

To try and help with your travel withdrawals, you decide to write a program to generate pyramids for you. ASCII art pyramids are the next best thing, right?

Write a Python program to read in the width of the pyramid. Your program should then print out a pyramid using asterisks. For example:

Enter width: 2
*
* *

Problem 3:

Simon Says

Simon Says is a children’s game in which a leader gives instructions in the form of "Simon says put your hands in the air" and the players have to do what they say. However, if the leader gives an instruction without starting with 'Simon says' the players do nothing.

Write a program that plays this game. It should read in lines of input until a blank line is entered. If the line starts with Simon says it should print out the rest of the line. Lines that do not start with Simon says should be ignored.

Here is an example interaction between your program and the user:

Enter: jump
Enter: Simon says shout loudly
shout loudly
Enter: Simon would like you to eat a frog
Enter: Simon says clap your hands
Enter:

*I've already tried to answer Problem 2 but it doesn't form anything like a pyramid. ): The rest, I have no idea. HELP PLEASE!

## Similar Questions

1. ### DT

For my dt homework i need to find the definition of pillar drill, portable drill and countersink . i have found the definitions of pillar drill and countersink but i am finding it hard to find the defintion of portable drill. i know …
2. ### computers

what computers can do?what computers cannot do?

Could someone explain what multiplication comparisons are?
4. ### Teachers Aide/Technology in the Classroom

Which of the following scenarios most likely describes the future of technology in education?
5. ### writing

Why is it important not to run and fool around in an evacuation drill?
6. ### Programming

Write a program (pseudocode) that would calculate and display the results for the multiplication table for values ranging from 1 to 100. This what I have so far: Declare X, Y, Z As Integer Write “10 x 10 Multiplication Table” For …
7. ### Physics

An electric drill operates at a potential difference of 120V and draws a current of 1.5 Amps. If it takes 50 seconds to drill a hole in a piece of steel,calculate the amount of electrical energy used by the drill in that time.
8. ### Computers (Programming by Python)

Problem 1: Multiplication Drill Computers can perform calculations extremely quickly and accurately, but it's often handy to calculate with the computers we carry around inside our heads. Write a program to drill you in multiplication …
9. ### Programming

Write a program that would calculate and display the results for the multiplication table for values ranging from 1 to 100. Your program should print the output for each step and output a new line after 10 items. Provide your program …
10. ### LA

Computers make calculations incredibly quickly. intransitive or *transitive verb*?

More Similar Questions