###############################################################
## File Name: 02_exercise.py
## File Type: Python File
## Author: surge55
## Course: Python 4 Everybody
## Chapter: Chapter 2 
## Excercise: n/a
## Description: Code playground and walkthrough from book 
## Other References: n/a
###############################################################



# Playground Text
# x = 15
# x = x + 5
# print(x)

# Exercise (Chapter 2)
# Exercise 2: Write a program that uses input to prompt a user for their name and then welcomes them.
# name = input('Enter your name:\n')
# print("Hello", name)

# Exercise 3: Write a program to prompt the user for hours and rate per hour to compute gross pay.
# hours = float(input("Enter Hours: "))
# rate = float(input("Enter Rate: "))
# print("Pay:", hours*rate)

# Exercise 4: Assume that we execute the following assignments:
# width = 17
# height = 12.0
# # For each of the below, write the value of the expression and the type

# print('My Guess: 8') 
# print('Ans:', width//2)

# print('My Guess: 8.5')
# print('Ans:', width/2.0)

# print('My Guess: 4.0')
# print('Ans:', height/3)

# print('My Guess: 11')
# print('Ans:', 1 + 2 * 5)



# Exercise 5: Write a program which prompts the user for a Celsius temperature, 
# convert the temperature to Fahrenheit, and print out the converted temperature.

# celsius = float(input("Enter Temp in C: "))
# farenheit = (celsius*9/5) + 32
# print("Farenheit:", farenheit)