Part 1 Create a program that asks the user for a temperature in Fahrenheit, and then prints the temperature in Celsius. Search the 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

Answers

Answer 1

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


Related Questions

Cyberbullying someone by threatening to hurt them is ethically wrong, but does NOT violate any laws. True False

Answers

False there’s some laws depending how far you go
false hope this helps :)

Lazarus Consulting is a large computer consulting company in New York. Pete Lazarus, theà CEOà and founder, is well known for his philanthropic efforts. Pete knows that most of his employees contribute to nonprofit organizations and wants to reward them for their efforts while encouraging others to contribute to charities. Pete began a program that matches 50 percent of each employee donation. The only stipulations are that the charity must be a nonprofit organization and the company will match only up to $2,000 per year per employee.
Use the à data fileà provided to determine the following:
What was the total donation amount per organization?
What were the average donations per organization?

Answers

Answer:

There are too many weird characters in this question, so I am unable to fix it, comment on this with the correct characters so I can submit a correct answer.

Can I publish my book on Google?

Answers

Publish to Google Play and Google Books will display your book both on Google Books and in the Google Play Store. Publish to Google Books only will display your book on Google Books, with the full text searchable and the specified percentage available to read online.

Answer:

☆|《HOPE IT WILL HELP YOU 》>☆

Explanation:

YES YOU CAN PUBLISH YOUR BOOK ON GOOGLE

please mark my ans as BRAIN LIST

Which of these statements are true? A. You can select all the items in the section of the menu. B. In the center section of the menu only one item can be selected at a time. C. Details is selected. D. Thumbnails, tiles, icons, and list are selected.

Answers

Answer:

In the center section of the menu, only one item can be selected at a time.

Details is selected

Explanation:

What does the measurement tell you?

Planned value

Answers

Answer:

i think it is Planned Value is the approved value of the work to be completed in a given time. It is the value that you should have been earned as per the schedule. ... Total Planned Value for the project is known as Budget at Completion (BAC). Planned Value is also referred to as Budgeted Cost of Work Scheduled (BCWS).

Explanation:

im not sure tho srry if its wrong have a good day:)

Difference between entropy and enthalpy is

Answers

Answer:

Explanation:

Enthalpy is the measure of total heat present in the thermodynamic system where the pressure is constant. Entropy is the measure of disorder in a thermodynamic system.

give the imporntance of having standard funiture in the laboratory​

Answers

Answer:

I guess if there is experiment going on in absence one of those furniture then the experiment isn't successful

which role belongs to the operating systems
A.
identifying new viruses
OB.
helping the user operate without any hardware devices
O C.
assigning memory to a particular process
OD
preventing two processes from running simultaneously

Answers

Answer: D

Explanation:

kelly wants to buy a new operating system for a laptop. under which category will it be in online store?

Answers

Answer:

Kelly should look at the electronics section, where the laptops are because a laptop is an electronic. Just like an iPhone, iPad, and a TV.

Answer:

Application Software

Explanation:

How can you crop a photo in PowerPoint?

Answers

Answer:

Yea

Explanation:

jus click on the image and it should give you the option to crop it :)

Yes by clicking on the picture and selecting crop image

Class description: A MyString class should behave much like the c++ string class. The class should use a dynamically allocated char array to hold a character string. If the amount of memory allocated to the array is too small to complete some necessary task (e.g., assigning a new character string to the object) the object should automatically double its capacity until it is large enough to complete the task. If it's discovered that the object is using less than 25% of its capacity the object should shrink to half its capacity until it is using more that 25% of its capacity.
Assignment: Implement the MyString class using a header and implementation file named MyString.h and MyString.cpp respectively. Even though MyString.h will be provided on the upload site, create own version for testing code locally. Make sure to properly test code on by creating a test driver that fully tests every function created in the MyString class
Memory Requirements: MyString should start with 10 bytes of allocated memory and should grow in size by doubling. So, we should be able to predict the capacity of MyString as acquiring a patten of 10, 20, 40, 80, ⦠bytes of memory depending of the number of characters stored.
Attributes:
int size â the number of characters currently stored in the string object. Do NOT count the NULL character.
int capacity â the number of bytes currently allocated. This should always be at least size + 1. The extra byte is needed to store the NULL character.
char *data â character pointer that points to an array of characters.
Member Functions:
MyString( ) Constructor
MyString(const char *) Constructor with an initialization character string
~MyString( ) Destructor
MyString(const MyString &) Copy constructor
MyString& operator = (const MyString&) Overloaded assignment operator, make a copy of MyString object
bool operator == (const MyString&) const overloaded equivalence relational operator
char& operator [ ] (int) overloaded [ ] should return a char by reference
void operator += (const MyString&) overloaded += operator, use to concatenate two MyStrings
MyString operator + (const MyString&) const Create a new MyString object that is the concatenation of two MyString objects
void getline(istream&, char delimit = â\nâ); reads an entire line from a istream. Lines are terminated with delimit which is newline â\nâ by default
int length( ) const; return the length of the string
friend ostream& operator<< (ostream&, MyString&); overloaded insertion operator

Answers

You should do 40 points for this

Suppose a linked list of 20 nodes. The middle node has a data –250. Write the pseudocode to replace the middle node of the linked list with a new node and new data. Assume that the list's head pointer is called head_ptr and the data for the new node is called entry.

Answers

Answer:

The middle node has a data –250. ... Write The Pseudocode To Replace The Middle Node Of The Linked List With ... Assume That The List's Head Pointer Is Called Head_ptr And The Data For The New Node Is Called Entry ... Assume that the list's head pointer is called head_ptr and the data for the new node is called entry ...

Explanation:

What’s command do we use to update a file on MySQL?

Answers

Answer:

The MySQL update command/query is used to update existing records in a table in a MySQL database.

Hands-On Project 15-4 Make Network Cables
Using the tools and skills you learned about in this chapter, practice making a straight-through cable and a crossover cable. Use a cable tester to test both cables. Answer the following questions:
1. Which wiring standard did you use for the straight-through cable? List the pinouts (pin number and wire color) for each of the eight pins on each connector.
2. Will your crossover cable work on a Gigabit Ethernet network? List the pinouts (pin number and wire color) for each of the eight pins on each connector.

Answers

Answer:

1. You can use either standard (T-568A or T-568B) - but must keep the standard throughout the installation (can't mix A with B).

The B standard is preferred in the US.  A is mostly used overseas (Europe)

For A the proper wiring sequence is:

1 - Orange/White

2 - Orange

3 - Green / White

4 - Blue

5 - Blue / White

6 - Green

7 - Brown / White

8 - Brown

2. Cross over connections use a different pinout for one side of the cable.  The second side is wired normally.

Crossover connections are only used for device to device connections.  ( as in the case of connecting two NIC cards together directly).  They will not work if plugged into a switch or other network device.

Normal side - use the pinout from question #1

Crossover side:

1 Green / White

2 Green

3 Orange / White

4 Brown / White

5 Brown

6 Orange

7 Blue

8 Blue / White

Explanation:

what is input devices​

Answers

DescriptionIn computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, [[digital camera]The]s, joysticks, and microphones.

Answer:

An input Device are used to enter information such as letters, numbers, sounds or pictures into a computer.

Which design principle involves mentally dividing up an image with two horizontal lines and two vertical lines

Answers

Answer:

the answer is Rule of thirds

Rule of thirds involves mentally dividing up an image with two horizontal lines and two vertical lines

The rule of thirds is a creation decide that places the subject in the left or right third of an image, leaving the other 66% more open. While there are various sorts of synthesis, the norm of thirds all around prompts persuading and particularly made shots. The Rule of Thirds puts your subject on the left-third or right-third of the edge, making a delightful synthesis.

Rule of thirds involves mentally dividing up an image with two horizontal lines and two vertical lines.

For more information:

https://brainly.com/question/18964599?referrer=searchResults

how to write email abut new home your friend ​

Answers

Answer:

Start off with a greeting like Dear Sarah. Then you write a friendly body that tells about your home and describe it as much as you can and tell about what your bedroom theme is like and so on. Finally, top it off like a closing like Sincerely, Tessa.

Answer:

you start off by saying

Dear (name), talk about how your house is comforting and things like that... I hope thats what you were asking for.

Helppp!!! Will give brainliest! Which of these operating system use the organize file?

Hypervisor

Firmware or wetware

Folders or directories

Output devices

Answers

Answer:hyperviser

Explanation:

Compare a Wi-Fi hotspot with a cybercafé.

Answers

Answer:

A WiFi Hotspot is a wireless internet connection that allows a computer, smartphone, or any other internet-enabled devices to connect to internet access points.

A cybercafe refers to any business place that allows people to access the internet usually within its premises after paying for connection access to connect to it.

Explanation:

which of the following best describes compounds.
A. They can only be separated chemically
b. they are always liquid at room temperature
c. they contain the atoms of just one element
d. they have the same properties as their elements

Answers

A. They can only be separate chemically

Answer:

A.

Explanation:

Which of the following occupations is least likely to involve use of a computing device on a day-to-day basis?

Janitorial duties
Cashier in a bank
Journalist
Records clerk in a hospital

Answers

Answer:

Janitorial duties

Explanation:

Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two, and so on, with each line having one more asterisk than the previous line, up to the number entered by the user. On the next line write one fewer asterisk and continue by decreasing the number of asterisks by 1 for each successive line until only one asterisk is displayed. (Hint: Use nested for loops; the outside loop controls the number of lines to write, and the inside loop controls the number of asterisks to display on a line.) For example, if the user enters 3, the output would be:_______.a. *b. **c. ***d. **e. *

Answers

Answer:

Implemented using Python

n = int(input("Sides: "))

if(n>=1 and n <=50):

    for i in range(1,n+1):

         for j in range(1,i+1):

              print('*',end='')

         print("")

       

    for i in range(n,0,-1):

         for j in range(i,1,-1):

              print('*',end='')

         print("")

else:

         print("Range must be within 1 and 50")

Explanation:

This line prompts user for number of sides

n = int(input("Sides: "))

The line validates user input for 1 to 50

if(n>=1 and n <=50):

The following iteration uses nested loop to print * in ascending order

   for i in range(1,n+1):

         for j in range(1,i+1):

              print('*',end='')

         print("")

The following iteration uses nested loop to print * in descending order        

    for i in range(n,0,-1):

         for j in range(i,1,-1):

              print('*',end='')

         print("")

The following is executed if user input is outside 1 and 50

else:

         print("Range must be within 1 and 50")

Why do you think there is activity even when you are not actively using network services?

Answers

Answer:

Every social media platform has an algorithm, and just because you aren't using it, doesn't mean others are not engaged!

Explanation:

_____ is a framework based on JavaScript and HTML that is normally used to make dynamic web apps.

a
Python
b
CSS
c
AngularJS
d
A database

Answers

Answer:

AngularJS (c)

Explanation:

Answer:

AngularJS

node is better

Explanation:

Which of the following is a sign you may be drowsy behind the wheel?
A. Jitteriness
B. Happiness
C. Unhappiness
D. Irritability

Answers

The sign that you may be drowsy behind the wheel is Unhappiness. The correct option is C.

What are feelings?

Feelings and emotions vary fundamentally in that feelings are experienced consciously, whereas emotions manifest either consciously or subconsciously.

Some people may go years, if not a lifetime, without comprehending the depths of their feelings. Drowsiness encompasses symptoms such as tiredness, inability to keep busy, feeling uninteresting, and the absence of happiness.

Therefore, the correct option is C. Unhappiness.

To learn more about feelings, refer to the link:

https://brainly.com/question/13044426

#SPJ1

which of the following is a chemical change.

A: Separating water into different glasses
B: breaking frozen ice cubes with a hammer
c: running an electric current through water
d: boiling water to evaporate it on a stove.

Answers

Answer:c

Explanation:

What is this tool called?
*

Answers

Answer:

what tool?

Explanation:

It’s called a asterisk in math it’s also used for multiplication

1) An employer has decided to award a weekly pay raise to all employees by taking the square root of the difference between his weight and the employee’s weight. For instance, an employee who weighs 16 pounds less than the employer will get a $4 per week raise. The raise should be in whole dollars (an int). Write a class file that prompts the user for the employee and the employer weight. Please output the correct raise amount making sure that all inputs are included in the output statement.

Answers

Answer:

Written in C++

#include <iostream>

#include<cmath>

using namespace std;

int main(){

   int weight1, weight2, diff;

   cout<<"Employees Weight: ";

   cin>>weight1;

   cout<<"Employers Weight: ";

   cin>>weight2;

   diff = abs(weight1 - weight2);

   float pay = round(sqrt(diff));

   cout<<pay;

   return 0;

}

Explanation:

I've added the source file as an attachment where I used comments as explanation

In a singing competition, there are 34 more men than women
Find the number of women participants if the total number of
participants is 128.

Answers

Answer:

94 women are there

Explanation:

it is easy subtraction you only have to 128-34

Answer:

You have to start with 128 and then you subtract 34. Subtract them together and you get 94 participants. Isn't it that simple?

1. Discuss data processing concepts and the representation of data in the computer


2. Explain how they work together to process data

Answers

Answer:

gkvjbdsvjnmfbhui jgbfdshjcxvabgsuciusgBFIULWGSfuRyt vqwyrgfgweVGYGTV7BWUIEGDWYUGDCYg

Explanation:

Other Questions
In this food web, energy is transferred directly from the __ to the __. Someone is spinning a basketball on his finger. If it is spinning at a rate of 8.92 times per second, what is the basketball's angular velocity in units of radians per second? what was governmental policy toward strike which multiplication expression is equal to 5/6 divided by 1/2? Find the Perimeter of Polygon JKLMN. Round to the tenth.Please help! I am having an insanely hard time with this A spectral line is readto have a wavelength of 4700A. What isthis in meters? Which goal was supported by socialists, but not by Samuel Gompers? As an estimation we are told 3 is 4. Convert 15 to euros here are some numbers 2 9 14 36 40 what number is a multiple of 12 which number is a prime number which number is a factor of 64 IWhat is the sale price of a stereo that normally sells for $250.00 and is on sale for 10% off? Which characteristic describes the early Catholic Church? A starfishs top speed is approximately 161 centimeters per minute. What is this speed to the nearest centimeter per second? write a letter to your principal for lost of your school due book form What are some ways to make a higher education more affordable? This is the trial balance of Sandhill Co. on September 30. SANDHILL CO. Trial Balance September 30, 2022 Debit Credit Cash $23,640 Accounts Receivable 7,040 Supplies 4,670 Equipment 10,570 Accounts Payable $9,240 Unearned Service Revenue 3,670 Common Stock 19,440 Retained Earnings 13,570 $45,920 $45,920 The October transactions were as follows. Oct. 5 Received $1,380 in cash from customers for accounts receivable due. 10 Billed customers for services performed $5,300. 15 Paid employee salaries $1,130. 17 Performed $570 of services in exchange for cash. 20 Paid $1,990 to creditors for accounts payable due. 29 Paid a $310 cash dividend. 31 Paid utilities $460. Prepare a general ledger using T-accounts. Enter the opening balances in the ledger accounts as of October 1. CashAccounts Receivable SuppliesEquipmentAccounts PayableUnearned Service RevenueCommon StockRetained EarningsJournalize the transactions.Date Account Titles and Explanation Debit CreditPost to the ledger accounts. Cash10/1Bal. 23,400Accounts Receivable10/1Bal. 6,800Supplies10/1Bal. 4,300Equipment10/1Bal. 10,200Accounts Payable10/1Bal. 9,000Unearned Service Revenue 10/1 Bal. 3,300Common Stock 10/1 Bal. 19,200Retained Earnings 10/1 13,200DividendsService RevenueSalaries and Wages ExpenseUtilities ExpensePrepare a trial balance on October 31, 2014.SOLIS COMPANYTrial BalanceOctober 31, 2014Debit Credit Carrie is conducting an experiment on a solution. The solutions initial pH is 10. Then, as Carrie gradually adds Compound X into the solution, the pH decreases to 5. Which is the most likely identity of Compound X? * what are the beliefs in indonesia? what is the range of a function h(w) = 19- 3w if the domain is {-4, -1,2,5} Which part of the Fourteenth Amendment defines anyone born or naturalizedin the United States as a citizen?A. The citizenship clauseB. The equal protection clauseC. The naturalization clauseD. The enforcement clauseSUBMIT Joe borrowed $4,000 from the bank at a rate of 7% simple interest per year. How much interest did he pay in 4 year?In 4 years, joe pays $blank In interest.