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
almond37 [142]
3 years ago
7

C+ Write a program that converts degrees Fahrenheit to Celsius using the following formula. degreesC = 5(degreesF – 32)/9

Engineering
1 answer:
Yanka [14]3 years ago
4 0

Answer:

Written in C++

#include<iostream>

#include<cmath>

using namespace std;

int main()

{

float degreeC, degreeF;

cout<<"Degree Fahrenheit: ";

cin>>degreeF;

degreeC = 5 * (degreeF - 32)/9;

cout<<"Degree Celsius: "<<degreeC<<" C";  

return 0;

}

Explanation:

The question requests that input should be in degree Fahrenheit

Declare all necessary variables

float degreeC, degreeF;

Prompt user for input in degrees Fahrenheit as stated in the question

cout<<"Degree Fahrenheit: ";

Get User Input

cin>>degreeF;

Convert degree Fahrenheit to Celsius

degreeC = 5 * (degreeF - 32)/9;

Display output

cout<<"Degree Celsius: "<<degreeC<<" C";  

You might be interested in
Bob and Alice are solving practice problems for CSE 2320. They look at this code: for(i = 1; i &lt;= N; i = (i*2)+17 ) for(k = i
MissTica

Answer:

Alice is correct.

The loop are dependent.

Explanation:

for(i = 1; i <= N; i = (i*2)+17 )

for(k = i+1; k <= i+N; k = k+1) // notice i in i+1 and i+N

printf("B")

This is a nested for-loop.

After the first for-loop opening, there is no block of statement to be executed rather a for-loop is called again. And the second for-loop uses the value of i from the first for-loop. The value of N is both called from outside the loop.

So, the second for-loop depend on the first for loop to get the value of i. For clarity purpose, code indentation or use of curly brace is advised.

8 0
3 years ago
Read 2 more answers
What is the standard half-cell potential for the oxidation of methane under acidic conditions? The reaction for methane is as fo
Yuri [45]

Answer:

The element that is oxidized is carbon.

Its oxidation state increased. It increased from -4 to +4

Explanation:

Oxidation is a process that involves increase in oxidation number.

The oxidation number of carbon in CH4 is -4

C + (1×4) = 0

C + 4 = 0

C = 0 - 4 = -4

The oxidation number of carbon in CO2 is +4

C + (2×-2) = 0

C - 4 = 0

C = 0+4 = 4

Increase in the oxidation number of carbon from -4 to +4 means carbon is oxidized

4 0
3 years ago
Write a SELECT statement that returns the same result set as this SELECT statement, but don’t use a join. Instead, use a subquer
Bess [88]

Answer:

See explanation

Explanation:

The complete question is

Write a SELECT statement that returns the same result set as this SELECT statement, but don't use a

join. Instead, use a subquery in a WHERE clause that uses the IN keyword.

SELECT DISTINCT category_name

FROM categories c JOIN products p

ON c.category_id = p.category_id

ORDER BY category_name

The join clause  gives us all the registers of both tables, for which the category_id of categories coincides to  the category_id in the table products. That is, we can first select the distinct category_id's from products and the see the categories from categories table, whose id is in that list. That means writing the following query:

Select distinct category_name

from categories c

where c.category_id in (

select distinct p.category_id

from products p)

order by category_name

4 0
4 years ago
The average on a history exam (scored out of 100 points) was 85, with a standard deviation of 15. Is the distribution of the sco
Leviafan [203]

From the statement it is determined that the maximum limit is 100 and the lower limit is 0. At the same time there is an average of 85 that is closer to the upper limit than the lower limit, therefore the distribution will tend to occur to the left .

This will mean that people will begin to surround the average of 85 and that those who are 60, will be more than those who are below 50, and these 50 will be more than those who are by 40 and so on.

3 0
4 years ago
A supply fan is operating at 30000 cfm and 4 inch of water with an efficiency of 50%. (a) Calculate the fan power at the current
serg [7]

Answer:

The pressure and power of fan is 1.77 and 11.18 Hp respectively.

Explanation:

Given:

Discharge Q_{1}  = 30000 cfm

Pressure difference \Delta P = 4 inch

Efficiency \eta = 50\%

(A)

From the formula of fan power,

     P _{1}  = \frac{Q \Delta P}{6356 \eta}

     P_{1}  = \frac{30000 \times 4}{6356 \times 0.5}

     P_{1}  = 37.76 Hp

(B)

Fan power and pressure is given by,

We know that pressure difference is proportional to the square of discharge.

    \frac{\Delta p_{2} }{\Delta P_{1} } = (\frac{Q_{2} }{Q_{1} } ) ^{2}

   \Delta P_{2}  = (\frac{20000}{30000} ) \times 4

   \Delta P_{2} = 1.77

Fan power proportional to the cube of discharge.

       \frac{P_{2} }{P^{1} }  = (\frac{Q_{2} }{Q_{1} } )^{3}

       P_{2} =   \  (\frac{20000}{30000} ) ^{3} \times 37.76

       P_{2} = 11.18 Hp

Therefore, the pressure and power of fan is 1.77 and 11.18 Hp respectively.

5 0
3 years ago
Other questions:
  • Suppose a steam locomotive is rated at 7500 horsepower. If its efficiency is 6%, how much wood must be burned in a 3-hour trip?
    11·1 answer
  • A hypodermic syringe is used to apply a vaccine. If the plunger is moved forward at the steady rate of 20 mm/s and if vaccine le
    14·1 answer
  • Air flows steadily and isentropically from standard atmospheric conditions to a receiver pipe through a converging duct. The cro
    14·1 answer
  • A _________ is a PLD featuring a general structure that allows very high logic capacity and offers more narrow logic resources a
    5·1 answer
  • A local reaction is when a chemical enters the bloodstream?
    5·1 answer
  • Engineering is the use of scientific principles to design and build machines, structures, and other items, including bridges, tu
    8·1 answer
  • Can someone please do this for me ive been sick for the past week and am behind
    6·1 answer
  • Define the term 'Computer​
    8·2 answers
  • What information you would gain by watching the video. Plz Help due today.
    6·1 answer
  • Using data in Appendix A ,calculate the number of atoms in 1 tonne of iron
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!