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]
4 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]4 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
A certain piece of property is assessed at $150,000. If the tax rate is $2.50 per $100, what is the tax on this property?
stiks02 [169]

Answer:

The tax on this property is 3750 dollars

Explanation:

Given

Tax on per $100 is $2.50

Tax on every $1 is \frac{2.5}{100} = 0.025 dollars

Tax on property of value $150,000 is

150,000 * 0.025 = 3750 dollars

The tax on this property is 3750 dollars

7 0
3 years ago
An aluminum metal rod is heated to 300oC and, upon equilibration at this temperature, it features a diameter of 25 mm. If a tens
Natalka [10]

Answer:

It will results in mechanical hardening.

5 0
3 years ago
Read 2 more answers
Suppose there are 76 packets entering a queue at the same time. Each packet is of size 5 MiB. The link transmission rate is 2.1
tia_tia [17]

Answer:

938.7 milliseconds

Explanation:

Since the transmission rate is in bits, we will need to convert the packet size to Bits.

1 bytes = 8 bits

1 MiB = 2^20 bytes = 8 × 2^20 bits

5 MiB = 5 × 8 × 2^20 bits.

The formula for queueing delay of <em>n-th</em> packet is :  (n - 1) × L/R

where L :  packet size = 5 × 8 × 2^20 bits, n: packet number = 48 and R : transmission rate =  2.1 Gbps = 2.1 × 10^9 bits per second.

Therefore queueing delay for 48th packet = ( (48-1) ×5 × 8 × 2^20)/2.1 × 10^9

queueing delay for 48th packet = (47 ×40× 2^20)/2.1 × 10^9

queueing delay for 48th packet = 0.938725181 seconds

queueing delay for 48th packet = 938.725181 milliseconds = 938.7 milliseconds

4 0
3 years ago
What is the built-in pollution control system in an incinerator called
Kobotan [32]

Explanation:

hbyndbnn☝️

7 0
3 years ago
Is a jeep cherokee faster than a bmw 325i
soldier1979 [14.2K]

Answer:

Yes

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Not a characteristic property of ceramic material (a) high temperature stability (b) high mechanical strength (c) low elongation
    7·2 answers
  • Consider a CMOS inverter which has ideal transistors with the following characteristics: PMOS transistor: W/L = 2; Mobility (up)
    13·1 answer
  • If a machine uses LESS effort to overcome a given resistance force (if Fe is less than FR), it has an actual mechanical advantag
    13·1 answer
  • Describe what viscoelastic behavior means
    7·1 answer
  • A glass tube is inserted into a flowing stream of water with one opening directed upstream and the other end vertical. If the wa
    9·1 answer
  • Which of the following correctly describes caster?
    8·1 answer
  • Describe in your own words the three strengthening mechanisms
    7·1 answer
  • In a case where electrical current leakage from the circuit occurs, the GFCI would do the following:
    13·1 answer
  • Is it permissible to install recessed fixture directly against wood ceiling joists? Explain why or why not.
    5·1 answer
  • Describe how to mix and apply body filler?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!