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
For methyl chloride at 100°C the second and third virial coefficients are: B = −242.5 cm 3 ·mol −1 C = 25,200 cm 6 ·mol −2 Calcu
bogdanovich [222]

Answer:

a)W=12.62 kJ/mol

b)W=12.59 kJ/mol

Explanation:

At T = 100 °C the second and third virial coefficients are

B = -242.5 cm^3 mol^-1

C = 25200 cm^6  mo1^-2

Now according isothermal work of one mole methyl gas is

W=-\int\limits^a_b {P} \, dV

a=v_2\\

b=v_1

from virial equation  

\frac{PV}{RT}=z=1+\frac{B}{V}+\frac{C}{V^2}\\   \\P=RT(1+\frac{B}{V} +\frac{C}{V^2})\frac{1}{V}\\

And  

W=-\int\limits^a_b {RT(1+\frac{B}{V} +\frac{C}{V^2}\frac{1}{V}  } \, dV

a=v_2\\

b=v_1

Now calculate V1 and V2 at given condition

\frac{P1V1}{RT} = 1+\frac{B}{v_1} +\frac{C}{v_1^2}

Substitute given values P_1\\ = 1 x 10^5 , T = 373.15 and given values of coefficients we get  

10^5(v_1)/8.314*373.15=1-242.5/v_1+25200/v_1^2

Solve for V1 by iterative or alternative cubic equation solver we get

v_1=30780 cm^3/mol

Similarly solve for state 2 at P2 = 50 bar we get  

v_1=241.33 cm^3/mol

Now  

W=-\int\limits^a_b {RT(1+\frac{B}{V} +\frac{C}{V^2}\frac{1}{V}  } \, dV

a=241.33

b=30780

After performing integration we get work done on the system is  

W=12.62 kJ/mol

(b) for Z = 1 + B' P +C' P^2 = PV/RT by performing differential we get  

         dV=RT(-1/p^2+0+C')dP

Hence work done on the system is  

W=-\int\limits^a_b {P(RT(-1/p^2+0+C')} \, dP

a=v_2\\

b=v_1

by substituting given limit and P = 1 bar , P2 = 50 bar and T = 373 K we get work  

W=12.59 kJ/mol

The work by differ between a and b because the conversion of constant of virial coefficients are valid only for infinite series  

8 0
3 years ago
Any help is appreciated &lt;3
Len [333]

Answer:

forwarder

Explanation:

8 0
3 years ago
The waffle slab is: a) the two-way concrete joist framing system. b) a one-way floor and roof framing system. c) the one-way con
GREYUIT [131]

Answer:

a) the two-way concrete joist framing system

Explanation:

A waffle slab is also known as ribbed slab, it is a slab which as waffle like appearance with holes beneath. It is adopted in construction projects that has long length, length more than 12m. The waffle slab is rigid, therefore it is used in building that needs minimal vibration.

4 0
3 years ago
An electric field is expressed in rectangular coordinates by E = 6x2ax + 6y ay +4az V/m.Find:a) VMN if point M and N are specifi
Fittoniya [83]

Answer:

a.) -147V

b.) -120V

c.) 51V

Explanation:

a.) Equation for potential difference is the integral of the electrical field from a to b for the voltage V_ba = V(b)-V(a).

b.) The problem becomes easier to solve if you draw out the circuit. Since potential at Q is 0, then Q is at ground. So voltage across V_MQ is the same as potential at V_M.

c.) Same process as part b. Draw out the circuit and you'll see that the potential a point V_N is the same as the voltage across V_NP added with the 2V from the other box.

Honestly, these things take practice to get used to. It's really hard to explain this.

3 0
4 years ago
the increase of current when 15 V is applied to 10000ohm rheostat which is adjusted to 1000ohm value​
Anastasy [175]
Given data:
•) applied voltage = 15 V
•). Resistance = 1000 ohm

Required:
•). The magnitude of current= ?

•••••••••••••SOLUTION•••••••••••••

We can find the relation ship between current, voltage and resistance with the help of Ohms law.

According to ohms law;

V= IR.

Rearranging the above equation;

I= V/ R

Putt the values in the above equation; we get

I= 15V/ 1000ohm

I = 0.015 A( ampere)

••••••••••••••• CONCLUSION•••••••

The value of the current would be 0.15 ampere when Resistance is equal to 1000 and that of Voltage is equal to 15 V.
4 0
3 years ago
Other questions:
  • In , the industries with the most complaints to the Better Business Bureau were banks, cable and satellite television companies,
    13·1 answer
  • A Canadian visitor says that we have a great day in Chattanooga because it's 30 degrees. What would the temperature be in Farenh
    15·1 answer
  • A manager has a list of items that have been sorted according to an item ID. Some of them are duplicates. She wants to add a cod
    7·1 answer
  • Need answers for these please ​
    15·1 answer
  • Transcription machinery assembles at _______________.
    6·1 answer
  • Resistors of 150 Ω and 100 Ω are connected in parallel. What is their equivalent resistance?
    13·1 answer
  • To ensure that a vehicle crash is inelastic, vehicle safety designers add crumple zones to vehicles. A crumple zone is a part of
    12·1 answer
  • Where would the impossible amount of product 1 and 2 points intersect on the production possibility curve
    6·1 answer
  • which acpi power state allows a system to start where it left off, but all other components are turned off? sleeping mechanical
    13·1 answer
  • Which of the given strategies is specifically a competitive advantage sustainment strategy?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!