Exercises to Practice (Module 3)
Write a Python program which accepts three numbers and displays the sum, the product, and the average.
Write a Python program which accepts a student’s name, class-code, grade for three different lessons (classes) and calculates the average grade for these lessons. After you print the results in details, please print a blank line and then, print the current date.
Write a Python program which accepts a number and calculates and displays its root square.
Write a Python program which accepts the price of a super-market product without the corresponding VAT and prints the product’s final price (you will have to add VAT 24%).
Employees of Anna’s company have increased their monthly salary by 13%. Write a Python program that calculates the new salary and their new annual income.
Develop a Python program that originally assigns 2 random values from 1 to 100 in 2 different variables. Print these values. Then write code that mutually exchanges (swap) the values of the variables. Print again to confirm the result.
Write a Python program which accepts a three-digit number and prints the sum of its digits on the screen. (Example number 543 has a sum of 12 (5 + 4 + 3)
Help: use operators % and //
The formula for converting a measurement in Celsius to Fahrenheit is F = 9 / 5C +32. Write a Python program that accepts the temperature in Celsius scale and prints on the screen the temperature in Fahrenheit scale.
Write a Python program which prints the area of a rectangular (formula: width X height)
Write a Python program to print the result of the following expression: a + b / 6-4 * (a + b) +14 -b