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 family member who hasn’t worked with computers before has decided to change jobs. You’ve been asked to explain some of the bas
-BARSIC- [3]
That due to the specific tasks that needs to be accomplished by each program to make an all encompassing program would be inefficient and full of bugs
6 0
3 years ago
Read 2 more answers
write down your own definition of Engineering, preferably in 4-5 sentences. Maximum of 150 words for your definition???.​
ollegr [7]

Answer:

A charge q1=7.0mc is located at the origin and a second charge q2=-5.0mc is located on the x axis, 0.3m the origin find the electric field at the point p which he's coordinates (0,0.40)m

4 0
3 years ago
Technician A says the small base circuit of a transistor controls current flow. Technician B says the small emitter circuit cont
Amiraneli [1.4K]

Answer:

A

Explanation:

6 0
3 years ago
12.50 An air conditioner operating at steady state takes in moist air at 28°C, 1 bar, and 70% relative humidity. The moist air f
Mandarinka [93]

Answer:

Hey smith please see attachments for answer:

Please rate me good.

The attachments will provide you a detailed answer

Explanation:

8 0
3 years ago
True or false? the arc welding power voltage used for GMAW and FCAW produces a constant voltage​
7nadin3 [17]

Answer:

False

Explanation:

3 0
3 years ago
Other questions:
  • During the collision, is the magnitude of the force of asteroid A on asteroid B greater than, less than, or equal to the magnitu
    11·2 answers
  • Admission to an aquarium is $14 per person. There is also an IMAX theatre in the building, which charges $8 per ticket for a 3D
    8·1 answer
  • Water is pumped from one large reservoir to another at a higher elevation. If the flow rate is 2.5 ft3 /s and the pump delivers
    12·1 answer
  • We need to design a logic circuit for interchanging two logic signals. The system has three inputs I1I1, I2I2, and SS as well as
    11·1 answer
  • List five things the welding symbol will tell the welder about the weld that is to be made.​
    13·1 answer
  • which systems engineering support discipline has the goal to ensure that support considerations are an integral part of the syst
    14·1 answer
  • The coolant heat storage system:
    10·1 answer
  • What is a chipping hammer used for? <br><br> State three things.
    7·2 answers
  • (a) A non-cold-worked 1040 steel cylindrical rod has an initial length of 100 mm and initial diameter of 7.50 mm. is to be defor
    7·1 answer
  • A parallel circuit has a resistance of 280 and an inductive reactance of 360 02. What's this circuit's impedance?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!