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
(50 points) Jeff wants to create a responsive web page where elements change size according to the size of the window. How would
iris [78.8K]

Answer:

make the element sizes a percentage

Explanation:

Without using a framework specified for this type of thing such as Bootstrap, the best way to do this would be to make the element sizes a percentage. By making the size of everything a percentage it will automatically resize itself to take up the same percentage of the screen at all times. Even when the browser window is resized to any size that the user wants. This also applies to monitors of different sizes and mobile devices.

5 0
3 years ago
TQ Artificial Intelligence (AI)
dybincka [34]
Ask Elon Musk he knows
8 0
3 years ago
Which of the following occupations groups falls under the professional and related cluster?
velikii [3]
All choices are correct.
6 0
3 years ago
Computer data that is suitable for text​
TiliK225 [7]

<em>Answer:</em>

<em>Answer:Data Types. Computer systems work with different types of digital data. In the early days of computing, data consisted primarily of text and ...</em>

3 0
3 years ago
If numbers are sorted from the lowest number to the highest number, they are in _____ order.
pogonyaev
They ard in ascending order
5 0
4 years ago
Read 2 more answers
Other questions:
  • A student is going to give a multimedia presentation comparing the novel The Wizard of Oz by L. Frank Baum to the 1939 movie ver
    5·2 answers
  • HELP ASAP U GET BRAINLIEST
    15·2 answers
  • This LEGENDARY character made a much-celebrated comeback in 2017. What was the name of the villain he faced in this epic tale?
    7·2 answers
  • You are given two int variables j and k, an int array zipcodeList that has been declared and initialized, an int variable nZips
    10·2 answers
  • Servlet session and JSP session have differentabilities.<br>? True<br><br>? False
    15·1 answer
  • Software is nothing but a piece of code or set of instructions written in a chip to run a hardware device on the Computer. O Tru
    14·1 answer
  • Where are the worksheet tabs located
    7·1 answer
  • Write an expression to compute the quartic root of x. the quartic root of a number is the square root of its square root. exampl
    11·1 answer
  • Do you have to make a account of Windows 10?
    12·1 answer
  • Cotización de un software
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!