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...
Question: There is a biker going on a road trip. The road trip consists of n + 1 points at different altitudes. The biker starts his trip on point 0 with altitude equal 0. You are given an integer array gain of length n where gain[i] is...
Question 1: Create two variables namely firstname and lastname. Assign them any value you like. Print the value of the variable firstname in one line and the value of the variable lastname in the next line. Make sure when you print the variables in idle, it looks...
Question: Roll First Last 187 Evelyn Beach 129 Dalton Wilkinson 129 Dalton Pitts 170 Drake Watkins 165 Oliver Daniel 180 Igor Olson 137 April Graves 175 Dalton Jensen 163 Denton Oliver 152 Audrey Beck 189 Keelie Martinez 151 Phyllis Huffman 142 Lydia Hartman 175 Jared Tucker 140 Martin Simon 189 Malcolm Martinez 100 Naomi Alford 134 Cara Craft 103 Sara Wheeler 177 Driscoll Lester 180 ...
Question: Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint) You can download the background images from below: The size of the...