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
Motor oil is responsible for
Lelechka [254]

Answer:

lubricating all moving parts in the engine

Explanation:

like the pistons, pushrods, and the crank

5 0
3 years ago
Ammonia contained in a piston-cylinder assembly, initially saturated vapor at 0o F, undergoes an isothermal process during which
Rudik [331]

ANSWERS:

-P_{2(a)} =15.6lbf/in^2\\-P_{2(b)} =30.146lbf/in^2\\ T_{2(a)} =0^oF\\T_{2(b)} =0^oF\\x_{2(b)} =49.87percent

Explanation:

Given:

Piston cylinder assembly which mean that the process is constant pressure process P=C.

<u>AMMONIA </u>

state(1)

saturated vapor x_{1} =1

The temperature T_{1} =0^0 F

Isothermal process  T=C

a)

-V_{2} =2V_{1} ( double)

b)

-V_{2} =.5V_{2} (reduced by half)

To find the final state by giving the quality in lbf/in we assume the friction is neglected and the system is in equilibrium.

state(1)

using PVT data for saturated ammonia

-P_{1} =30.416 lbf/in^2\\-v_{1} =v_{g} =9.11ft^3/lb

then the state exists in the supper heated region.

a) from standard data

-v_{1(a)} =2v_{1} =18.22ft^3/lb\\-T_{1} =0^oF

at\\P_{x} =14lbf/in^2\\-v_{x} =20.289 ft^3/kg

at\\P_{y} =16 lbf/in^2\\-v_{y} =17.701ft^3/kg

assume linear interpolation

\frac{P_{x}-P_{2(b)}  }{P_{x}- P_{y} } =\frac{v_{x}-v_{1(a)}  }{v_{x}-v_{y}  }

P_{1(b)}=P_{x} -(P_{x} -P_{y} )*\frac{v_{x}- v_{1(b)} }{v_{x}-v_{y}  }\\ \\P_{1(b)} =14-(14-16)*\frac{20.289-18.22}{20.289-17.701} =15.6lbf/in^2

b)

-v_{2(a)} =2v_{1} =4.555ft^3/lb\\v_{g}

from standard data

-v_{f} =0.02419ft^3/kg\\-v_{g} =9.11ft^3/kg\\v_{f}

then the state exist in the wet zone

-P_{s} =30.146lbf/in^2\\v_{2(a)} =v_{f} +x(v_{g} -v_{f} )

x=\frac{v_{2(a)-v_{f} } }{v_{g} -v_{f} } \\x=\frac{4.555-0.02419}{9.11-0.02419} =49.87%

3 0
3 years ago
A right triangle has a base of 12 inches and a height of 30 inches, what is the centroid of the triangle?​
aliina [53]

Answer:

the correct answer is 42

4 0
3 years ago
Help I need to know if it’s true or false
e-lub [12.9K]

Answer:  False

explanation: for a bloodborne pathogen to spread you would have to have an open wound as well as the blood would have to get in it.

3 0
3 years ago
Why carbon is not used as a semiconductor material​
dmitriy555 [2]
Carbon is not used as semiconductor it has 4 valence electrons in it valence shell but the energy gap is very small it will conduct electricity even at room temperature ,the size of carbon is very small .
8 0
3 years ago
Other questions:
  • Which statement best describes how a hearing aid works?
    7·1 answer
  • Please help me fast, I don’t have time
    15·1 answer
  • The steel bar has a 20 x 10 mm rectangular cross section and is welded along section a-a. The weld material has a tensile yield
    11·1 answer
  • (TCO 1) Name one disadvantage of fixed-configuration switches over modular switches. a. Ease of management b. Port security b. F
    6·1 answer
  • Consider a section of muscle tissue of a cylindrical shape with a radius of 1.5 cm. During highly rigorous exercise, metabolic p
    8·1 answer
  • Calculate and plot the radial and circumferential stress distribution in the left ventricle at the end of systole (p 5 80 mmHg;
    13·1 answer
  • Help me i need this bad :)
    14·1 answer
  • Ppman2000 Aye Get On Treasure Quest and Join Masons Kingdom :D
    10·1 answer
  • Water flow enters a pipe at a velocity of 1m/s. The pipe inlet is 10cm. The pipe outlet is 6cm. 1. Determine the velocity of the
    9·1 answer
  • Briefly explain the term soil sampling and outline its importance in building engineering works.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!