Answered step by step
Verified Expert Solution
Link Copied!

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:

  1. 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 ,

  2. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

Does it avoid use of underlining?

Answered: 1 week ago