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
Why it is important to prepare first the materials and tools carpentry before doing the tasks?​
professor190 [17]

Answer:

It is important to inspect and check materials and tools for defects and damage before receiving them so that you can ask for replacements for those that you found .

Explanation:

8 0
3 years ago
Read 2 more answers
When it comes to making a good impression in a work setting, it does not apply to an initial contact, since both people are meet
Art [367]

Answer:

you have only seconds in which a person will accept or reject an employee or firm

Explanation:

First impression matters that's why when looking for employment with an organisation, lack of a tie for men may lead to automatic rejection. You have to be smart both intellectually and physically. Therefore, it means that you have only seconds in which a person will accept or reject an employee or firm.

4 0
3 years ago
Showing or hiding records in a database is called “filtering.”<br> True<br> False
agasfer [191]

Answer:

TRUE

Explanation:

4 0
3 years ago
Read 2 more answers
15- Vipsana's Gyros House sells gyros. The cost of ingredients (pita, meat, spices, etc.) to make a gyro is $2.00. Vipsana pays
sineoko [7]
D is a great answer
4 0
3 years ago
An excavation is at risk for cave-in and water accumulation because of the excess soil that has accumulated. What type of excava
N76 [4]

Answer:Topographic map. Contour line. Learning Objectives. After completing this chapter, you will be able to: □ Define civil engineering and civil drafting.

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • A 5000-lb truck is being used to lift a 1000-lb boulder B that is on a 200-lb pallet A. Knowing that the truck starts from rest
    8·1 answer
  • A well penetrates an unconfined aquifer. Prior to pumping, the water level (head) is 25 meters. After a long period of pumping a
    14·1 answer
  • Parting tool purpose
    13·1 answer
  • Calculate the radius of a circular orbit for which the period is 1 day​
    13·1 answer
  • Fill in the blank with the correct response.
    8·1 answer
  • Does an electronic clock use electrical energy?​
    10·2 answers
  • Resistance depends on which three properties of a wire?
    15·1 answer
  • A linear frequency-modulated signal makes a good test for aliasing, because the frequency moves over a range. This signal is
    6·1 answer
  • Why is California a good place for engineers to build suspension bridges?
    12·1 answer
  • A common boundary-crossing problem for engineers is when their home country' values come into sharp contrast with the host count
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!