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 three-point bending test was performed on an aluminum oxide specimen having a circular cross section of radius 5.6 mm; the spe
ankoles [38]

Answer:

F =  8849 N

Explanation:

Given:

Load at a given point = F =  4250 N

Support span = L = 44 mm

Radius = R = 5.6 mm

length thickness of tested material = 12 mm

First compute the flexural strength for circular cross section using the formula below:

σ_{fs} = F_{f} L / \pi  R^{3}

σ = FL / π R³

Putting the given values in the above formula:

σ = 4250 ( 44 x 10⁻³ ) / π  ( 5.6 x 10⁻³ ) ³

  = 4250 ( 44 x 10⁻³ )  / 3.141593 ( 5.6 x 10⁻³ ) ³

  = 4250 (44 x 1 /1000 )) / 3.141593 ( 5.6 x 10⁻³ ) ³

  = 4250 ( 11 / 250  ) / 3.141593 ( 5.6 x 10⁻³ ) ³

  = 187 / 3.141593 ( 5.6 x 1 / 1000 ) ³

  = 187 / 3.141593 (0.0056)³

  = 338943767.745358

  = 338.943768 x 10⁶

σ = 338 x 10⁶ N/m²

Now we compute the load i.e. F from the following formula:

F_{f} = 2 σ_{fs} d³/3 L

F = 2σd³/3L

  = 2(338 x 10⁶)(12 x 10⁻³)³ / 3(44 x 10⁻³)

  = 2 ( 338 x 1000000 ) ( 12 x 10⁻³)³ / 3 ( 44 x 10⁻³)

  = 2 ( 338000000 ) ( 12 x 10⁻³)³ / 3 ( 44 x 10⁻³)

  = 676000000 ( 12 x 10⁻³)³ / 3 ( 44 x 10⁻³)

  = 676000000 ( 12  x  1/1000  )³ / 3 ( 44 x 10⁻³)

  = 676000000 (  3  / 250  )³ / 3 ( 44 x 10⁻³)

  = 676000000 (  27  / 15625000 )  / 3 ( 44 x 10⁻³)

  = 146016  / 125 / 3 ( 44 x 1 / 1000  )

  = ( 146016  / 125 ) /  (3 ( 11 /  250 ))

  =  97344  / 11

F =  8849 N

4 0
3 years ago
HELP PLEASE!!!!!!!!!!!
MAXImum [283]
C is your answers!!!!!$3&2)//
7 0
3 years ago
Read 2 more answers
wo companies, Ajax Co. and Boho Inc., were negotiating a merger. In the course of the negotiations, an Ajax representative told
boyakko [2]

Answer:

Yes

Explanation:

If the Ajax representative fails to correct the previous statement this can cause misrepresentation.

4 0
2 years ago
A device that transforms electrical energy to mechanical:
xxTIMURxx [149]

Answer:

electric motor

*** brainly if possible

Explanation:

3 0
2 years ago
Water is contained in a piston-cylinder assembly undergoes four processes separately, all started from an initial state where th
Andrews [41]

Answer:

see pictures

Explanation:

In the pictures you can see the different processes.

3 0
3 years ago
Other questions:
  • A pipe of 10 cm inner diameter is used to send crude oil over distance of 400 meters. The entire pipe was laid horizontal. The v
    5·1 answer
  • When you are configuring data deduplication, you must choose a usage type for the volume you are configuring. Which of the follo
    8·1 answer
  • A displacement transducer has the following specifications: Linearity error ± 0.25% reading Drift ± 0.05%/○C reading Sensitivity
    8·1 answer
  • What is a two stroke engine and what is a four stroke engine, please keep the definitions as simple as can be and please explain
    8·2 answers
  • For problems 1 and 2, six luminaires, similar to Style E used in the Commercial Building, are to be installed in a room that is
    13·1 answer
  • The four strokes in a four stroke cycle engine in proper order.
    7·1 answer
  • Which engineers are requried to have a PE (professional engineer) license?
    13·2 answers
  • A signalized intersection approach has three lanes with no exclusive left or right turning lanes. The approach has a 40-second g
    10·1 answer
  • A kernel-level thread wishes to acquire a mutex lock declared as global in the process. True or False: the function call used be
    6·1 answer
  • How much memory can a 32 -bit processor support ?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!