Answer:
Written in Python
import math
#1. Temperature Conversion
degreeF = float(input("Degree Fahrenheit: "))
degreeC = (degreeF - 32) * 5/9
print("Degree Celsius: "+str(round(degreeC,2)))
#2. Area of Trapezoid
Base1 = float(input("Base 1: "))
Base2 = float(input("Base 2: "))
Height = float(input("Height: "))
Area = 0.5 * (Base1 + Base2) * Height
print("Area: "+str(round(Area,2)))
#3. Addition of Two Numbers
Num1 = float(input("Number 1: "))
Num2 = float(input("Number 2: "))
print("Result: "+str(Num1 + Num2))
Explanation:
This line imports the math library
import math
Program 1 starts here
#1. Temperature Conversion
This line prompts users for input in degree Fahrenheit
degreeF = float(input("Degree Fahrenheit: "))
This line converts to degrees Celsius
degreeC = (degreeF - 32) * 5/9
This line prints the converted degree
print("Degree Celsius: "+str(round(degreeC,2)))
Program 2 starts here
#2. Area of Trapezoid
The next three lines prompts user for necessary inputs
Base1 = float(input("Base 1: "))
Base2 = float(input("Base 2: "))
Height = float(input("Height: "))
This line calculates the area
Area = 0.5 * (Base1 + Base2) * Height
This line prints the area
print("Area: "+str(round(Area,2)))
The third program begins here. I've decided to write a program that sums two numbers
#3. Addition of Two Numbers
The next two lines prompt user for inputs
Num1 = float(input("Number 1: "))
Num2 = float(input("Number 2: "))
This line calculates and prints the sum
print("Result: "+str(Num1 + Num2))