Question: use python thanks Replex o Reptx Replix Replix Repli x o Hepli 20/2-numbers04h1-Apple-sharing-lifeofbiola#README.md umbers/04/h1-Ap... Run README.md 1 # Statement 2 3 N students take Kapples








Replex o Reptx Replix Replix Repli x o Hepli 20/2-numbers04h1-Apple-sharing-lifeofbiola#README.md umbers/04/h1-Ap... Run README.md 1 # Statement 2 3 N students take Kapples and distribute them among each other evenly. The remaining (the indivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket? 4 5 The program prompts the user to enter the number of students (N)* followed by the number of apples (*K). It then print the answers to the two questions above. I 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. ### Example input 10 TI 12 13 6 50 output - Each student will get 8 apples 2 apples will remain in the basket 18 1 20 O a U -numbers/06/h2-Te... Run README.md # Statement 1 2 3 Given an integer (greater than 9) print its tens digit. 4 5 ### Example 1 input 6 7 35348 8 9 10 output 11 12 1 The tens digit is 4 14 15 16 # Example 2 input 18 4788 output The tens digit 15 B o README.md 1 # Statement 2 3 Given a two-digit integer, print its left digit (a tens digit) and then its right digit (a ones digit). 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 7 8 #*# Example 1 input- 9 35 10 1 12 13 output The digits are 3 and 5 16 Finput output 24 the digits and and 7 o a W README.md 1 # Statement 2 3 Given a two-digit integer, swap its digits and print the result. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 7 ### Example 1 input- 8 9 84 10 11 12 output The new number is 48 15 E Example 2 Input SAN output The neare number 157 o README.md 1 # Statement 2 3 Given an integer greater than 9, print its last two digits. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 7 ### Example 1 input D00 1234 10 11 12 output 1 The last two digits are 3 and 4 # Example input 18 84325 26 20 output The last til digits are 2 and 3 5 O a README.md 1 # Statement 2 3 Given a three-digit number, find the sum of its digits. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 ### Example 1 input 8 9 123 10 11 output The sum is 6 1 12 13 14 15 16 17 8 ### Example 2 input 789 98 21 22 output The sun 24 o README.md # Statement 1 2 3 Given a year (as a positive integer), find the respective number of the century. Note that, for example, 20th century began with the year 1901. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 7 ### Example 1 input & 9 1817 11 12 output Century 15 Input 23 output 2 O a README.md 1 # Statement 2 3 A cupcake costs "A dollars and B cents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: "A, "B, "N. It should print two numbers: total cost in dollars and cents. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. 6 ### Example 1 input 09 Nch 10 11 12 12 15 2 output The total cost is 20 dollars and 30 cents 15 17 # Example 2 input 28 a E README.md 1 # Statement 2 3 Given a positive real number, print its first digit to the right of the decimal point. 4 5 Examples of inputs and correct outputs are provided below. Notice the output format carefully. So #*Example 1 input 8 9 1.79 output 10 11 12 13 14 15 10 The digit after the decimal is 7 * Example 2 input 9925649245 23 93 2 output The right after the decinalis a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
