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
Answer true or false 3.Individual people decide what will be produced in a command<br> oconomy
Pie

Answer:

False

Explanation:

The government decides the productions.

7 0
4 years ago
Read 2 more answers
what are some questions about simple machines that don't make me sound like i didn't pay attention in the lesson?
Margaret [11]

Answer:

what are simple machines?

Explanation:

it is 2020 let's be honest all

8 0
3 years ago
What are the advantages of triggering circuit<br> for thyrestors?
sergejj [24]

Answer:

For most applications, it is simple, dependable, efficient, and straightforward to apply - a simple trigger signal may be provided, with appropriate processing if necessary. This implies that an appropriate trigger signal may be generated using other electrical circuits and then applied to the SCR.

Explanation:

3 0
3 years ago
Measures the power output of the machine
koban [17]
Watts I believe is the answer
4 0
3 years ago
In Illinois, once a person has obtained their boating education certificate what is the minimum age to operate a motorized vesse
bixtya [17]

Answer:

I dont really know, I am sorry, but I am going to ask my teacher

5 0
3 years ago
Read 2 more answers
Other questions:
  • The first step to merging is entering the ramp and _____.
    10·1 answer
  • An air conditioner removes heat steadily from a house at a rate of 750 kJ/min while drawing electric power at a rate of 6 kW. De
    5·1 answer
  • What is a quasi-equilibrium process? What is its importance in engineering?
    14·1 answer
  • Write a method printShampooInstructions(), with int parameter numCycles, and void return type. If numCycles is less than 1, prin
    15·1 answer
  • The Ethernet (CSMA/CD) alternates between contention intervals and successful transmissions. Assume a 100 Mbps Ethernet over 1 k
    5·1 answer
  • If a particle moving in a circular path of radius 5 m has a velocity function v = 4t2 m/s, what is the magnitude of its total ac
    15·2 answers
  • As an employee, who is supposed to provide training on the chemicals you are handling or come in contact with at work?
    5·2 answers
  • What level of wildfire risk do people living in Boulder have?
    9·1 answer
  • Sketches are a very efficient way to share ideas.<br> True<br> False
    13·2 answers
  • What is the purpose of placing a large electrolytic capacitor in the output side of a power supply
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!