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
With reference to the NSPE Code of Ethics, which one of the following statements is true regarding the ethical obligations of th
34kurt

Answer: c. The VW engineers involved were ethically obligated to hold paramount the health, welfare and safety of the public even if their supervisors directed them to implement software and hardware that enabled cheating on the emissions testing software.

Explanation: The National Society of professional Engineers, NSPE define the code of ethics which must guide engineers in their duty. These codes act as principles of personal conduct, towards the public and their employers.  

One of the areas covered by these codes is overriding importance of the safety and health of the public to any other factor. In addition, engineers are to avoid deception and maintain the reputation of their profession. These cannot be sacrificed for the financial gain of their employers or explained away by saying they are following the direction of their employers. While they have certain responsibilities to their employers, the health welfare and safety of the public is more important.  

4 0
3 years ago
HELP<br><br><br>the overall width of a part is dimensioned as 3.00 ± 0.02. what is the tolerance
MariettaO [177]

Answer:

Not knowing the units the tolerance is 0.02.  I would presume mm but hopefully your question has more detail.  

Explanation:

The tolerance is the portion after the main dimension (+/- 0.02).  In our case we have bilateral tolerance since there is tolerance in both directions (positive and negative).  If you were building a part the acceptable range would be 2.98 to 3.02 based on the tolerance provided.  

3 0
3 years ago
Read 2 more answers
An aluminium alloy tube has a length of 750 mm at a temperature of 223°C. What will be its length at 23°C if its coefficient of
uranmaximum [27]

Answer:

Final length= 746.175 mm

Explanation:

Given that Length of aluminium at 223 C is 750 mm.As we know that when temperature of material increases or decreases then dimensions of material also increases or decreases respectively with temperature.

Here temperature of aluminium decreases so the final length of aluminium decreases .

As we know that

\Delta L=L\alpha\Delta T

Now by putting the values

\Delta L=750\times \25.5\times 10^{-6}\times 200

ΔL=3.82 mm

So final length =750-3.82 mm

Final length= 746.175 mm

3 0
3 years ago
When an object is moving, we use the following coefficient for friction calculations a)-μk b)-μs c)-γk d)- γs
Reika [66]

Answer:\mu_{k}

Explanation:

We use kinetic friction when a body is moving i.e. \mu_{k} for calculations.

Static friction is used when a body is in rest while kinetic friction is used when a body is moving and its value is quite low as compared to static friction .

Static friction value increases as we apply more force while kinetic friction occurs when there is relative motion between bodies.

3 0
3 years ago
What is an example of a class 2 lever?
9966 [12]

Answer:

A wheelbarrow, a bottle opener, and an oar are examples of second class levers

6 0
2 years ago
Read 2 more answers
Other questions:
  • Disconnecting means shall be capable of being locked in the open position. The provisions for locking do not have to reamin in p
    14·1 answer
  • What are probiotic bacteria and how did Danino and his team use this type of bacteria to detect liver cancer?
    15·1 answer
  • Please help i will give brainilest
    12·2 answers
  • How to update android 4.4.2 to 5.1 if there isnt any update available​
    15·2 answers
  • PLS HURRYY!!!<br> Look at the image below
    10·1 answer
  • Air is compressed steadily from 100kPa and 20oC to 1MPa by an adiabatic compressor. If the mass flow rate of the air is 1kg/s an
    12·1 answer
  • Oil system cleaning products should not use solvents problem
    7·1 answer
  • ) A flow is divided into two branches, with the pipe diameter and length the same for each branch. A 1/4-open gate valve is inst
    5·1 answer
  • For a bolted assembly with eight bolts, the stiffness of each bolt is kb = 1.0 MN/mm and the stiffness of the members is km = 2.
    14·1 answer
  • A coil having a resistance of 10 ohms and an inductance of 4 H is switched across a 20W dc source. Calculate (a) time required b
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!