subject

/* * lesson 7 coding activity question 1 * * input a positive three digit integer. print out the digits one per line. * * sample run: enter a three digit number: 678 here are the digits: 6 7 8 */ import java. util. scanner; import java. lang. math; class lesson_7_activity_one { public static void main(string[] args) { /* write your code here * copy and paste your entire code to code runner to complete the activity, * from the first import statement to the last bracket. */ scanner scan = new scanner (system. in); system. out. println(" enter a three digit number: "); int num= scan. nextint(); int first = num % 10; int second = ( num - first ) % 100 / 10; int third = ( num - first - second ) % 1000 / 100; system. out. println("here are the digits: "); system. out. println(first); system. out. println(second); system. out. println(third); } }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
You know the right answer?
/* * lesson 7 coding activity question 1 * * input a positive three digit integer. print out the dig...
Questions
question
Mathematics, 19.11.2020 01:20
question
Spanish, 19.11.2020 01:20
question
Mathematics, 19.11.2020 01:20
question
English, 19.11.2020 01:20
question
Mathematics, 19.11.2020 01:20
question
Mathematics, 19.11.2020 01:20
Questions on the website: 13722363