1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
a_sh-v [17]
2 years ago
12

Part 1 Create a program that asks the user for a temperature in Fahrenheit, and then prints the temperature in Celsius. Search t

he Internet for the correct calculation. Look at Chapter 1 for the miles-per-gallon example to get an idea of what should be done.
Part 2 Create a new program that will ask the user for the information needed to find the area of a trapezoid, and then print the area.

Part 3 Create your own original problem and have the user plug in the variables.

IN PYTHON
Computers and Technology
1 answer:
antoniya [11.8K]2 years ago
5 0

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))

You might be interested in
What are two advantages of a pay-for-use online conferencing service compared to a free service? (Choose two)
tester [92]

Answer:

Provision of both audio and video

,dedicated support

Explanation:

Free services are not dedicated digital lines so there is no guarantee of high-quality sound or a reliable connection during the call. Some common issues  are background noises, crackling, echoes, distortion, quietness and drop-outs.Free services also don't offer dedicated support so if anything goes wrong there's nobody available to help you. Any of these problems can ruin the productivity and flow of your meeting.

5 0
3 years ago
Approximately how long did it take, in minutes, for the body to return to normal after the intake of water.
labwork [276]

Answer:

30

Explanation:

it takes 30 minutes to digest

5 0
2 years ago
BRAINLIEST You have a small company and want to keep your costs low, but it is important your employees share data. Which networ
solmaris [256]

Answer:Peer-to-peer

Explanation: I hope this helps

5 0
2 years ago
Read 2 more answers
Sizing handles are used in Microsoft® Word® to _____.
Kamila [148]
<span>Sizing handles are used in Microsoft Word to resize an object.</span>
8 0
3 years ago
Borrowing money affects both assests and owners equity. True or false?​
shtirl [24]
It should be true, hopefully I’m right
6 0
2 years ago
Other questions:
  • Which type of architecture places a firewall in front of the VPN to protect it from Internet-based attacks as well as behind a f
    6·1 answer
  • Using the expected format, of putting key information where the reader can’t find it, is an example of?
    8·2 answers
  • How can you tell that you're driving in the right direction?
    14·1 answer
  • Experienced students may serve as mentors if they are at least age 21 and have at least 3 years of post-secondary education. In
    5·1 answer
  • When sketching out your Web site you create a clear and straightforward site map that divides the Web site content into a logica
    9·1 answer
  • 20 POINTS AND BRAINLIEST TO CORRECT ANSWER
    15·2 answers
  • How many of yall are willing too sub to my channel called "Space Juice" with around 200 subs?!​
    6·1 answer
  • What techniques overcome resistance and improve the credibility of a product? Check all that apply.
    8·1 answer
  • PLEASEEEEEE HELP, ILL DO ANYTHING JUST ANSWER THESE CORRECTLY!!!!!TYSM!!!
    15·2 answers
  • if you were determining what was expected of you simply by looking at media, what messages would you take away?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!