3: http://AlgoritmosUrgentes.com/en/py.php?...
1.
Write the following Python expressions in mathematical notation.
a) dm = m * (sqrt(1 + v / c) / sqrt(1 - v / c) - 1)
b) volume = pi * r * r * h
c) volume = 4 * pi * r ** 3 / 3
d) z = sqrt(x * x + y * y)
2.
The following pseudocode describes how to extract the dollars and cents from a price given as a
floating-point value. For example, a price of 2.95 yields values 2 and 95 for the dollars and cents.
? Read a price from the user
? Covert the inputstring type to a floating variable price
? Convert the price to an integer and store it in a variable dollars
? Multiply the difference (price – dollars) by 100 and add 0.5
? Convert the above difference result to an integer variable and store it in a variable cents
3.
Write a Python program that prompts the user for student's grade, given as a percentage. It will
then output the letter grade the student earned.
? A: >= 85%
? B: >= 75%
? C: >= 65%
? D: >= 55%
? F: < 55%
The program should also output a message if the user inputs an invalid number, less than 0 or greater
than 100. Here are a couple example runs.