Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this assignment, we shall write a program to - Calculate the circumference of

ID: 671171 • Letter: I

Question

In this assignment, we shall write a program to - Calculate the circumference of circles, and convert temperature from Celsius to farenheit. Your program should do the following steps: Ask the user for her/his full name (i.e. ask the user to enter First Name space Last Name using a single input function). Ask the user to enter the number of characters in her/ his First Name. Greet the user by printing Hello First Name. Notice, that this greeting should only print the first name and not the second name. Ask the user to enter the radius of the circle whose circumference is to be calculated. Calculate the circumference using the equation 2*pi*radius. Print this calculated circumference with a nice message like The circle's circumference is Ask the user to enter a temperature in Celsius. Calculate the temperature In farenheit (google the formula to convert from Celsius to farenheit if you do not know) Print this calculated temperature with a nice message like The temperature In farenheit is REMEMBER - The user's full name will be text while the radius and temperature will be numbers, specifically with decimal points.

Explanation / Answer

import math

name=raw_input("Enter your name : ")
fLen=int(input("Enter the length of the first name: "))
fname=""
for i in range(0,fLen):
fname=fname+name[i]
print "Hello ",fname
radius=float(input("Enter the radius of circle: "))
circum=2*radius*math.pi
circum=round(circum,2)
print "Circumference of the cicle: ",circum
c=float(input("enter the temperature in celsius: "))
f=(1.8)*c+32
f=round(f,2)
print "The temperature in farenheit: ",f

I hope this is python program as you asked to use input function