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
Proper ventilation is required when welding, so that you don't ____________.
galben [10]
I say the answers is A but if you mean ventilation in the area of the room then answer B
4 0
3 years ago
Read 2 more answers
Basic concepts surrounding electrical circuitry?​
Elanso [62]
Hopefully that helps you out and is this for history or science?

3 0
2 years ago
Which rigid motion maps the solid-line figure onto the dotted-line figure?
Agata [3.3K]
I would love to answer but unfortunately there is no picture.
5 0
3 years ago
The acceleration of a particle is given by a = 2t − 10, where a is in meters per second squared and t is in seconds. Determine t
tensa zangetsu [6.8K]

Answer

given,

a = 2 t - 10

velocity function

we know,

\dfrac{dv}{dt}=a

\dfrac{dv}{dt}=(2t-10)

integrating both side

\int dv =\int (2t -10) dt

 v = t² - 10 t + C

at t = 0   v = 3

so, 3 = 0 - 0 + C

     C = 3

Velocity function is equal to v = t² - 10 t + 3

Again we know,

\dfrac{dx}{dt}=v

\dfrac{dx}{dt}=(t^2-10t + 3)

integrating both side

\int dx =\int (t^2-10t + 3)dt

x = \dfrac{t^3}{3}- 10\dfrac{t^2}{2} + 3 t + C

now, at t= 0 s = -4

-4 = \dfrac{0^3}{3}- 10\dfrac{0^2}{2} + 0 + C

C = -4

So,

x = \dfrac{t^3}{3}- 10\dfrac{t^2}{2} + 3 t-4

Position function is equal to x = \dfrac{t^3}{3}- 10\dfrac{t^2}{2} + 3 t-4

8 0
3 years ago
The phasor technique is not valid if the frequencies of the sinusoids in the time domain are different. Part F - Use phasors to
AlladinOne [14]

Answer:

  a, c

Explanation:

As the problem statement tells you, the phasor technique cannot be used when the frequencies are different. The frequencies are different when the coefficients of t are different. The different ones are highlighted.

a. 45 sin(2500t – 50°) + 20 cos(1500t +20°)

b. 25 cos(50t + 160°) + 15 cos(50t +70°)

c. 100 cos(500t +40°) + 50 sin(500t – 120°) – 120 cos(500t + 60°) -100 sin(10,000t +90°) + 40 sin(10, 100t – 80°) + 80 cos(10,000t)

d. 75 cos(8t+40°) + 75 sin(8t+10°) – 75 cos(8t + 160°)

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is a construction worker with limited skills called?
    12·1 answer
  • Ok I need a new laptop but I'm not sure which one. The Surface laptop 3 is better in many fields like the camera, speaker, audio
    14·1 answer
  • In contouring, it is necessary to measure position and not velocity for feedback.
    9·1 answer
  • Which of the following identifies one factor that causes conventional tillage to actually be good for the environment?
    7·1 answer
  • The W16x50, steel beam below has a span of 26' and is subjected to a 2.3 k/ft uniform distributed loading. If a 8 kip load is al
    8·1 answer
  • How many times has the ITU-R revised the CCIR 601 international standard? A. four B. five C. six D. seven
    8·1 answer
  • Sort the following alphabets using MergeSort and give required steps. [2 Marks]
    9·1 answer
  • The resistance of a copper wire 200 m long is 21 Q. If its thickness (diameter) is 0.44 mm, its specific resistance is around___
    11·1 answer
  • A continuously variable transmission:
    13·1 answer
  • A train consists of a 50 Mg engine and three cars, each having a mass of 30 Mg . If it takes 75 s for the train to increase its
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!