Computer as a Problem solving tool : Page 9, Exercises 1 - 7
Write a program that prints your name a hundred times.
Write a program to fill the screen horizontally and vertically with your name. [Hint : add the option end="" into the print function to fill the screen horizontally].
Write a program that outputs 100 lines, numbered 1 to 100, each with your name on it. The ouput should look like this;
1 Your name
2 Your name
3 Your name....
Write a program that computes and prints the result of (512 - 282) / (47.48 + 5)
Write a program that prints asks the user to enter a number, then prints out the square of the inputted number. The program should use the sep optional argument to print it out in a full sentence that ends in a period. Sample output is shown below;
Enter a number: 5
The square of 5 is 25.
Write a program that asks the user to enter a number x. The program should use the sep optional argument to print out x, 2x, 3x, 4x and 5x. Each separated by three dashes as shown below;
Enter a number: 7
7---14---21---28---35
Write a program that asks the user for a weight in kilograms and converts it to pounds. There are 2.2 pounds in a kilogram.