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
In poor weather, you should _______ your following distance.
jasenka [17]

In poor weather, you should <u>double</u> your following distance.

6 0
3 years ago
A material point in equilibrium has 1 independent component of shear stress in the xz plane. a)True b)- False
ozzi

Answer:

True

Explanation:

For point in xz plane the stress tensor is given by\left[\begin{array}{ccc}Dx_{} &txz\\tzx&Dz\\\end{array}\right]

where Dx is the direct stress along x ; Dz is direct stress along z ;  tzx and txz are the  shear stress components

We know that the stress tensor matrix is symmetrical which means that tzx = txz  ( obtained by moment equlibrium )

thus we require only 1 independent component of shear stress to define the whole stress tensor at a point in 2D plane

8 0
3 years ago
The part of a circuit that carries the flow of electrons is referred to as the?
Oksanka [162]

Answer:

  Conductor

Explanation:

Current is carried by a conductor.

__

The purpose of a dielectric and/or insulator is to prevent current flow. An electrostatic field may set up the conditions for current flow, but it carries no current itself.

7 0
3 years ago
Question 40 and the next Question 41
TEA [102]

Answer:

there's no photo? but I'm willing to help

8 0
2 years ago
3. It's
jeyben [28]

Answer:

right answer is option no d

6 0
3 years ago
Other questions:
  • For the following conditions determine whether a CMFR or a PFR is more efficient in removing a reactive compound from the waste
    9·1 answer
  • Mike is involved in developing the model building codes that various states and local authorities in the United States adopt. He
    6·1 answer
  • There is an electric field near the Earth's surface whose magnitude is about 145 V/m . How much energy is stored per cubic meter
    14·1 answer
  • Who is using welding symbols to to communicate the detailed information necessary for welders to complete the weld?
    6·1 answer
  • You talk with the owner and he likes the idea of using two large glulam beams as shown to carry the joist loads. Design the glul
    5·1 answer
  • How many astronauts work<br> in the International Space Station
    7·1 answer
  • What have you learned from the previous lesson? Let's try to check your prior knowledge
    9·1 answer
  • PLZZZZZ HELP
    10·2 answers
  • Recall the steps of the engineering design process. Compare and contrast the
    9·1 answer
  • What Is Photosynthesis ?​
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!