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
Write a program to control the operation of the RED/GREEN/BLUE LED (LED2) as follows: 1. If no button is pressed, the LED should
aalyn [17]

Answer:

See explaination

Explanation:

int RED=10; int BLUE=11; int GREEN=12; int BUTTON1=8; int BUTTON2=9; void setup() { pinMode(RED, OUTPUT); pinMode(BLUE, OUTPUT); pinMode(GREEN, OUTPUT); pinMode(BUTTON1, INPUT); pinMode(BUTTON2, OUTPUT); } void loop() { int BTN1_STATE=digitalRead(BUTTON1); int BTN2_STATE=digitalRead(BUTTON2); if(BTN1_STATE==HIGH) { digitalWrite(BLUE, HIGH); delay(1000); // Wait for 1 second digitalWrite(BLUE, LOW); } if(BTN2_STATE==HIGH) { digitalWrite(RED, HIGH); delay(4000); // Wait for 4 seconds digitalWrite(RED, LOW); } if(BTN1_STATE==HIGH && BTN2_STATE==HIGH) { digitalWrite(GREEN, HIGH); delay(2000); // Wait for 2 second digitalWrite(GREEN, LOW); } }

4 0
3 years ago
Which of the following are all desirable properties of a hydraulic fluid? a. good heat transfer capability, low viscosity, high
Vinvika [58]

Answer:

e.Fire resistance,Inexpensive,Non-toxic.

Explanation:

Desirable hydraulic property of fluid as follows

1. Good chemical and environment stability

2. Low density

3. Ideal viscosity

4. Fire resistance

5. Better heat dissipation

6. Low flammability

7. Good lubrication capability

8. Low volatility

9. Foam resistance

10. Non-toxic

11. Inexpensive

12. Demulsibility

13. Incompressibility

So our option e is right.

5 0
3 years ago
Working with which of these systems requires a technician that has been certified in an EPA-approved course?
makvit [3.9K]

EPA Regulations provides a certified course for the technicians involved in the Air-conditioning system.

Answer: Option (b)

<u>Explanation:</u>

The EPA regulation has implemented an act called the "Clean Air Act" under the "section of 609".

This act provides some basic requirements for EPA Regulation such as follows;

  • Refrigerant: This unit must be approved by EPA Regulations before being implemented into the atmosphere.
  • Servicing: This system provides a certified course for technicians in service and also approve them with proper refrigerant equipment.
  • Reuse Refrigerants: The use of recycled refrigerants must be properly monitored before it comes in to serve.
6 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
Match the following items with their correct description.
Lera25 [3.4K]

Answer:

A. Manufacturers rating capacity ↔  3. Must be marked on all jacks; must not be exceeded

B. Block Used to lift and hold heavy loads, allow them for travel ↔ 1. Place the jack head against this

C. Level surface ↔ 4. Place this under the base of the jack when it's necessary to provide a firm foundation

D. Jack ↔ 2. Used to lift and hold heavy loads, allow them for travel

Explanation:

The manufacturers rating for a jack is labelled on all jacks and should be referenced to compare with the load to be lifted so as to ensure a safe and successful lifting.

In order to lift a load, such as a car, it is required to place the jack on a level surface to provide balance during the lifting task

The head of the jack is placed against the block for lifting heavy objects for proper performance

8 0
3 years ago
Other questions:
  • Assignment 1: Structural Design of Rectangular Reinforced Concrete Beams for Bending
    6·1 answer
  • Which utility program reads an assembly language source file and produces an object file?
    6·1 answer
  • A belt drive was designed to transmit the power of P=7.5 kW with the velocity v=10m/s. The tensile load of the tight side is twi
    14·1 answer
  • Complete the following sentence.
    13·1 answer
  • A plane wall of thickness 2L = 40 mm and thermal conductivity k = 5 W/m K experiences uniform volumetric heat generation at a ra
    15·1 answer
  • Identify the different engineering activities/steps in the engineering design process for each steps,summarize in 1–3 sentences
    13·1 answer
  • Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 12.00
    13·1 answer
  • Which lists the order of Energy Career Pathways from the source to the customer?
    9·2 answers
  • What do you think causes the differences in the properties of oxygen gas (O2) and ozone (O3)? the space between the atoms the ra
    9·1 answer
  • Which of the given strategies is specifically a competitive advantage sustainment strategy?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!