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]
3 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]3 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
Anger anxiety and irritability are signs of brainly.
Verdich [7]

Anger and irritability are typical symptoms of anxiety disorders and one of the most frequent manifestations of them.

Anxiety is seen as the individual response to a danger that threatens from within in the form of a forbidden instinctual impulse that is about to escape the individual's control.

  • People with anxiety problems are more susceptible to anger and easily upset.

  • Anxiety disorders are associated with symptoms such as restlessness or impatience, sleep disturbances, irritability.

Therefore, we can conclude that the prominent signs of anxiety disorders include difficulty sleeping, irritability, poor concentration, motor restlessness, anger.

Learn more about anxiety disorders here: brainly.com/question/13460357

3 0
3 years ago
What did the second great awakening do? check all of the boxes that apply.
valina [46]

Answer:

encouraged people to live better lives    

led  people to try to improve society    

led to a more extreme abolition movement    Explanation: hoped this help

6 0
3 years ago
Latoya's mom makes her a birthday cake in the shape of an "l". latoya loves frosting, so her mom covers the entire outside of th
Butoxors [25]
Latoya's mom covers the entire outside of the cake with frosting.
3 0
2 years ago
Course of study of economic of class 11 and 12.​
sergeinik [125]

Answer:

GOOGLE NOW

Explanation:

8 0
3 years ago
In what type of plate boundary did volcanoes form?u
Artist 52 [7]

Answer:

convergant plate boundary

5 0
3 years ago
Read 2 more answers
Other questions:
  • Suppose you own the patent for a new type of bicycle lights, hence giving you a monopoly over the industry. If you lower the pri
    6·1 answer
  • Which are characteristics of polyps?
    6·2 answers
  • _____ are generally used to treat allergic reactions
    7·2 answers
  • ............members are elected from FPTP (first past the post) or direct voting system.​
    5·1 answer
  • The following data represents a random sample of 35 online purchases (in $) on
    15·1 answer
  • Crystals are made using supersaturated solutions of solids in water
    5·1 answer
  • To compare the teaching methodologies of two of its eighth-grade math teachers, a school decides to compare student test scores
    8·1 answer
  • In the first analysis, all of the f1 flies from the students’ crosses have the identical phenotype with respect to body color an
    11·1 answer
  • Which sentence from the passage would support the claim that the themes of langston hughes' poetry matched the themes of jazz mu
    6·1 answer
  • Read the excerpt below and answer the question. We did not know, as yet, which was the better side, right or left, which road le
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!