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
Theo Anh / Chị, để đáp ứng yêu cầu phát triển nền kinh tế thị trường định hướng Xã hội Chủ nghĩa ở Việt Nam trong bối cảnh thời
yawa3891 [41]
Nền kinh tế thị trường định hướng xã hội chủ nghĩa là nền kinh tế hàng hoá nhiều thành phần do thị trường điều tiết, bao gồm sở hữu tư nhân, tập thể và nhà nước về tư liệu sản xuất. Tuy nhiên, khu vực nhà nước và các doanh nghiệp thuộc sở hữu tập thể tạo thành xương sống của nền kinh tế.


tôi nghĩ


5 0
3 years ago
To avoid carbon monoxide poisoning, use the heater or air conditioner in a parked car with the windows closed.T/F
liberstina [14]

Answer: false

Explanation:

because when you get in the car the cm will build up

3 0
2 years ago
Terri Duncan recommends following up after an interview in which way?
Varvara68 [4.7K]

Answer:

make contact in a way which fits the industry and is comfortable to you

Explanation:

Terri Duncan was a person that helped people going for interviews by offering them professional advice on how to compose and conduct themselves during an interview.

Terri Duncan also helps people going for interviews but providing them with the aid they need concerning what to say during an interview.

Terri Duncan recommends following up after an interview by making contact in a way which fits the industry and is also comfortable to you.

3 0
3 years ago
Carbon monoxide coming from your car smells like
Lemur [1.5K]
I wouldn’t smell like anything carbon monoxide is an odorless gas
3 0
3 years ago
According to the
zysi [14]

Answer:

The part of the system that is considered the resistance force is;

B

Explanation:

The simple machine is a system of pulley  that has two pulleys

The effort, which is the input force at A gives the value of the tension at C and  D which are used to lift the load B

Therefore, we have;

A = C = D

B = C + D = C + C = 2·C

∴ C = B/2

We have;

C = B/2 = A

Therefore, with the pulley only a force, A equivalent to half the weight, B, of the load is required to lift the load, B

The resistance force is the constant force in the system that that requires an input force to overcome in order for work to be done

It is the force acting to oppose the sum of the other forces system, such as a force acting in opposition to an input force

Therefore, the resistance force is the load force, B, for which the input force, A, is required in order for the load to be lifted.

3 0
3 years ago
Other questions:
  • Data becomes information when it is__________ in some way and made___________
    5·1 answer
  • For each topic, find the total number of blurts that were analyzed as being related to the topic. Order the result by topic id.
    6·1 answer
  • 1. A gas pressure difference is applied to the legs of a U-tube manometer filled with a liquid with S = 1.5. The manometer readi
    9·1 answer
  • How to design a solar panel<br>​
    7·1 answer
  • 17- The cathodic polarization is ..... *
    12·1 answer
  • Inversion is similar to what other concept discussed in the unit
    15·2 answers
  • Choose a jet aircraft to use as your example for this activity. It should not be an exotic jet aircraft, as you will need to fin
    14·1 answer
  • Ký hiệu của vật liệu cơ khí
    15·1 answer
  • A resistance of 30 ohms is placed in a circuit with a 90 volt battery. What current flows in the circuit?
    8·1 answer
  • If 9 + 10 = 21, then what is 10 + 10?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!