subject

The input to the following algorithm is a positive integer. the goal is to find the digit in the hundreds place of the integer. (for example, if we input 28398, we want the algorithm to output 3.) below is the proposed algorithm, but the values of x and y are missing: step 1: divide the input by x. call the quotient and ignore the remainder. step 2: now divide by y. ignore the quotient and call the remainder step 3: return what x, y will allow this algorithm to correctly find the hundreds digit of the input? put x in the first blank and y in the second blank. note: we would say that has a quotient of 2 and a remainder of 1.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
The input to the following algorithm is a positive integer. the goal is to find the digit in the hun...
Questions
question
Mathematics, 16.02.2021 22:10
question
Physics, 16.02.2021 22:10
Questions on the website: 13722367