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
The difference between an initial condition and a boundary condition for conduction in a solid is:___________
leva [86]

Answer:

c. an initial condition specifies the temperature at the start of the problem and a boundary condition provides information about temperatures on the boundaries.

Explanation:

Conduction refers to the transfer of thermal energy or electric charge as a result of the movement of particles. When the conduction relates to electric charge, it is known as electrical conduction while when it relates to thermal energy, it is known as heat conduction.

In the process of heat conduction, thermal energy is usually transferred from fast moving particles to slow moving particles during the collision of these particles. Also, thermal energy is typically transferred between objects that has different degrees of temperature and materials (particles) that are directly in contact with each other but differ in their ability to accept or give up electrons.

Any material or object that allow the conduction (transfer) of electric charge or thermal energy is generally referred to as a conductor. Conductors include metal, steel, aluminum, copper, frying pan, pot, spoon etc.

Hence, the difference between an initial condition and a boundary condition for conduction in a solid is that an initial condition specifies the temperature at the start of the problem and a boundary condition provides information about temperatures on the boundaries.

7 0
3 years ago
How does java achieve portable
sergejj [24]

Answer:

Java is called portable because you can compile a java code which will spew out a byte-code, and then you run that code with Java Virtual Machine. Java Virtual Machine is like an interpreter, which reads the compiled byte-code and runs it. So first of all, you need to install the JVM on the system you want.

Explanation:

5 0
3 years ago
A gas turbine operates with a regenerator and two stages of reheating and intercooling. Air enters this engine at 14 psia and 60
Rzqust [24]

Answer:

flow(m) = 7.941 lbm/s

Q_in = 90.5184 Btu/lbm

Q_out = 56.01856 Btu/lbm

Explanation:

Given:

- T_1 = 60 F = 520 R

- T_6 = 940 = 1400 R

- Heat ratio for air k = 1.4

- Compression ratio r = 3

- W_net,out = 1000 hp

Find:

mass flow rate of the air

rates of heat addition and rejection

Solution:

- Using ideal gas relation compute T_2, T_4, T_10:

                     T_2 = T_1 * r^(k-1/k)

                     T_2 = T_4 = T_10 = 520*3^(.4/1.4) = 711.744 R

- Using ideal gas relation compute T_7, T_5, T_9:

                     T_7 = T_6 * r^(-k-1/k)

                     T_7 = T_5 = T_9 = 1400*3^(-.4/1.4) = 1022.84 R

- The mass flow rate is obtained by:

                     flow(m) = W_net,out / 2*c_p*(1400-1022.84-711.744+520)

                     flow(m) = 1000*.7068 / 2*0.24*(1400-1022.84-711.744+520)

                     flow(m) = 7.941 lbm/s

- The heat input is as follows:

                     Q_in = c_p*(T_6 - T_5)

                     Q_in = 0.24*(1400 - 1022.84)

                     Q_in = 90.5184 Btu/lbm

- The heat output is as follows:

                     Q_out = c_p*(T_10 - T_1)

                     Q_out = 0.24*(711.744 - 520)

                    Q_out = 56.01856 Btu/lbm

                                           

                     

5 0
3 years ago
Technician A says mismatching tires of the same size on a heavy vehicle will generally not affect ABS operation. Technician B sa
marysya [2.9K]
Technician A is correct
3 0
3 years ago
A. A 3-kg plastic tank that has a volume of 0.2 m^3 is lled with liquid water. Assuming the density of water is 1000 kg=m^3, det
Tpy6a [65]

Answer:

The answer is below

Explanation:

a) The weight of the combined system is the sum of the weight of the water and the weight of the tank

m_{water}=V_{tank}.\rho_{wtaer}\\\\m_{water}=0.2m^3*1000kg/m^3\\\\m_{water}=200 \ kg\\\\m_{total} = m_{water}+m_{tank}\\\\But\ m_{tank}=3kg,therefore:\\\\m_{total} =200kg+3kg\\\\m_{total} =203\ kg\\\\weight_{total}=m_{total}g\\\\weight_{total}=203kg*9.81m/s^2\\\\weight_{total}=1991.43\ N

b) Since the weight of a system can be divided into smaller portions, hence weight is an extensive property.

c) When analyzing the acceleration of gases as they flow through a nozzle, the geometry of the nozzle which is an open system can be chosen as our system.

d) Given that:

\rho_{water}=1000kg/m^3\\\\1kg/m^3=0.062428lb/ft^3\\\\1000kg/m^3=1000kg/m^3*\frac{0.062428lb/ft^3}{kg/m^3}=62.43lb/ft^3\\ \\\rho=SG*\rho_{water}=1.03*62.43=64.272lb/ft^3\\\\P=P_{atm}+\rho g H\\\\P=14.7\ psia+64.272\ lb/ft^3*32.2\ ft/s^2*175\ ft*\frac{1\ ft^2}{12^2\ in^2}*\frac{1\ lbf}{32.2\ lbm.ft/s^2}  \\\\P=92.8\ psia

6 0
3 years ago
Other questions:
  • A 3.5-m3 rigid tank initially contains air whose density is 2 kg/m3 . The tank is connected to a high-pressure supply line throu
    8·1 answer
  • (TCO 1) Name one disadvantage of fixed-configuration switches over modular switches. a. Ease of management b. Port security b. F
    6·1 answer
  • or a metal pipe used to pump tomato paste, the overall heat- transfer coefficient based on internal area is 2 W/(m2 K). The insi
    14·1 answer
  • Air at 2.5 bar, 400 K is extracted from a main jet engine compressor for cabin cooling. The extracted air enters a heat exchange
    14·2 answers
  • A program contains the following function definition: int cube(int number) { return number * number * number; } Write a stateme
    8·1 answer
  • What are two reasons why Hunter edjucation is important?<br><br><br> 30 pts
    12·1 answer
  • Any help is appreciated.
    7·1 answer
  • Find all the words, Figure out my puzzle!
    14·2 answers
  • A coil consists of 200 turns of copper wire and have a cross-sectional area of 0.8 mmm square.The mean length per turn is 80 cm
    13·1 answer
  • In a typical American building, most modern lighting systems must use what voltage?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!