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
Ame:<br> 7. A step-down transformer reduces the primary current.<br> True or false
RSB [31]
False


..............

It increases the primary current a step up reduces the primary current
6 0
3 years ago
Read 2 more answers
The penalty for littering 15 lb or less is _____.<br> A. $25<br> B. $50<br> C. $100<br> D. $150
Marina CMI [18]

Answer:

D the closest

Explanation:

i looked it up and 8t says 200

5 0
3 years ago
Inspection with considering a variable uses gages to determine if the product is good or bad. True or False?
irina1246 [14]

Answer:A. 40% B.50% C. 60% Od 70%

Explanation:A. True B. False

4 0
2 years ago
Read 2 more answers
A motor vehicle has a mass of 1200kg and the road wheels have a radius of 360mm. The engine rotating parts have a moment of iner
mihalych1998 [28]

Answer:

manda a senha do brainly bloquearam os amigos e você vai ver o meu perfil completo a minha amiga Jeciane estamos fazendo uma academia de lima e você vai ver o meu perfil completo a minha amiga Jeciane estamos completo a minha amiga Jeciane estamos fazendo uma academia de lima e você vai ver o meu perfil você vai ver o meu perfil você vai ver o meu perfil completo a minha amiga Jeciane estamos fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e você vai ver o meu perfil completo a minha amiga Jeciane estamos fazendo

Explanation:

Marcar como melhor porfavo

6 0
3 years ago
A thin-walled tube with a diameter of 6 mm and length of 20 m is used to carry exhaust gas from a smoke stack to the laboratory
Molodets [167]

Answer:

Explanation:

Mean temperature is given by

T_mean = \frac{T_i + T_ \infinity}{2}\\\\T_mean = \frac{200 + 15}{2}

Tmean = (Ti + T∞)/2

T_mean = 107.5^{0}

Tmean = 107.5⁰C

Tmean = 107.5 + 273 = 380.5K

Properties of air at mean temperature

v = 24.2689 × 10⁻⁶m²/s

α = 35.024 × 10⁻⁶m²/s

\mu = 221.6 × 10⁻⁷N.s/m²

\kappa = 0.0323 W/m.K

Cp = 1012 J/kg.K

Pr = v/α  = 24.2689 × 10⁻⁶/35.024 × 10⁻⁶

              = 0.693

Reynold's number, Re

Pv = 4m/πD²

where Re = (Pv * D)/\mu

Substituting for Pv

Re = 4m/(πD\mu)

     = (4 x 0.003)/( π × 6 ×10⁻³ × 221.6 × 10⁻⁷)

     = 28728.3

Since Re > 2000, the flow is turbulent

For turbulent flows, Use

Dittus - Doeltr correlation with n = 0.03

Nu = 0.023Re⁰⁸Pr⁰³ = (h₁D)/k

(h₁ × 0.006)/0.0323 = 0.023(28728.3)⁰⁸(0.693)⁰³

(h₁ × 0.006)/0.0323 = 75.962

h₁ = (75.962 × 0.0323)/0.006

h₁ = 408.93 W/m².K

4 0
3 years ago
Other questions:
  • You find a publication from a research laboratory that identifies a new catalyst for ammonia synthesis. The article contains the
    6·1 answer
  • A worker standing on a freshly mopped floor is
    7·1 answer
  • Historically, the introduction of technology has caused profound changes in the labor market and, temporarily at least, displace
    6·1 answer
  • The gas-turbine cycle of a combined gas–steam power plant has a pressure ratio of 8. Air enters the compressor at 290 K and the
    15·1 answer
  • For Laminar flow conditions, what size pipe will deliver 90 gpm of medium oil at 40°F (υ = 6.55 * 10^‐5)?
    12·1 answer
  • What additional information would make the following problem statement stronger? Select all that apply.
    8·1 answer
  • Your friend has two substances A and B which are compressed liquid and superheated vapor respectively. Both are in rigid vessels
    15·1 answer
  • If my current directory is ‘AR’ write the path for my current directory
    5·1 answer
  • Which of the following is an example of a pulley?
    10·2 answers
  • Merchandise without an expiration date like electronics, tools and home goods typically have a longer
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!