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
What kinds of problems or projects would a civil engineer work on?
lisov135 [29]

Answer:

simple projects bovonhztisgx

8 0
3 years ago
After reading through the code, what will happen when you click run?* 1 point when run move forward while there is a pile do rem
KATRIN_1 [288]

Explanation:

I'm not exactly a master at coding, but I'm pretty sure that:

The farmer will remove dirt as long as there is a pile, then stop when the pile is done.

5 0
3 years ago
Write a script named dif.py. This script should prompt the user for the names of two text files and compare the contents of the
Ainat [17]

Answer:

1

Created on Nov 3, 2018 @author: ASLand

7import atexit

#Read, nanes of both files

Rrintll"Enter tvo files to be compared below

userliamel input ("Enter the nome of the first file: ")

userliame2 input("Enter the name of the second file: ")

ROpen each file

f1 - open(userNamel, r')

@17 f2 = opan(useriame 2, )

tread all the lines into a list

d1 f1.readlines ()

d2 f2.readlines()

re equivalent, print "Yes" else pri

oiterate, and conpare

#11

the

y

if dl == d2:

print("Yes")

atexit

elif for i in range(@, min(len (d1), len(d2))):

if di[i]!=d2[i]:

PCint("No")

print(d1[i])

pcint(d2[])

7 0
4 years ago
why would it be inappropriate to dimension to a feature on a surface that is not perpendicular to the line of sight?
bazaltina [42]
If you are drawing and dimensioning with a computer program the dimension will be inaccurate... If it is mechanical drawing then the fabricator would not have enough information to accurately measure the component. ie a circle turned a few degrees away from perp. would appear to be an ellipse. and may actually dimension that way
4 0
3 years ago
I don’t understand this
blondinia [14]

Answer:

Sorry for the delayed response- Right now I don't have time to give you the answer, but I really want to help so I'll try to phrase it in a easier way to understand things: Basically what you need to do for this problem is find the area of the base of the figure (which means length x width) and then you would simply find the volume of 160cm^{2} by finding the length of each side of the figure, find the length of the figure, find the height of the figure and then find the radius.

Have an amazing day and I hope this can somewhat help :)

7 0
3 years ago
Other questions:
  • All MOS devices are subject to damage from:________
    7·1 answer
  • When an object is moving, we use the following coefficient for friction calculations a)-μk b)-μs c)-γk d)- γs
    9·1 answer
  • Using the celsius_to_kelvin function as a guide, create a new function, changing the name to kelvin_to_celsius, and modifying th
    5·1 answer
  • Ignore swell and shrinkage for this problem.
    5·1 answer
  • B1) 20 pts. The thickness of each of the two sheets to be resistance spot welded is 3.5 mm. It is desired to form a weld nugget
    8·1 answer
  • A room is kept at −5°C by a vapor-compression refrigeration cycle with R-134a as the refrigerant. Heat is rejected to cooling wa
    7·2 answers
  • A bronze bushing 60 mm in outer diameter and 40 mm in inner diameter is to be pressed into a hollow steel cylinder of 120-mm out
    8·1 answer
  • How many buttons in an airbus a380 cockpit
    9·2 answers
  • What does an engineer do? List as many types of engineers as you can.
    9·1 answer
  • The aluminum rod (E1 = 68 GPa) is reinforced with the firmly bonded steel tube (E2 = 201 GPa). The diameter of the aluminum rod
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!