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]
4 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]4 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
A cylindrical metal specimen having an original diameter of 10.55 mm and gauge length of 54.5 mm is pulled in tension until frac
kumpel [21]

Answer:

(a) 53.94%

(b) 26.61%

Explanation:

Change in area will be given by

\triangle A=\frac {\pi(R_o^{2}-r_n^{2})}{\pi R_o^{2}} where \triangle A represent change in area R is radius and subscripts O and n represent original and new respectively.

Substituting 10.55/2 for original radius and 7.16/2 for new radius then

\triangle A=\frac {\pi(5.275^{2}-3.58^{2})}{\pi 5.275^{2}}\times 100\approx 53.94

(b)

Similarly, percentage elongation will be found by dividing the change in length by the the original length. In this case, rhe original length was 54.5mm and goes to 69 mm so the change in length is given by subtracting the final length from the original length

Percentage elongation is \frac {69-54.5}{54.5}\times 100\approx 26.61

6 0
4 years ago
Suppose an underground storage tank has been leaking for many years, contaminating a groundwater and causing a contaminant conce
Ghella [55]

Answer: the cancer risk for an adult male drinking the water for 10 years is 2.88 × 10⁻⁶

Explanation:

firstly, we find the time t required to travel for the contaminant to the well;

Given that, contamination flowing rate = 0.5 ft/day

Distance of well from the site = 1 mile =  5280 ft

so t = 5280 / 0.5 = 10560 days

k is given as 1.94 x 10⁻⁴ 1/day

next we find the Pollutant concentration Ct in the well

Ct = C₀ × e^-( 1.94 x 10⁻⁴ × 10560)

Ct = 0.3 x e^-(kt)  

Ct= 0.0386 mg/L

next we determine the chronic daily intake, CDI

CDI =  (C x CR x EF x ED) / (BW x AT)

where C is average concentration of the contaminant(0.0368mg/L), CR is contact rate (2L/day), EF is exposure frequency (350days/Year), ED is exposure duration (10 years), BW is average body weight (70kg).

now we substitute  

CDI = (0.0368 x 2 x 350 x 10) / ((70x 365) x 70)

= 257.7 / 1788500

= 0.000144 mg/Kg.day

CDI = 1.44 x 10⁻⁴ mg/kg.day  

Finally we calculate the cancer risk, R

Slope factor SF is given as 0.02 Kg.day/mg

Risk, R = I x SF

= 1.44 x 10⁻⁴ mg/kg.day  x 0.02Kg.day/mg    

R = 2.88 × 10⁻⁶

therefore the cancer risk for an adult male drinking the water for 10 years is 2.88 × 10⁻⁶

7 0
3 years ago
The moons light-colored highlights are
gulaghasi [49]
The light colored material in areas of the mood is the earliest crust on the moon.
3 0
3 years ago
What the different methods to turn on thyrister and how can a thyrister turned off​
myrzilka [38]

Answer:

forward voltage triggering

temperature triggering

dv/dt triggering

light triggering

gate triggering

Then turning off;

Turn off is accomplished by a "negative voltage" pulse between the gate and cathode terminals

Explanation:

hope it helps

8 0
3 years ago
Which of the following can minimize engine effort in save fuel
pentagon [3]

Answer:

hmm

Explanation:

How to Save Fuel

Keep your vehicle's engine in good condition.

Maintain proper air pressure in your tires.

The faster you travel, the greater your fuel consumption is.

Try to speed up gradually when you stop for a traffic light.

Try to drive smoothly.

Do not allow your engine to idle.

hope this helps

7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the difference between the Otto and Diesel engine?
    7·1 answer
  • A pump collects water (rho = 1000 kg/m^3) from the top of one reservoir and pumps it uphill to the top of another reservoir with
    13·1 answer
  • Fred wants to help his customer understand his vision for constructing the office interior. Which visual representation will bes
    8·1 answer
  • What change in the sound do you expect to hear when you increase the amplitude of
    14·1 answer
  • The passage says that the president's guests "believed the rest at the 'Little
    13·1 answer
  • This is due in a few hours but I appreciate it if it was answered soon so I can rest.
    5·1 answer
  • During a storm, gage station A was inoperative but the surrounding stations, B, C, and D, recorded rainfall of 5.2, 4.5, and 6.1
    14·1 answer
  • Is Tesla French, American, German, or Russian?
    10·2 answers
  • What would be the structure for the body points for a persuasive presentation?.
    8·1 answer
  • The on-board computer controls the suspension system based on inputs from?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!