05 Aug Summer Camp 2021 Python Homework 13:30 – week 05 1-3
Question: A school has following rules for grading system: Below 25 - F 25 to 45 - E 46 to 50 - D 51 to 59 - C 61 to 80 - B Above 80 - A Write a program to ask user to enter marks and...
Question: A school has following rules for grading system: Below 25 - F 25 to 45 - E 46 to 50 - D 51 to 59 - C 61 to 80 - B Above 80 - A Write a program to ask user to enter marks and...
Question 1: You and your friend have come up with a way to send messages back and forth. Your friend can encode a message to you by writing down a positive integer N and a symbol. You can decode that message by writing out that symbol N times in a row...
Question: You have come up with the following compression technique: for each symbol, write down the number of times it appears consecutively, followed by the symbol itself. This compression technique is called run-length encoding. Given a sequence of characters, write a program to encode them in this...
Topic: Use if to make choices 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...
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: Write code to animate a rectangle in the same way we animated the circle. Make sure that the rectangle moves from left to right and also from right to left. Also move the rectangle from up to down and down to up. You can use the...