subject
Engineering, 16.01.2020 04:31 2005AngelMoore

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 (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 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 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

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:20
Aheavily insulated piston-cylinder device contains 0.02 m3 of steam at 300 kpa and 200 °c. 1.2 mpa. d this process. team is now compressed in a reversible manner to a pressure of etermine the entropy change and the work done on the steam during this process
Answers: 1
question
Engineering, 04.07.2019 19:20
Apreheater involves the use of condensing steam at 100°c on the inside of a bank of tubes to heat air that enters at 1 atm and 25°c. the air moves at 5 m/s in cross flow over the tubes. each tube is 1 m long and has an outside diameter of 10 mm. what is the minimum value of nl needed to achieve an outlet temperature of t 75 c? what is the corresponding pressure drop across the tube bank?
Answers: 3
You know the right answer?
Basic output with variables (java) this zylab activity is intended for students to prepare for a lar...
Questions
question
Mathematics, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
World Languages, 14.09.2020 06:01
question
Chemistry, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
English, 14.09.2020 06:01
question
English, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
Chemistry, 14.09.2020 06:01
question
English, 14.09.2020 06:01
question
English, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
Mathematics, 14.09.2020 06:01
question
Social Studies, 14.09.2020 06:01
question
Arts, 14.09.2020 06:01
question
Chemistry, 14.09.2020 06:01
question
English, 14.09.2020 06:01