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
koban [17]
3 years ago
15

Write a C program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, di

fference, and quotient of the two numbers.

Engineering
1 answer:
Bogdan [553]3 years ago
8 0

Answer:

View Image

Explanation:

Initialize your variable as a float or double since you're going to be using fractions in your answer.

User scanf() to get user input.

Print out the sum, product, quotient, and difference between the two numbers.

You might be interested in
I WILL GIVE BRAINLIEST IF ANSWER FAST What is the measurement on this Dial Caliper?
garik1379 [7]

Answer:

b i think i dont see any dial caliper

Explanation:

8 0
3 years ago
Steam at 20 bars is in the saturated vapor state (call this state 1) and contained in a pistoncylinderdevice with a volume of 0.
saul85 [17]

Answer:

Explanation:

Given that:

<u>At state 1:</u>

Pressure P₁ = 20 bar

Volume V₁ = 0.03 \mathbf{m^{3}}

From the tables at saturated vapour;

Temperature T₁ = 212.4⁰ C  ; v_1 = vg_1 = 0.0996 \mathbf{m^{3}} / kg

The mass inside the cylinder is m = 0.3 kg, which is constant.

The specific internal energy u₁ = ug₁ = 2599.2 kJ/kg

<u>At state 2:</u>

Temperature T₂ = 200⁰ C

Since the 1 - 2 occurs in an isochoric process v₂ = v₁ = 0.099 \mathbf{m^{3}} / kg

From temperature T₂ = 200⁰ C

v_f_2 = 0.0016 \ m^3/kg  

vg_2 = 0.127 \ m^3/kg  

Since  vf_2 < v_2 , the saturated pressure at state 2 i.e. P₂ = 15.5 bar

Mixture quality x_2 = \dfrac{v_2-vf_2}{vg_2 -vf_2}

x_2 = \dfrac{(0.099-0.0016)m^3/kg}{(0.127 -0.0016) m^3/kg}

x_2 = \dfrac{(0.0974)m^3/kg}{(0.1254) m^3/kg}

\mathsf{x_2 =0.78}

At temperature T₂, the specific internal energy u_f_2 = 850.6 \ kJ/kg , also ug_2 = 2594.3 \ kJ/kg

Thus,

u_2 = uf_2 + x_2 (ug_2 -uf_2)

u_2 =850.6  +0.78 (2594.3 -850.6)

u_2 =850.6  +1360.086

u_2 =2210.686 \ kJ/kg

<u>At state 3:</u>

Temperature T_3=T_2 = 200 ^0 C ,

V_3 = 2V_1 = 0.06 \ m^3

Specific volume v_3 = 0.2  \ m^3/kg

Thus; vg_3 =vg_2 = 0.127 \ m^3/kg ,

SInce v_3 > vg_3, therefore, the phase is in a superheated vapour state.

From the tables of superheated vapour tables; at v_3 = 0.2  \ m^3/kg and T₃ = 200⁰ C

The pressure = 10 bar and v =0.206 \ m^3/kg

The specific internal energy u_3 at the pressure of 10 bar = 2622.3 kJ/kg

The changes in the specific internal energy is:

u_2-u_1

= (2210.686 - 2599.2) kJ/kg

= -388.514 kJ/kg

≅ - 389 kJ/kg

u_3-u_2

= (2622.3 - 2210.686)  kJ/kg

= 411.614 kJ/kg

≅ 410 kJ/kg  

We can see the correct sketches of the T-v plot showing the diagrammatic expression in the image attached below.

3 0
3 years ago
The total floor area of a building, including below-grade space but excluding unenclosed areas, measured from the exterior of th
alex41 [277]

Answer:

Gross building area

Explanation:

The Gross building area refers to the entire area of a building covering all the floors. The measurement is expressed in square feet. The Gross building area also includes basements, penthouses, and mezzanines. It is calculated by estimating the exterior dimension of the building. Storage rooms, laundries, staircases are also a part of the gross building area.

6 0
3 years ago
A 4-L pressure cooker has an operating pressure of 175 kPa. Initially, one-half of the volume is filled with liquid and the othe
vodomira [7]

Answer:

the highest rate of heat transfer allowed is 0.9306 kW

Explanation:

Given the data in the question;

Volume = 4L = 0.004 m³

V_f = V_g = 0.002 m³

Using Table ( saturated water - pressure table);

at pressure p = 175 kPa;

v_f = 0.001057 m³/kg

v_g = 1.0037 m³/kg

u_f = 486.82 kJ/kg

u_g 2524.5 kJ/kg

h_g = 2700.2 kJ/kg

So the initial mass of the water;

m₁ = V_f/v_f + V_g/v_g

we substitute

m₁ = 0.002/0.001057  + 0.002/1.0037

m₁ = 1.89414 kg

Now, the final mass will be;

m₂ = V/v_g

m₂ = 0.004 / 1.0037

m₂ = 0.003985 kg

Now, mass leaving the pressure cooker is;

m_{out = m₁ - m₂

m_{out = 1.89414  - 0.003985

m_{out = 1.890155 kg

so, Initial internal energy will be;

U₁ = m_fu_f + m_gu_g

U₁ = (V_f/v_f)u_f  + (V_g/v_g)u_g

we substitute

U₁ = (0.002/0.001057)(486.82)  + (0.002/1.0037)(2524.5)

U₁ = 921.135288 + 5.030387

U₁ = 926.165675 kJ

Now, using Energy balance;

E_{in -  E_{out = ΔE_{sys

QΔt - m_{outh_{out = m₂u₂ - U₁

QΔt - m_{outh_g = m₂u_g - U₁

given that time = 75 min = 75 × 60s = 4500 sec

so we substitute

Q(4500) - ( 1.890155 × 2700.2 ) = ( 0.003985 × 2524.5 ) - 926.165675

Q(4500) - 5103.7965 = 10.06013 - 926.165675

Q(4500) = 10.06013 - 926.165675 + 5103.7965

Q(4500) = 4187.690955

Q = 4187.690955 / 4500

Q = 0.9306 kW

Therefore, the highest rate of heat transfer allowed is 0.9306 kW

5 0
3 years ago
A pin connection supports a load. Which type of connection would result in the smallest shear stress in the pin
Viktor [21]

Answer:

A single- shear pin connection.

Explanation:

8 0
1 year ago
Other questions:
  • The cables of a power line are copper-coated steel wire. The overall diameter of the wire is 5/8 in. The steel core has a diamet
    8·1 answer
  • Design a stepped-impedance low-pass filter having a cutoff frequency of 3 GHz and a fifth-order 0.5 dB equal-ripple response. As
    9·1 answer
  • 1. Under what conditions can soils be chemically stabilized?
    8·1 answer
  • What does it mean to wire solar cells in parallel vs. wiring them in series? I always get these switched around.​
    10·1 answer
  • What is the t max for a carbon steel heater tube?
    8·1 answer
  • - Consider a 2024-T4 aluminum material with ultimate tensile strength of 70 ksi. In a given application, a component of this mat
    7·1 answer
  • Airbags will deploy in a head on collision but not in a collision that occurs from angle
    13·1 answer
  • Our rule-of-thumb for presenting final results is to round to three significant digits or four if the first digit is a one. By t
    12·1 answer
  • Please answer the questions !
    8·1 answer
  • 3
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!