Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output
Answers
Answer:
There are many answers choose it
Explanation:
2.2: Write a porgram that uses raw_inputto prompt a user for their name and then welcomes themname = raw_input("Enter your name: ")print "Hello",name2.3: Write a program to prompt the user for hours and rate per hour to compute gross payhours = raw_input('Enter Hours: ')rate = raw_input('Enter Rate: ')pay = float(hours) * float(rate)print pay 2.5: Write a program which prompts the user for a Celsius temperature, convert the temperature to Farenheit, and print out the converted temperature. tempC = raw_input('What tempterature is it outside? ')tempF = 9.0/5.0 * float(tempC) + 32print 'Oh, did you mean',tempF,'Fahrenheit?'3.1: Rewrite your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours.hours = raw_input('Enter Hours: ')rate = raw_input('Enter Rate: ')hours = float(hours)rate = float (rate)if hours > 40:pay = (((hours - 40) * 1.5) * rate) + 40 * rate