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]
3 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]3 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 is the best programming language
pashok25 [27]

Answer:

Ther are 8 best programming language :

• Javascript

• Swift

• Scala

• Go

• Python

• Elm

• Ruby

• C#

4 0
2 years ago
What shows on the web, what is behind the web (source code) and what is placed on the server (database) , is known as web source
slega [8]

Answer:

A. True

Explanation:

Websites are created using html, css, javascript and other web based programming languages. When a website page is requested, the host server sends the copy of the source code to the web browser of the client system, the web browser is able to interpret the source code and displays the graphical representation on the web browser for the client.

3 0
3 years ago
Roses are red, violets are blue, I'm going to ki.ll myself, to make life better for you.
Shtirlitz [24]

Answer:

i like this poem helps out the world

Explanation:

p,s. deserves brainiest

6 0
3 years ago
Read 2 more answers
What does IP stand for (as in IP address)? Also, what is overtype mode?
tino4ka555 [31]
An  IP address is mostly for your WIFI . Internet Protocol . 

Overtype Mode is where you are making changes to text (putting in new characters) 
4 0
3 years ago
Rebecca is creating a method for her class, but wants to make sure that a variable in the method satisfies a conditional phrase.
astraxan [27]

Answer:

D. an assertion

From PLATO

6 0
3 years ago
Other questions:
  • How does the browser display the same webpage whether you enter the URL or the IP address in the address bar? what system transl
    11·1 answer
  • A ____ is text and graphics that print at the bottom of every page.
    12·1 answer
  • A way to minimize technical problems with your computer
    14·1 answer
  • ​In addition to joint application development, another popular user-oriented method is _____, which resembles a condensed versio
    14·1 answer
  • What does the following loop do?
    5·1 answer
  • What is the internet ?
    11·2 answers
  • Which one of these is correct PI of a XML document?
    13·1 answer
  • Select what's true about Search Engine Companies. Check All That Apply The information contained in a search engine database is
    12·1 answer
  • 1.
    13·1 answer
  • When you check your hard drive to see how much space is available, you are checking your
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!