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
madam [21]
3 years ago
15

Suppose you have an int variable called number. What Java expression produces the second-to-last digit of the number (the 10s pl

ace)?
What expression produces the third-to-last digit of the number (the 100s place)?
(Note: Our code checker won't match every possible expression; please come up with the simplest expression using division and modulus.)
10s place
100s place
Computers and Technology
1 answer:
kobusy [5.1K]3 years ago
4 0

Answer:

int second_to_last = (number/10)%10;

int third_to_last = (number/100)%10;

Explanation:

The first expression int second_to_last = (number/10)%10; first divide the number by ten and then get modulus by dividing by ten again which will then give the second to last digit.

Assuming number is 146 the second to last digit will be 4.

for the second expression int third_to_last = (number/100)%10; first divide the number by hundred and then get modulus by dividing by ten which will then give the third to last digit.

Assuming number is 4368 the third to last digit will be 3.

You might be interested in
Which action is applicable only to tables?
crimeas [40]

Answer:

the answer is adding and deleting rows

3 0
3 years ago
Explain how communication facilitate cordination​
Oksana_A [137]

Answer:

Communication greatly helps in coordination. Effective communication facilitates information and exchange of ideas which helps to achieve the common purpose. Coordination is facilitated by exchange of such ideas and information and brings people together.

Explanation:

4 0
3 years ago
A while loop's body can contain multiple statements, as long as they are enclosed in braces
algol [13]

Answer:

True

Explanation:

while loop is used to execute the statement again and again until the condition is true. if condition False program terminate the while loop and start execute the statement outside the loop.

syntax:

initialize;

while(condition)

{

  statement 1;

  statement 2;

   to

  statement n;

}

we can write multiple statement within the braces. their is no limit to write the statement within the body of the while loop.

while terminate only when condition false

4 0
4 years ago
Gwen has a photo she'd like to display in her speech, but she forgot to digitize it. She only has a hard copy, and she doesn't h
irina1246 [14]

Answer:

Option(d) i.e "document camera " is the correct answer for the given question  

Explanation:

The document camera is mainly preferable when our aim displays the object into a large audience with the help of document camera  Gwen displays her speech into the classroom.

The hard copy is simply placed in the document camera, it takes the hard copy as an image format and gives the live image of the speech with the help of a monitor .

  • The main advantage of a document camera is that they provide greater flexibility.
  • Traditional whiteboard, overhead projector, flip charts not the best solution for that problem also they do not provide flexibility so they are all incorrect options.

8 0
4 years ago
Can someone tell me what Identity Theft in there own words
gavmur [86]
Stealing someone else’s identity or identification
8 0
3 years ago
Other questions:
  • To view the results of a saved query, right-click the query in the Navigation Pane and click ____ on the shortcut menu.
    7·1 answer
  • What is DBMS software used for?
    5·1 answer
  • Answer the following
    11·1 answer
  • Which of the following is not a SQL*Loader file?
    11·1 answer
  • What is the purpose of the domain name? The domain name is an example of a service provider. The domain name .gov.nz is an examp
    15·2 answers
  • You dad has given you his old digital scanner for your new computer. you plug it into the usb drive on your windows 8 computer b
    8·1 answer
  • Algorithms can be created in all the following ways EXCEPT:
    10·1 answer
  • Write a second ConvertToInches() with two double parameters, numFeet and numInches, that returns the total number of inches.
    10·1 answer
  • Write c++ program from 1to 100 to find prime numbers using statement.<br><br>please help me​
    15·1 answer
  • An engineer is designing an HTML page and wants to specify a title for the browser tab to display, along with some meta data on
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!