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
jok3333 [9.3K]
3 years ago
11

Write a statement that increases numPeople by 5. Ex: If numPeople is initially 10, the output is: There are 15 people.

Engineering
1 answer:
BartSMP [9]3 years ago
8 0

Answer:

import java.util.Scanner;

public class AssigningNumberToVariable {

public static void main (String [] args) {

int numPeople;

int numPeople_inc;

numPeople = 10;

/* solution */

numPeople_inc=numPeople+5;

System.out.print("There are ");

System.out.print(numPeople_inc);

System.out.println(" people.");

}

}

Explanation:

1. Declare a new variable called: numPeople_inc

2. Add 5 each time: numPeople_inc=numPeople+5;

3. Print the answer:  numPeople_inc=numPeople+5;

Optional, just write the line in the place where says: " your solutions goes here":

numPeople = numPeople+5;

You might be interested in
What factors determine tire inflation pressure?
Virty [35]

Answer:

Tire inflation can be caused by temperature and speed :)

6 0
3 years ago
Activity
Sphinxa [80]

Answer:

yo do you still need an

answer

Explanation:

6 0
4 years ago
This operating mode assists steering return after completing a turn.
castortr0y [4]

Answer:

In return mode, the system assists steering return after completing a turn. Information from the steering position sensor prevents the system from overshooting the center position. In dampener mode, the system acts like a hydraulic dampener to prevent kick back and bump steer.

3 0
3 years ago
If copper (which has a melting point of 1085°C) homogeneously nucleates at 849°C, calculate the critical radius given values of
____ [38]

Answer:

The critical radius is -1.30 nm

Explanation:

Temperature for homogenous nucleation of copper, T_{H} = 849^{0} C = 849 + 273 = 1122 K

Melting point of copper, T_{cu} = 1085^{0} C = 1085 + 273 = 1358 K

Latent heat of fusion, H_{f} = -1.77 * 10^{9} J/m^{3}

Surface free energy, \gamma = 0.200 J/m^{2}

Critical radius, r = ?

The formula for the critical radius is given by:

r = \frac{2 \gamma T_{cu} }{H_{f}(T_{cu} - T_{H})  }

r = \frac{2 * 0.2*1358 }{(-1.77 * 10^{9}) (1358 - 1122)  }

r = \frac{543.2 }{(-1.77 * 10^{9}) 236}\\r = -1.30 * 10^{-9} m\\r = -1.30 nm

The critical radius is -1.30 nm

8 0
4 years ago
The largest class of errors in software engineering can be attributed to _______.
Ilya [14]

Answer:

improper imput validation

Explanation:

6 0
2 years ago
Other questions:
  • Design a notch filter to remove the 60Hz from us.
    14·1 answer
  • A satellite component is in the shape of a cube with 10cm edges, has an evenly distributed mass of 2 kg and one bolt hole at eac
    11·1 answer
  • * Write a recursive function that finds the index of s2 in s1. Do not use any * string functions except for .length(), .equals()
    12·1 answer
  • A solid shaft is subjected to an axial load P = 200 kN and a torque T = 1.5 kN.m. a) Determine the diameter of the shaft if the
    8·1 answer
  • The water behind Hoover Dam in Nevada is 221 m higher than the Colorado River below it. At what rate must water pass through the
    6·1 answer
  • What is the resolution limit for a projection type of photolithographic system if the incident wavelength is 365 nm (the i-line
    14·1 answer
  • Taking the convection heat transfer coefficient on both sides of the plate to be 860 W/m2 ·K, deter- mine the temperature of the
    10·1 answer
  • Yeah order for a firm voltage dividers to operate properly The load resistance value should be at least Times greater than resis
    11·1 answer
  • a wire is not strong enough to pick up a washer or much of anything. what is a way to strengthen the magnetic field?
    15·1 answer
  • A pipe fitter would fabricate which one of the following systems?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!