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]
3 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]3 years ago
3 0

Answer:

1

Explanation:

You might be interested in
Best budget freestyle drone?
RUDIKE [14]

Hx115 it's pretty fine looking

4 0
2 years ago
For two different air velocities, the Nusselt number for two different diameter cylinders in cross flow is the same. The average
densk [106]
C smaller than that of the larger-diameter cylinder
3 0
2 years ago
A Wii remote flung from a hand through a TV, with a kinetic energy of 1.44J and a mass of 4.5kg. Whats the velocity?
Eva8 [605]

Answer:

0.8

Explanation:

7 0
3 years ago
Analyze the example of this band saw wheel and axle. The diameter of the wheel is 14 inches. The diameter of the axle that drive
Kazeer [188]

The answer for the ideal mechanical advantage and actual mechanical advantage for the different scenarios are;

A) Ideal Mechanical Advantage = 18.67

B) Actual Mechanical Advantage = 4.1067

We are given;

Input distance; The diameter of the wheel; d_w = 14 inches

Output distance; The diameter of the axle that drives the wheel; d_a = 3/4 inches

The force needed to cut a one-inch-thick softwood board; F = 1.75 pounds

The efficiency of the band saw; η = 22% = 0.22

A) Formula for Mechanical advantage is;

M.A = Force output/Force input = (Input distance)/(Output distance)

Thus;

Ideal mechanical advantage = 14/(3/4)

Ideal mechanical advantage = 18.67

B) Now, we are given that efficiency of the band saw is η = 22% = 0.22.

Thus using the mechanical advantage formula above;

Actual mechanical advantage = 0.22 × Expected output

Actual mechanical advantage = 0.22 × 18.67

Actual mechanical advantage ≈ 4.1067

Read more about Mechanical Advantage at; brainly.com/question/18345299

5 0
2 years ago
Single point cutting tool removes material from a rotating work piece to generate a cylinder is called • Facing Tuming • Both 1
madam [21]

Answer:Turning

Explanation: Turning is the process in which the work piece is subjected to machining so that excess part is removed with the help of rotation by turning machine or lathe machine.The cutter tool is used for cutting the excess of the work piece and it  is mostly single-pointed so that give accurate removal of the excess of work piece.At times , according to the requirement multi-pointed tool is also used Therefore, the correct option is turning.

6 0
3 years ago
Other questions:
  • 5. Switch a in the circuit has been open for a long time and switch b has been closed for a long time. Switch a is closed at t =
    13·1 answer
  • Sophia is designing a new welding shop for the local high school. Where should the compressed gas and fuel cylinders be stored?
    15·1 answer
  • Air,in a piston cylinder assembly, is initially at 300 K and 200 kPa.It is then heated at constant pressure to 600 K. Determine
    12·2 answers
  • A Barnes and Books is interested in purchasing a two-story building for a new
    5·1 answer
  • What effect will increasing numbers of high-profile green building projects likely have on thinking about building?
    5·1 answer
  • Stakeholders are people or organizations who do what?
    10·2 answers
  • Tech A says that LED brake lights illuminate faster than incandescent bulbs. Tech B says that LED brake lights have
    13·1 answer
  • How do we infer that there is
    9·1 answer
  • In a series circuit, resistance is the simple _____ of all resistors in the circuit.
    5·1 answer
  • Write a SELECT statement that returns these four columns:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!