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
vredina [299]
3 years ago
10

Implement a program that requests four numbers (integer or floating-point) from the user. Your program should compute the averag

e of the first three numbers and compare the average to the fourth number. If they are equal, your program should print 'Equal' on the screen. >>>
Engineering
1 answer:
maks197457 [2]3 years ago
3 0

Answer:

#include<iostream>

int main() {

  float num_1, num_2, num_3, num_4, average;

  //Taking input for four numbers

  std::cout << "Enter first number(integer or floating-point)";

  std::cin >> num_1;

  std::cout << "Enter second number(integer or floating-point)";

  std::cin >> num_2;

  std::cout << "Enter third number(integer or floating-point)";

  std::cin >> num_3;

 

  std::cout << "Enter fourth number(integer or floating-point)";

  std::cin >> num_4;

  average= (num_1+num_2+num_3)/3;

 // Comparing average with fourth number

 if (average==num_4)

  {

  std::cout << "Equal";

 }

  return 0;

 }

You might be interested in
A well insulated turbine operates at steady state. Steam enters the turbine at 4 MPa with a specific enthalpy of 3015.4 kJ/kg an
Anarel [89]

Answer:

power developed by the turbine = 6927.415 kW

Explanation:

given data

pressure = 4 MPa

specific enthalpy h1 = 3015.4 kJ/kg

velocity v1 = 10 m/s

pressure = 0.07 MPa

specific enthalpy h2 = 2431.7 kJ/kg

velocity v2 = 90 m/s

mass flow rate = 11.95 kg/s

solution

we apply here  thermodynamic equation that

energy equation that is

h1 + \frac{v1}{2}  + q = h2 + \frac{v2}{2}  + w

put here value with

turbine is insulated so q = 0

so here

3015.4 *1000 + \frac{10^2}{2}  =  2431.7 * 1000 + \frac{90^2}{2}  + w

solve we get

w = 579700 J/kg = 579.7 kJ/kg

and

W = mass flow rate × w

W = 11.95 × 579.7

W = 6927.415 kW

power developed by the turbine = 6927.415 kW

7 0
3 years ago
5. (5 points) Select ALL statements that are TRUE A. For flows over a flat plate, in the laminar region, the heat transfer coeff
finlep [7]

Answer:

The following statements are true:

A. For flows over a flat plate, in the laminar region, the heat transfer coefficient is decreasing in the flow direction

C. For flows over a flat plate, the transition from laminar to turbulence flow only happens for rough surface

E. In general, turbulence flows have a larger heat transfer coefficient compared to laminar flows 6.

Select ALL statements that are TRUE

B. In the hydrodynamic fully developed region, the mean velocity of the flow becomes constant

D. For internal flows, if Pr>1, the flows become hydrodynamically fully developed before becoming thermally fully developed

Explanation:

7 0
3 years ago
About ceramics: Only can be optically opaque or semi-transparent. a) True b)-False
julia-pushkina [17]

Answer: True

Explanation: Ceramics have the property that when the band gap present between the atoms are larger than the light energy then the tend to become opaque because the light scattering is caused . They also show the property of being translucent when there are chances of the light to get a path through the surface of ceramic so they get the light at some parts e.g.porcelain .Therefore the statement given is true that ceramics can be optically opaque or semi-transparent(translucent).

6 0
3 years ago
: Câu nào dưới đây thể hiện sự thiếu tự chủ?
sukhopar [10]

Answer:

thành thật mà nói bởi vì cách những chiếc lá đang chuyển và cách mặt trời chiếu sáng.

3 0
3 years ago
On-site oil storage containers must be marked "Used Oil."<br><br> True. <br><br> False.
Scrat [10]

Answer:

How must used oil storage containers be marked? Containers and aboveground tanks used to store used oil at generator facilities must be labeled or marked clearly with the words “Used Oil" (40 CFR Section 279.22(c)).

Explanation:

i think it will help you

7 0
3 years ago
Other questions:
  • Concerned with the number of maintenance visits the rocket can undergo before being out of service, you have been informed that
    7·1 answer
  • Methane gas at 25°C, 1 atm enters a reactor operating at steady-state and burns with 80% theoretical air entering at 227°C, 1 at
    10·1 answer
  • Showing all of your work and algebra,generate an approximate expression for T as a function ofthe other variables. (b) Explain w
    12·1 answer
  • Water (cp = 4180 J/kg·°C) enters the 2.5 cm internal diameter tube of a double-pipe counter-flow heat exchanger at 17°C at a rat
    7·1 answer
  • Payment to beneficiaries who were named by<br> the insured person
    12·1 answer
  • Airplanes typically have a Pitot-static probe located on the underside that measures relative wind speed as the airplane flies.
    6·1 answer
  • A 5.74 kg rock is thrown upwards with a force of 317 N at a location where the local gravitational acceleration is 9.81 m/s^2. W
    10·1 answer
  • Free brainlist because im new and i just want to but you have t friend me first
    13·1 answer
  • A particle moving on a straight line has acceleration a = 5-3t, and its velocity is 7 at time t = 2. If s(t) is the distance fro
    7·1 answer
  • You want to see both Michael and Meet Wally Sparks. If you purchase tickets for both
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!