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
It is true about Metals and alloys: a)-They are good electrical and thermal conductors b)-They can be used as semi-conductors c)
ycow [4]

Answer:

(d) a and c are correct

Explanation:

METALS : Metal are those materials which has very high ductility, high modulus of elasticity, good thermal and electrical conductivity

for example : iron, gold ,silver, copper

ALLOYS: Alloys are those materials which are made up of combining of two or more than two metals these also have good thermal and electrical conductivity and me liable property

for example ; bronze and brass

so from above discussion it is clear that option (d) will be the correct option

8 0
3 years ago
Read 2 more answers
Hello I need some help with this please. Pick a problem in your school or community that you think could be solved with technolo
bezimeni [28]

Answer:

An AI operated automatic garbage collection system

Explanation:

There is always an issue in my neighbourhood with the garbagemen coming on time so having an automatic system will help in the overall efficiency in the task

7 0
3 years ago
Read 2 more answers
Design a plan for ""your yard"" (no matter where you live) that will capture and utilize rainwater. You can prepare the plan in
Jlenok [28]

Answer:

Explanation:

<u><em>General Considerations</em></u>

The design of the yard will affect the natural surface and subsurface drainage pattern of a watershed or individual hillslope. Yard drainage design has as its basic objective the reduction or elimination of energy generated by flowing water. The destructive power of flowing water increases exponentially as its velocity increases. Therefore, water must not be allowed to develop sufficient volume or velocity so as to cause excessive wear along ditches, below culverts, or along exposed running surfaces, cuts, or fills.

A yard drainage system must satisfy two main criteria if it is to be effective throughout its design life:

1. It must allow for a minimum of disturbance of the natural drainage pattern.  

2.It must drain surface and subsurface water away from the roadway and dissipate it in a way that prevents excessive collection of water in unstable areas and subsequent downstream erosion

The diagram below ilustrate diffrent sturcture of yard to be consider before planing to utiliza rainwater

4 0
3 years ago
An inductor and resistor are connected in parallel to a 120-V, 60-Hz line. The resistor has a resistance of 50 ohms, and the ind
BARSIC [14]

Answer:

hi

Explanation:

the answer would be I dont know

6 0
3 years ago
13- Convert the following numbers to the indicated bases. List all intermediate steps.
nikklg [1K]

Answer:

Following are the conversion to this question:

Explanation:

In point (a):

\to \frac{36459080}{8} = 4557385   + \ \ \ \ \ \ \ \ \ \frac{0}{8}\\\\\to \frac{4557385}{8} = 569673   + \ \ \ \ \ \ \ \ \ \frac{1}{8}\\\\\to \frac{569673}{8} = 71209+ \ \ \ \ \ \ \ \ \ \frac{1}{8}\\\\\to \frac{71209}{8}=8901+\ \ \ \ \ \ \ \ \ \ \ \frac{1}{8}\\\\\to \frac{8901}{8}=1112+ \ \ \ \ \ \ \ \ \  \ \ \ \frac{5}{8}\\\\\to \frac{1112}{8}=139+ \ \ \ \ \ \ \ \ \ \ \frac{0}{8}\\\\\to \frac{139}{8}=17+ \ \ \ \ \ \ \ \ \ \ \frac{3}{8}\\\\\to \frac{17}{8}=2+ \ \ \ \ \ \ \ \ \ \ \ \ \frac{1}{8}\\\\

\to \frac{2}{8}=0+ \ \ \ \ \ \ \ \ \ \frac{2}{8}\\\\ \bold{(36459080)_{10}=(213051110)_8}

In point (b):

\to \frac{20960032010}{16} = 13100020+ \ \ \ \ \ \ \ \ \ \frac{0}{16}\\\\\to \frac{13100020}{16} = 818751+ \ \ \ \ \ \ \ \ \ \frac{4}{16}\\\\\to \frac{818751}{16} = 51171+ \ \ \ \ \ \ \ \ \ \frac{15}{16}\\\\\to \frac{51171}{16}=3198+\ \ \ \ \ \ \ \ \ \ \ \frac{3}{16}\\\\\to \frac{3198}{16}=199+ \ \ \ \ \ \ \ \ \  \ \ \ \frac{14}{1}\\\\\to \frac{199}{16}=12+ \ \ \ \ \ \ \ \ \ \ \frac{7}{16}\\\\\to \frac{12}{16}=0+ \ \ \ \ \ \ \ \ \ \ \frac{12}{16}\\\\ \bold{(20960032010)_{10}=(C7E3F40)_{16}}

In point (c):

\to (2423233303003040)_s=(88757078520)_{10}\\\\\to \frac{88757078520}{25}= 3550283140+ \ \ \ \ \ \ \ \ \ \frac{20}{25}\\\\ \to \frac{3550283140}{25}= 142011325+ \ \ \ \ \ \ \ \ \ \frac{15}{25}\\\\\to \frac{142011325}{25}= 5680453+ \ \ \ \ \ \ \ \ \ \frac{0}{25}\\\\\to \frac{5680453}{25}= 227218+ \ \ \ \ \ \ \ \ \ \frac{3}{25}\\\\\to \frac{227218}{25}= 9088+ \ \ \ \ \ \ \ \ \ \frac{18}{25}\\\\\to \frac{9088}{25}= 363+ \ \ \ \ \ \ \ \ \ \frac{13}{25}\\\\

\to \frac{363}{25}= 14+ \ \ \ \ \ \ \ \ \ \frac{13}{25}\\\\\to \frac{14}{25}= 0+ \ \ \ \ \ \ \ \ \ \frac{14}{25}\\\\\bold{(2423233303003040)_s=(EDDI30FK)_{25}}

Symbols of Base 25 are as follows:

0, 1, 2, 3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N, \ and \ O

6 0
3 years ago
Other questions:
  • When watching your weight, you want to snack smart. To do that, you want a snack that is going to __________.
    13·1 answer
  • . A roadway is being designed capable of allowing 70 mph vehicle speed. The superelevation around one curve is 0.05 inches per i
    15·1 answer
  • Kjhwe ,kenwif ujwfeowlwfwfwfw...
    14·2 answers
  • A light pressure vessel is made of 2024-T3 aluminum alloy tubing with suitable end closures. This cylinder has a 90mm OD, a 1.65
    8·1 answer
  • To measure the voltage drop across a resistor, a _______________ must be placed in _______________ with the resistor. Ammeter; S
    9·1 answer
  • Consider tests of an unswept wing that spans the wind tunnel and whose airfoil section is NACA 23012. Since the wing model spans
    13·1 answer
  • The air loss rate for a straight truck or bus with the engine off and the brakes
    11·1 answer
  • Plateau Creek carries 5.0 m^3 /s of water with a selenium (Se) concentration of 0.0015 mg/L. A farmer withdraws water at a certa
    12·1 answer
  • The annual average of solar photovoltaic energy in Phoenix is 6,720
    8·1 answer
  • Why is communication one of the most important aspects of an engineer's job?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!