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
galben [10]
2 years ago
7

One fragment of a given integer n can be selected and its digits reversed (replaced with a right to left version of themselves).

What is the maximum number that can be obtained this way from integer n?.
SAT
1 answer:
andrew11 [14]2 years ago
7 0

Integers are numbers without decimal points. The number could be positive, negative or zero

<h3>How to determine the maximum number from the integer</h3>

The maximum number from integer N can be determined using the following program written in Python, where comments are used to explain each line

#This prompts the user for input

num = input("Number: ")

#This iterates from 0 to 9

kount = [0 for x in range(10)]

# This iterates through the input, and updates the kount variable

for i in range(len(num)):

  kount[int(num[i])] = kount[int(num[i])] + 1

# This next two lines initialize the greatest number

greatestNum = 0

multiplier = 1

# This iterates through the kount array

for i in range(10):

  #The following is repeated while the current element is greater than 0

while kount[i] > 0:

   #This generates the greatest number

greatestNum = greatestNum + ( i * multiplier )

kount[i] = kount[i] - 1

multiplier = multiplier * 10

#This prints the greatest number

print(greatestNum)

Read more about similar programs at:

brainly.com/question/26426553

You might be interested in
Xavier loves to sing and hum, and he always has music softly playing while he studies. The learning style that best fits Xavier
DENIUS [597]

Answer:Rhythmic/ musical learning style

Explanation:

Rhythmic learning style is when a student uses music to help them process information. They tend to hum, tap, sing or listen to music to help them learn better.

7 0
2 years ago
Read 2 more answers
What does "the long haul" represent in this poem? the ongoing battle to make the world a better place the connections between th
tia_tia [17]

Based on the excerpt from "Long Haul," we can deduce that "the long haul" represents: A. the ongoing battle to make the world a better place.

<h3>What is a context clue?</h3>

In English literature, a context clue refers to the hints in a literary work (poem) which is used by a poet to provide the meaning of an unfamiliar word or phrase, that is literally hidden in plain sight.

Based on the excerpt from "Long Haul," we can infer and logically deduce that "the long haul" represents an ongoing battle by the characters to make the world a better place for people to live in.

Learn more about Long Haul here: brainly.com/question/6750728

#SPJ1

8 0
2 years ago
How does gravity influence our solar system?? Claim evidence reasoning
Elis [28]

Answer:

The Sun's gravity pulls the planets in orbit around it, and some planets pull moons in orbit around them. Even spacecraft are in motion through the solar system, either in orbit around the Earth or Moon, or traveling to further worlds, because of gravitational forces.

Explanation:

hope it helps you and give me a brainliest

8 0
2 years ago
Read 2 more answers
What makes a good person?
bogdanovich [222]
Smart, funny, loyal, and also kind and respectful
3 0
2 years ago
Read 2 more answers
Which statement would be the best evidence that heat transfer through radiation has occurred and why
Oksi-84 [34.3K]

Answer:

C.

Explanation:

Radiation occurs whithout touching. This specific form of radiation is called thermal radiation.

6 0
3 years ago
Other questions:
  • The daily driving limit for time spent behind the wheel should be no more than
    6·1 answer
  • Prove that: 1 + 1 = 2<br>​
    8·1 answer
  • If you were peforming introductions among the following people whom would you mention first
    11·1 answer
  • Would you recommend dancing as an activity done at home
    9·1 answer
  • If software can be affected by viruses, what do you think hardware can be affected by
    7·1 answer
  • Shawn and Dorian rented bikes from two different rental shops. The prices in dollars, y, of renting bikes from the two different
    14·1 answer
  • A 17 year old basketball player has collapsed on the court.
    8·1 answer
  • Type something here thank youu
    12·2 answers
  • A watch company is developing packaging for its new watch. the designer uses octagons with a base area of 30 in2 and rectangles
    15·1 answer
  • A student on the track team runs 45 minutes each day as a part of her training. she begins her workout by running at a constant
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!