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]
2 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]2 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 EFFECT OF ICE ACCRETION ON THE LONGITUDINAL STABILITY OF AN AIRCRAFT?
soldier1979 [14.2K]

Answer:

The major effects of ice accretion on the aircraft is that it disturbs the flow of air and effects the aircraft's performance.

Explanation:

The ice accretion effects the longitudinal stability of an aircraft as:

1. The accumulation of ice on the tail of an aircraft results in the reduction the longitudinal stability and  the elevator's efficacy.

2. When the flap is deflected at 10^{\circ} with no power there is an increase in the longitudinal velocity.  

3. When the angle of attack is higher close to the stall where separation occurs in the early stages of flow, the effect of ice accretion are of importance.  

4. When the situation involves no flap  at reduced power setting results in the decrease in aircraft's longitudinal stability an increase in change in coefficient of pitching moment  with attack angle.

5 0
3 years ago
Air modeled as an ideal gas enters a well-insulated diffuser operating at steady state at 270 K with a velocity of 180 m/s and e
ZanzabumX [31]

Answer:

exit temperature 285 K

Explanation:

given data

temperature T1 = 270 K

velocity = 180 m/s

exit velocity =  48.4 m/s

solution

we know here diffuser is insulated so here heat energy is negleted

so we write here energy balance equation that is

0 = m (h1-h2) + m ×  (\frac{v1^2}{2}-\frac{v2^2}{2})   .....................1

so it will be

h1 + \frac{v1^2}{2} = h2 + \frac{v2^2}{2}      .....................2

put here value by using ideal gas table

and here for temperature 270K

h1 = 270.11 kJ/kg

270.11 + \frac{180^2\times \frac{1}{1000}}{2} = h2 + \frac{48.4^2\times \frac{1}{1000}}{2}  

solve it we get

h2 = 285.14 kJ/kg

so by the ideal gas table we get

T2 = 285 K

4 0
3 years ago
). A 50 mm diameter cylinder is subjected to an axial compressive load of 80 kN. The cylinder is partially
Delicious77 [7]

Answer:

\frac{e'_z}{e_z} = 0.87142

Explanation:

Given:-

- The diameter of the cylinder, d = 50 mm.

- The compressive load, F = 80 KN.

Solution:-

- We will form a 3-dimensional coordinate system. The z-direction is along the axial load, and x-y plane is categorized by lateral direction.

- Next we will write down principal strains ( εx, εy, εz ) in all three directions in terms of corresponding stresses ( σx, σy, σz ). The stress-strain relationships will be used for anisotropic material with poisson ratio ( ν ).

                          εx = - [ σx - ν( σy + σz ) ] / E

                          εy = - [ σy - ν( σx + σz ) ] / E

                          εz = - [ σz - ν( σy + σx ) ] / E

- First we will investigate the "no-restraint" case. That is cylinder to expand in lateral direction as usual and contract in compressive load direction. The stresses in the x-y plane are zero because there is " no-restraint" and the lateral expansion occurs only due to compressive load in axial direction. So σy= σx = 0, the 3-D stress - strain relationships can be simplified to:

                          εx =  [ ν*σz ] / E

                          εy = [ ν*σz ] / E

                          εz = - [ σz ] / E   .... Eq 1

- The "restraint" case is a bit tricky in the sense, that first: There is a restriction in the lateral expansion. Second: The restriction is partial in nature, such, that lateral expansion is not completely restrained but reduced to half.

- We will use the strains ( simplified expressions ) evaluated in " no-restraint case " and half them. So the new lateral strains ( εx', εy' ) would be:

                         εx' = - [ σx' - ν( σy' + σz ) ] / E = 0.5*εx

                         εx' = - [ σx' - ν( σy' + σz ) ] / E =  [ ν*σz ] / 2E

                         εy' = - [ σy' - ν( σx' + σz ) ] / E = 0.5*εy

                         εx' = - [ σy' - ν( σx' + σz ) ] / E =  [ ν*σz ] / 2E

- Now, we need to visualize the "enclosure". We see that the entire x-y plane and family of planes parallel to ( z = 0 - plane ) are enclosed by the well-fitted casing. However, the axial direction is free! So, in other words the reduction in lateral expansion has to be compensated by the axial direction. And that compensatory effect is governed by induced compressive stresses ( σx', σy' ) by the fitting on the cylinderical surface.

- We will use the relationhsips developed above and determine the induced compressive stresses ( σx', σy' ).

Note:  σx' = σy', The cylinder is radially enclosed around the entire surface.

Therefore,

                        - [ σx' - ν( σx'+ σz ) ] =  [ ν*σz ] / 2

                          σx' ( 1 - v ) = [ ν*σz ] / 2

                          σx' = σy' = [ ν*σz ] / [ 2*( 1 - v ) ]

- Now use the induced stresses in ( x-y ) plane and determine the new axial strain ( εz' ):

                           εz' = - [ σz - ν( σy' + σx' ) ] / E

                           εz' = - { σz - [ ν^2*σz ] / [ 1 - v ] } / E

                          εz' = - σz*{ 1 - [ ν^2 ] / [ 1 - v ] } / E  ... Eq2

- Now take the ratio of the axial strains determined in the second case ( Eq2 ) to the first case ( Eq1 ) as follows:

                            \frac{e'_z}{e_z} = \frac{- \frac{s_z}{E} * [ 1 - \frac{v^2}{1 - v} ]  }{-\frac{s_z}{E}}  \\\\\frac{e'_z}{e_z} = [ 1 - \frac{v^2}{1 - v} ] = [ 1 - \frac{0.3^2}{1 - 0.3} ] \\\\\frac{e'_z}{e_z} = 0.87142... Answer

5 0
3 years ago
The fracture strength of glass may be increased by etching away a thin surface layer. It is believed that the etching may alter
Korvikt [17]

Answer:

the ratio of the etched to the original crack tip radius is 30.24

Explanation:

Given the data in the question;

we determine the initial fracture stress using the following expression;

(σf)₁ = 2(σ₀)₁ [ α₁/(p_t)₁ ]^{1/2 ----- let this be equation 1

where; (σ₀)₁ is the initial fracture strength

(p_t)₁ is the original crack tip radius

α₁ is the original crack length.

first, we determine the final crack length;

α₂ = α₁ - 16% of α₁

α₂ = α₁ - ( 0.16 × α₁)

α₂ = α₁ - 0.16α₁

α₂ = 0.84α₁

next, we calculate the final fracture stress;

the fracture strength is increased by a factor of 6;

(σ₀)₂ = 6( σ₀ )₁

Now, expression for the final fracture stress

(σf)₂ = 2(σ₀)₂ [ α₂/(p_t)₂ ]^{1/2 ------- let this be equation 2

where (p_t)₂ is the etched crack tip radius

value of fracture stress of glass is constant

Now, we substitute 2(σ₀)₁ [ α₁/(p_t)₁ ]^{1/2 from equation for (σf)₂  in equation 2.

0.84α₁ for α₂.

6( σ₀ )₁ for (σ₀)₂.

∴

2(σ₀)₁ [ α₁/(p_t)₁ ]^{1/2  = 2(6( σ₀ )₁) [ 0.84α₁/(p_t)₂ ]^{1/2  

divide both sides by 2(σ₀)₁

[ α₁/(p_t)₁ ]^{1/2  =  6 [ 0.84α₁/(p_t)₂ ]^{1/2

[ 1/(p_t)₁ ]^{1/2  =  6 [ 0.84/(p_t)₂ ]^{1/2

[ 1/(p_t)₁ ]  =  36 [ 0.84/(p_t)₂ ]

1 / (p_t)₁ = 30.24 / (p_t)₂

(p_t)₂ = 30.24(p_t)₁

(p_t)₂/(p_t)₁ = 30.24

Therefore, the ratio of the etched to the original crack tip radius is 30.24

6 0
3 years ago
What is the probability that Tina will NOT wear a white t-shirt on the first day of her trip?
katrin2010 [14]

Answer:

4/5

Explanation:

She is not wearing white t-shirt on the first day so she is wearing the other 4 t-shirt

4 0
3 years ago
Other questions:
  • Describe a simple process
    11·1 answer
  • Model the real world idea of an Address. 123 Main Street Apt #2 Small Town, Iowa 55555 USA Write a class called Address, follow
    11·1 answer
  • A market research survey has 15 questions and will be sent to 500 people. What is the total cost to conduct survey if it has a $
    12·1 answer
  • A truck is hauling a 300-kg log out of a ditch using a winch attached to the back of the truck. Knowing the winch applies a cons
    14·1 answer
  • It is possible to have liquid water at 200°C. a)-True b)- False
    14·1 answer
  • Which actions would the maintenance and operations crews carry out as a building is completed and preparing to open to the publi
    8·2 answers
  • Heyyyyyyyyy people wrud
    7·1 answer
  • An ideal Diesel Cycle has a compression ratio of 18 and a cutoff ratio of 1.5. Determine the maximum air temperature and the rat
    14·1 answer
  • I want to know if anyone else know how to tell apart real leather from fake leather?!?!
    6·2 answers
  • Periodic lubrication and oil changes according to manufacturer’s recommendations extend the life of your vehicle, and allow you
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!