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
r-ruslan [8.4K]
2 years ago
14

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.
Computers and Technology
2 answers:
Serggg [28]2 years ago
4 0
The first division should reduce the hundreds digit to the units digit by dividing by 100.  Ignoring remainder means ignoring the previous units and tens digits.
The second division, where we keep the remainder is to extract the units digit by ignoring the quotient.  So we divide by 10.  The discarded digits are the tens and higher digits.

max2010maxim [7]2 years ago
3 0

Answer:

X = 100 and Y = 10

Explanation:

Let's do the example, where input = 28398

Step 1: Divide the input by 100. Call the quotient and ignore the remainder.

28398/100 = 283.98, quotient = 283, remainder = 89

Step 2: Now divide by 10. Ignore the quotient and call the remainder  

283/10 = 28.3,  quotient = 28, remainder = 3

Step 3: Return 3

You might be interested in
How can I collect tweets from different accounts concurrently and categorize the tweets in a corpus?
jenyasd209 [6]
Take screenshots of other tweets and get a app that can put them together in 1 photo or use google slides
4 0
3 years ago
Which technology concept uses computer resources from multiple locations to solve a common problem?
MrRa [10]
Sounds like you are talking about Grid computing. You can also say cloud computing since that is the buzz words nowadays, but cloud computing is a very general statement.
5 0
3 years ago
Read 2 more answers
The advancements in which of the following technologies has most changed the American job market in recent years?
vodka [1.7K]

Answer:

Manufacturing mostly

7 0
3 years ago
Read 2 more answers
Define a JavaScript function named showGrades which does not have any parameters. Your function should create and return an arra
grandymaker [24]

Answer:

see explaination

Explanation:

//selective dev elements by id name

var gradeA = document.querySelector("#GradeA");

var passing = document.querySelector("#Passing");

var learning = document.querySelector("#Learning");

//function showGrades

function showGrades() {

var arr = [];

//converting string to int and inserting into array

arr[0] = parseInt(gradeA.textContent);

arr[1] = parseInt(passing.textContent);

arr[2] = parseInt(learning.textContent);

//creating json blob

var blob = new Blob(new Array(arr), {type:"text/json"});

return blob;

}

8 0
3 years ago
Why did it take fewer 1-inch tiles than 1-centimeter tiles to measure the length of the cookie cutter?​
Romashka-Z-Leto [24]

The inch tiles are larger, meaning they use less space.

6 0
3 years ago
Other questions:
  • Keion works as a freelancer creating websites and designing logos for clients. He recently had a hard drive failure and lost wor
    7·1 answer
  • How must you rect to a flashing<br> Yellow traffic light?
    9·1 answer
  • Write the execution steps if the input is a lion.
    11·1 answer
  • Name types of operating system with example
    5·1 answer
  • Which statement best describes what happen to the temoporary working memory (RAM) of a computer when it shut down
    12·2 answers
  • Public class Student {
    14·1 answer
  • 2. Select the things you can do when working with rows in columns in a spreadsheet:
    5·1 answer
  • What is the correct order for writing the 3 dimensions for a 3D object? Here are the 3 dimensions:
    15·1 answer
  • Several small stores rent space within a larger shopping centre. The owners of the shopping centre have provided a physical netw
    15·1 answer
  • List and describe four services that comprise IT infrastructure, beyond physical devices and software applications.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!