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 is the fastest plane in the world
Aleonysh [2.5K]

Answer:

Lockheed SR-71 Blackbird

Explanation:

7 0
3 years ago
Read 2 more answers
The concrete canoe team does some analysis on their design and calculates that they need a compressive strength of 860 psi. They
vlada-n [284]

Answer:

874 psi

Explanation:

Given a sample mean (x') = 900,

and a standard error (SE) = 10

At 99% confidence, Z(critical) = 2.58

That gives 99% confidence interval as,

x' ± Z(critical) x SE = 900 ± 2.58 x 10

The value of the lower limit is,

900 - 25.8 = 874.2

≈ 874 psi

8 0
2 years ago
It is the tool used to measure the amount of electric current​
sergeinik [125]

Answer:

Ammeter

Explanation:

Instrument for measuring either direct or alternating electric current, in amperes. Ammeters vary in their operating principles and accuracies

7 0
2 years ago
Read 2 more answers
A piston-cylinder assembly has initially a volume of 0.3 m3 of air at 25 °C. Mass of the air is 1 kg. Weights are put on the pis
kogti [31]

Answer:

n=2.32

w= -213.9 KW

Explanation:

V_1=0.3m^3,T_1=298 K

V_2=0.1m^3,T_1=1273 K

Mass of air=1 kg

For polytropic process  pv^n=C ,n is the polytropic constant.

  Tv^{n-1}=C

  T_1v^{n-1}_1=T_2v^{n-1}_2

298\times .3^{n-1}_1=1273\times .1^{n-1}_2

n=2.32

Work in polytropic process given as

       w=\dfrac{P_1V_1-P_2V_2}{n-1}

      w=mR\dfrac{T_1-T_2}{n-1}

Now by putting the values

w=1\times 0.287\dfrac{289-1273}{2.32-1}

w= -213.9 KW

Negative sign indicates that work is given to the system or work is done on the system.

For T_V diagram

  We can easily observe that when piston cylinder reach on new position then volume reduces and temperature increases,so we can say that this is compression process.

5 0
3 years ago
Tech A says that horsepower is a measurement simply of the amount of work being performed. Tech B says that horsepower can be ca
snow_tiger [21]

Answer:

Tech B

Explanation:

Horsepower (hp) refers to a unit of measurement of power in respect of the output of engines or motors.

Horsepower is the common unit of power. It indicates the rate at which work is done.

The formula \frac{rpm*T}{5252}, where rpm is the engine speed, T is the torque, and 5,252 is radians per second.

So,

Tech B is correct

6 0
3 years ago
Other questions:
  • This is a multi-part question. Once an answer is submitted, you will be unable to return to this part As steam is slowly injecte
    15·1 answer
  • Explain why change is inevitable in complex systems and give examples (apart from prototyping and incremental delivery) of softw
    6·1 answer
  • A 40 mph wind is blowing past your house and speeds up as it flows up and over the roof. If the elevation effects are negligible
    14·1 answer
  • The rainfall rate in a certain city is 20 inches per year over an infiltration area that covers 33000 acres. Twenty percent of t
    6·1 answer
  • PLEASE ANSWER SOON
    7·1 answer
  • Find the general solution of the equation<br>a) Tan A = 1/√3​
    11·1 answer
  • Draw the six principal views of
    13·1 answer
  • Discuss in detail the manners of interaction with opposite gender
    10·1 answer
  • The locations and type of electrical device required on an architectural<br> plan are referred to as
    6·2 answers
  • I need help with this question
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!