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
liubo4ka [24]
2 years ago
7

Basic output with variables (Java) This zyLab activity is intended for students to prepare for a larger programming assignment.

Warm up exercises are typically simpler and worth fewer points than a full programming assignment. Warm up exercises are ideally suited for an in-person scheduled lab meeting or as self-practice. The last section provides a full programming assignment. A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated. (Submit for 2 points) (1) Output the user's input. Enter integer: 4 You entered: 4 (2) Extend to output the input squared and cubed. Hint: Compute squared as userNum userNum. (Submit for 2 points, so 4 points total). Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64!! (3) Extend to get a second user input into userNum2. Output sum and product. (Submit for 1 point, so 5 points total). Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64!! Enter another integer: 5 4 5 is 9 45 is 20 LAB 1.16.1: Basic output with variables (Java) 0/5 ACTIVITY OutputWithVars.java Load default template... 1 import java.util.Scanner; 2 3 public class OutputWithVars public static void main(String [] args) Scanner scnr new Scanner(System. in); int userNum - 0 6 7 System.out.println ("Enter integer: ") userNum scnr. next Int ( ) ; 9 10 return; 11 12 13
Engineering
1 answer:
9966 [12]2 years ago
3 0

Answer:

1

Explanation:

You might be interested in
A water-filled manometer is used to measure the pressure in an air-filled tank. One leg of the manometer is open to atmosphere.
ddd [48]

Answer:

P = 150.335\,kPa (Option B)

Explanation:

The absolute pressure of the air-filled tank is:

P = 101.3\,kPa + \left(1000\,\frac{kg}{m^{3}} \right)\cdot \left(9.807\,\frac{kg}{m^{3}} \right)\cdot (5\,m)\cdot \left(\frac{1\,kPa}{1000\,Pa} \right)

P = 150.335\,kPa

4 0
3 years ago
Các đặc điểm chính của đường dây dài siêu cao áp .
rodikova [14]

Answer:

Đường dây siêu cao áp 500kV: Những chuyện giờ mới kể ... ​Ngày 27/5/1994, hệ thống đường dây điện siêu cao áp 500kV Bắc - Nam chính thức đưa ... Tại thời điểm đó, các nước như Pháp, Úc, Mỹ khi xây dựng đường dây dài nhất ... và chế ra các máy kéo dây theo đặc thù công việc của từng đơn vị.

Explanation:

8 0
2 years ago
Charging method .Constant current method​
mina [271]

Answer:

There are three common methods of charging a battery; constant voltage, constant current and a combination of constant voltage/constant current with or without a smart charging circuit.

Constant voltage allows the full current of the charger to flow into the battery until the power supply reaches its pre-set voltage.  The current will then taper down to a minimum value once that voltage level is reached.  The battery can be left connected to the charger until ready for use and will remain at that “float voltage”, trickle charging to compensate for normal battery self-discharge.

Constant current is a simple form of charging batteries, with the current level set at approximately 10% of the maximum battery rating.  Charge times are relatively long with the disadvantage that the battery may overheat if it is over-charged, leading to premature battery replacement.  This method is suitable for Ni-MH type of batteries.  The battery must be disconnected, or a timer function used once charged.

Constant voltage / constant current (CVCC) is a combination of the above two methods.  The charger limits the amount of current to a pre-set level until the battery reaches a pre-set voltage level.  The current then reduces as the battery becomes fully charged.  The lead acid battery uses the constant current constant voltage (CC/CV) charge method. A regulated current raises the terminal voltage until the upper charge voltage limit is reached, at which point the current drops due to saturation.

4 0
2 years ago
Two small balls A and B with masses 2m and m respectively are released from rest at a height h above the ground. Neglecting air
statuscvo [17]

Answer:

The kinetic energy of A is twice the kinetic energy of B

Explanation:

5 0
3 years ago
Five hundred gallons of 89-octane gasoline is obtained by mixing 87-octane gasoline with 92-octane gasoline. (a) Write a system
miskamm [114]

Explanation:

a) The total volume equals the sum of the volumes.

500 = x + y

The total octane amount equals the sum of the octane amounts.

89(500) = 87x + 92y

44500 = 87x + 92y

b) desmos.com/calculator/ekegkzllqx

As x increases, y decreases.

c) Use substitution or elimination to solve the system of equations.

44500 = 87x + 92(500−x)

44500 = 87x + 46000 − 92x

5x = 1500

x = 300

y = 200

The required volumes are 300 gallons of 87 gasoline and 200 gallons of 92 gasoline.

6 0
3 years ago
Other questions:
  • In order to protect yourself if you have a dispute with another drivers insurance company you should:
    9·1 answer
  • 2 Consider airflow over a plate surface maintained at a temperature of 220°C. The temperature profile of the airflow is given as
    13·1 answer
  • List two possible reasons the engine oil could have a strong gasoline smell
    15·1 answer
  • What forced induction device is more efficient?
    8·2 answers
  • Name the famous engineer in the world​
    10·2 answers
  • What is the relationship between compressor work and COPR?
    14·1 answer
  • A hammer can be used to see how a mineral breaks. If you observe square chunks of the mineral when broken, what can you conclude
    15·1 answer
  • Oil, with density of 900 kg/m3 and kinematic viscosity of 0.00001 m2/s, flows at 0.2 m3/s through 500 m of 200-mm-diameter cast-
    12·1 answer
  • Rivet gauge, or transverse pitch is the distance between the Group of answer choices heads of rivets in the same row. centers of
    11·1 answer
  • When starting up a dual fuel system, the temperature rise method for determining airflow cannot be used with the compressor cycl
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!