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
A 200‑m rigid vessel contains a saturated liquid‑vapor mixture with a vapor quality of 75%. The temperature of the vessel is mai
DerKrebs [107]

Answer:

Given,

Temperature;

T = 393;;K

Convert to Celcius;

T = (393-273) degrees

T = 120°C

Using Table A-4 (Saturated water - Temperature table), at T = 120 C;

vf = 0.001060 m³/kg

vg = 0.89133 m³/kg

Quality is given as;

75% = 0.75

Specific volume is given as;

v = vf + x (vg - vf) = 0.001060 + 0.75(0.89133 _ 0.001060)

v= 0.66876 m³/kg

We know;

v = V/m

0.66876  = 100/m

m = 149.53 kg

6 0
3 years ago
Explain Flags in ARM Processor​
kipiarov [429]

Answer:

The ARM processor normally contains at least the Z, N, C, and V flags, which are updated by execution of data processing instructions.

Explanation:

3 0
3 years ago
Why is logging done during drilling?
Solnce55 [7]

Answer:

Logging while drilling (LWD) is a technique of conveying well logging tools into the well borehole downhole as part of the bottom hole assembly (BHA). ... In these situations, the LWD measurement ensures that some measurement of the subsurface is captured in the event that wireline operations are not possible

8 0
3 years ago
Technician A says that one planetary gear set can provide gear reduction, overdrive, and reverse. Technician B says that most tr
777dan777 [17]

Answer:

Both technician A and technician B are correct

Explanation:

A planetary gearbox consists of a gearbox with the input shaft and the output shaft that is aligned to each other. It is used to transfer the largest torque in the compact form. A planetary gearbox has a compact size and low weight and it has high power density.

One planetary gear set can provide gear reduction, overdrive, and reverse. Also, most transmissions today use compound (multiple) planetary gears set.

So, both technician A and technician B are correct.

8 0
3 years ago
Test question for my account
Ierofanga [76]

Answer:

Well, I hope your account is working good now :)

5 0
3 years ago
Other questions:
  • If a ball is dropped from a height​ (H) its velocity will increase until it hits the ground​ (assuming that aerodynamic drag due
    5·1 answer
  • The following laboratory tests are performed on aggregate samples:a. Specific gravity and absorptionb. Soundnessc. Sieve analysi
    13·1 answer
  • In a fluid power system, if energy is not transferred to work, what form does it take?
    6·1 answer
  • Steam enters an adiabatic turbine at 6 MPa, 600°C, and 80 m/s and leaves at 50 kPa, 100°C, and 140 m/s. If the power output of t
    14·1 answer
  • Match the use of the magnetic field to its respective description.​
    6·1 answer
  • An ideal Rankine cycle with reheat uses water as the working fluid. The conditions at the inlet to the first-stage turbine are p
    12·1 answer
  • A brake caliper is considered a suspension item.<br> True<br> False
    8·1 answer
  • You should use the pass technique a fire extinguisher
    8·1 answer
  • About what thickness of aluminum is needed to stop a beam of (a) 2.5-MeV electrons, (b) 2.5-MeV protons, and (c) 10-MeV alpha pa
    6·1 answer
  • A ________ can be installed in a cast-iron block to repair a worn or cracked cylinder. Question 24 options:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!