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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 08:10, doggo242
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
image
Engineering, 04.07.2019 16:10, TheOriginalMeyah
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
image
Engineering, 04.07.2019 18:10, samanthabutryn
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
image
Engineering, 04.07.2019 18:10, wyattlb97
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
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 in other subjects: