Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data Programming l: Write a program that takes two numbers. Get the first number as an integer and the second one as a float number.
Data Programming l:
- Write a program that takes two numbers. Get the first number as an integer and the second one as a float number. Then, compute the following expressions: number1//2, number1/number2, number1*number2, and 3**number2. Display the result and type of each expression. (Should use type function to get the type of each expression)
Output:
Number1 is 17
Number2 is 12.0
17//2 = 8 ,
17/12.0 = 1.4166666666666667 ,
17*12.0 = 204.0 ,
3**12.0 = 531441.0 ,
- Write a program that takes a number as a Fahrenheit temperature, and convert it to the Celsius temperature, and print out the converted temperature. Use the round function to have at most 2 decimal places in the output.
Output:
The 75 degree Fahrenheit is equal to 23.89 degree Celsius.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started