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
This search compares the target value with the middle element in the collection, then ignores the half of the collection in whic
love history [14]

Answer:

d) Binary

Explanation:

Binary search is a search algorithm that finds the position of a value in an ordered array. It compares the value with the element in the middle of the array, if they are not equal, half in which the value cannot be eliminated and the search continues in the remaining half until the value is found.

7 0
3 years ago
8. What are two ways SpaceX plans to change personal travel?
GalinKa [24]

Answer:

as all the people should go near stratosphere

8 0
2 years ago
we wish to send at a rate of 10Mbits/s over a passband channel. Assuming that an excess bandwidth of 50% is used, how much bandw
gayaneshka [121]

Answer:

QPSK: 7.5 MHz

64-QAM:2.5 MHz

64-Walsh-Hadamard: 160 MHz

Explanation:

See attached picture.

6 0
3 years ago
Draw the schematics for the following two battery connections. Can you explain the value of the output voltage in the series con
matrenka [14]

if two 1.5 ya alt batteries are connected to head to the tail the voltage is 3.0 volt it is the because the battery is insidious reduce a voltage equal to number of battery is multiplied by the voltage of individual

5 0
2 years ago
Name two common fuel gases that can be used for oxyfuel cutting
zlopas [31]
Hi

Acetylene and propane

I hope this help you!
8 0
1 year ago
Other questions:
  • Find the thickness of the material that will allow heat transfer of 6706.8 *10^6 kcal during the 5 months through the rectangle
    8·1 answer
  • The textile industry has seen steady growth in the United States.<br> O True<br> O False
    12·1 answer
  • In case of damaged prestressed concrete I girders which are used for restoring strength?
    9·1 answer
  • A steel bar 110 mm long and having a square cross section 22 mm on an edge is pulled in tension with a load of 89,000 N, and exp
    15·1 answer
  • Reusable refrigerant containers under high-pressure must be hydrostatically tested how often?
    10·1 answer
  • Describe the algorithm you use for looking up a person’s telephone number in the phone book. The input is person’s name; the out
    9·2 answers
  • What can you add to a seatbelt ??<br> HELP ASAP
    15·1 answer
  • How to comment on brainly.com and I'm only 8-years-old so keep it simple please
    9·1 answer
  • Why do stores still sell those 1.5 volt batteries that are like three times the size of other 1.5 volt batteries. What is the po
    9·2 answers
  • A liquid jet vj of diameter dj strikes a fixed cone and deflects back as a conical sheet at the same velocity. find the cone ang
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!