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
Use the scoring system described to calculate the alignment score for These are two lines of 14 letters aligned with each other.
PtichkaEL [24]

Answer:

do good

Explanation:

get that money

7 0
3 years ago
A counter-flow double pipe heat exchanger is heat heat water from 20 degrees Celsius to 80 degrees Celsius at the rate of 1.2 kg
lakkis [162]

Answer:

L=107.6m

Explanation:

Cold water in: m_{c}=1.2kg/s, C_{c}=4.18kJ/kg\°C, T_{c,in}=20\°C, T_{c,out}=80\°C

Hot water in: m_{h}=2kg/s, C_{h}=4.18kJ/kg\°C, T_{h,in}=160\°C, T_{h,out}=?\°C

D=1.5cm=0.015m, U=649W/m^{2}K, LMTD=?\°C, A_{s}=?m^{2},L=?m

Step 1: Determine the rate of heat transfer in the heat exchanger

Q=m_{c}C_{c}(T_{c,out}-T_{c,in})

Q=1.2*4.18*(80-20)

Q=1.2*4.18*(80-20)

Q=300.96kW

Step 2: Determine outlet temperature of hot water

Q=m_{h}C_{h}(T_{h,in}-T_{h,out})

300.96=2*4.18*(160-T_{h,out})

T_{h,out}=124\°C

Step 3: Determine the Logarithmic Mean Temperature Difference (LMTD)

dT_{1}=T_{h,in}-T_{c,out}

dT_{1}=160-80

dT_{1}=80\°C

dT_{2}=T_{h,out}-T_{c,in}

dT_{2}=124-20

dT_{2}=104\°C

LMTD = \frac{dT_{2}-dT_{1}}{ln(\frac{dT_{2}}{dT_{1}})}

LMTD = \frac{104-80}{ln(\frac{104}{80})}

LMTD = \frac{24}{ln(1.3)}

LMTD = 91.48\°C

Step 4: Determine required surface area of heat exchanger

Q=UA_{s}LMTD

300.96*10^{3}=649*A_{s}*91.48

A_{s}=5.07m^{2}

Step 5: Determine length of heat exchanger

A_{s}=piDL

5.07=pi*0.015*L

L=107.57m

7 0
2 years ago
In addition to bandages and gauze, it's recommended that a first aid kit also contain
e-lub [12.9K]
Disinfectant supplies, such as wipes of gel.
7 0
3 years ago
The __________ developed the national electric code, the national building code, and the national fire prevention code.
Dahasolnce [82]

Main Answer:

<u>The Bureau of Indian standards</u> developed the national electric code, the national building code, and the national fire prevention code.

Sub heading:

explain BIS?

Explanation:

1.BIS-bureau of indian standard is the national standard body of india.

2.BIS is responbility for the harmonious deve;opment of the activities of standardization.marking .

Reference link:

https://brainly.com

Hashtag:

#SPJ4

5 0
2 years ago
A drilling operation is performed on a steel part using a 12.7 mm diameter twist drill with a point angle of 118 degrees. The ho
Masteriza [31]

Answer:

a. Rotational speed of the drill  = 375.96 rev/min

b. Feed rate  = 75 mm/min

c. Approach allowance  = 3.815 mm

d. Cutting time  = 0.67 minutes

e. Metal removal rate after the drill bit reaches full diameter. = 9525 mm³/min

Explanation:

Here we have

a. N = v/(πD) = 15/(0.0127·π) = 375.96 rev/min

b. Feed rate = fr = Nf = 375.96 × 0.2 = 75 mm/min

c. Approach allowance = tan 118/2 = (12.7/2)/tan 118/2 = 3.815 mm

d. Approach allowance T∞ =L/fr = 50/75 = 0.67 minutes

e. R = 0.25πD²fr = 9525 mm³/min.

7 0
3 years ago
Other questions:
  • Subcooled liquid water flows adiabatically in a constant diameter pipe past a throttling valve that is partially open. The liqui
    13·1 answer
  • Assuming the point estimate in Problem 6.36 is the true population parameter, what is the probability that a particular assay, w
    15·1 answer
  • An Ideal gas is being heated in a circular duct as while flowing over an electric heater of 130 kW. The diameter of duct is 500
    11·1 answer
  • For all the problems describe all pieces to the equations. 1.What is the equation for normal stress? 2.What is the equation for
    7·1 answer
  • A student lives in an apartment with a floor area of 60 m2 and ceiling height of 1.8 m. The apartment has a fresh (outdoor) air
    14·1 answer
  • After replacing a vacuum booster, the brakes lock up on a road test. Technician A says there is air trapped inside the brake lin
    7·1 answer
  • How can I draw this image in 2D form
    13·1 answer
  • 6.) ___________ is a disadvantage of local storage since it can be very expensive.
    5·1 answer
  • can anyone help me with this please.i have the current and pf for branch 1 and 2 but cant figure out the total current, pf and a
    12·1 answer
  • Pipelines are a useful means of transporting oil because they: Multiple select question. are fast never fail to deliver are chea
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!