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
Naily [24]
3 years ago
6

Write an application that reads three integers, adds all three together, computes an average of the three entries, and computes

any remainder of the integer division. A remainder represents the modulus result of dividing an even by an odd number or vice versa. Display the output.
Engineering
1 answer:
Natali5045456 [20]3 years ago
3 0

Answer:

//The program prompts user to input three integers and it displays them, adds and gets their average

//begin

public class Test

{

  public static void Main()

  {

     //input intergers

int[] score = new int[3];

      int avg,rem,sum = 0;

     

      for(int i=0;i<3;i++)

      {

      Console.WriteLine("Enter an integer score ");

      score[i] = Convert.ToInt32(Console.ReadLine());

      sum = sum + score[i];

      }

      avg = sum/3;

      rem = sum%3;

     

      Console.WriteLine("The average of "+score[0]+","+score[1]+","+score[2]+" is "+avg +" with a remainder of "+rem);

     

  }

}

You might be interested in
21. How long can food that requires time-temperature control be left in the danger zone?
dimulka [17.4K]

Answer: A maximum of 1 hour

Explanation:

Read your lesson buddy!!

8 0
3 years ago
Read 2 more answers
Consider a fully-clamped circular diaphragm poly-Si with a radius of 250 μm and a thickness of 4 μm. Assume that Young’s modulus
Alina [70]

Answer:

Explanation:

find attached the solution to the question

4 0
3 years ago
Which claim does president Kennedy make in speech university rice ?
mafiozo [28]

Answer:  The United States must lead the space race to prevent future wars.

Explanation: Hope this helps

4 0
2 years ago
Read 2 more answers
What is the mechanical advantage of a pulley with 3 support ropes?
snow_tiger [21]

Answer:

The mechanical advantage is 3 to 1

Explanation:

A frictionless pulley with three support ropes carries equal tension on each of the ropes thus;

Tension in each pulley rope = T

Total tension in the 3 ropes = 3 × T = 3·T

Direction of the tension forces on each rope = Unidirectional

Total force provided by the 3 ropes = 3·T

Therefore, a force, T, applied at the end of the rope will result in a lifting force of 3·T

Hence, the mechanical advantage = 3·T to T which is presented as follows;

Mechanical \ advantage = \dfrac{3 \cdot T}{T}  = \dfrac{3}{1}

The mechanical advantage = 3 to 1.

5 0
3 years ago
At the instant under consideration, the hydraulic cylinder AB has a length L = 0.75 m, and this length is momentarily increasing
Inessa [10]

Answer:

vB = - 0.176 m/s   (↓-)

Explanation:

Given

(AB) = 0.75 m

(AB)' = 0.2 m/s

vA = 0.6 m/s

θ = 35°

vB = ?

We use the formulas

Sin θ = Sin 35° = (OA)/(AB) ⇒  (OA) = Sin 35°*(AB)

⇒   (OA) = Sin 35°*(0.75 m) = 0.43 m

Cos θ = Cos 35° = (OB)/(AB) ⇒  (OB) = Cos 35°*(AB)

⇒   (OB) = Cos 35°*(0.75 m) = 0.614 m

We apply Pythagoras' theorem as follows

(AB)² = (OA)² + (OB)²

We derive the equation

2*(AB)*(AB)' = 2*(OA)*vA + 2*(OB)*vB

⇒  (AB)*(AB)' = (OA)*vA + (OB)*vB

⇒  vB = ((AB)*(AB)' - (OA)*vA) / (OB)

then we have

⇒  vB = ((0.75 m)*(0.2 m/s) - (0.43 m)*(0.6 m/s) / (0.614 m)

⇒  vB = - 0.176 m/s   (↓-)

The pic can show the question.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Methane and oxygen react in the presence of a catalyst to form formaldehyde. In a parallel reaction, methane is oxidized to carb
    12·1 answer
  • A manufacturer makes integrated circuits that each have a resistance layer with a target thickness of 200 units. A circuit won't
    5·1 answer
  • Air enters a compressor operating at steady state with pressure of 90 kPa, at a temperature of 350 K, and a volumetric flow rate
    13·1 answer
  • 1- A square-wave inverter has a dc source of 96 V and an output frequency of 60 Hz. The load is a series RL load with R = 5 Ohm
    7·1 answer
  • A stream of air enters a 7.00-cm ID pipe at a velocity of 30.0 m/s at 27.0°C and 1.80 bar (gauge). At a point downstrream, the a
    15·1 answer
  • Yooo. does anyone have tin foil and tape mask that they can take a picture of and send it ?
    5·1 answer
  • In the High Low Logic Index low levels are bearish and high levels are bullish, generally True False
    13·1 answer
  • PLLLLLEEESSSEEE IIII NEED ASAP
    12·2 answers
  • 1. Springs____________<br> energy when compressed<br> And _________energy when they rebound.
    12·1 answer
  • For two different air velocities, the Nusselt number for two different diameter cylinders in cross flow is the same. The average
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!