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
What is the difference between an introduced and an invasive species.
stepladder [879]
An introduced species is a non native species that has one way or another been integrated into the native environment by human or other means.

An invasive species on the other hand is an introduced organism that has become detrimental to the local environment.
7 0
2 years ago
FREE POINTS<br><br><br> YOUR WELCOME LOL
finlep [7]

Ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

thanks

7 0
3 years ago
Read 2 more answers
Which statement describes the use of a flow chart
luda_lava [24]

Answer: A diagram that represents a process

Explanation:

3 0
3 years ago
What piece of evidence does President Reagan use to logically conclude that the astronauts were aware of the dangers? previous a
Cloud [144]

The piece of evidence which President Reagan use to logically conclude that the astronauts were aware of the dangers was the previous accident on the ground

  • Former President Ronald Reagan gave a powerful speech concerning the Space Shuttle Challenger disaster which claimed the life of all crew members including a teacher.

  • The shuttle’s launch was said to have been delayed at least two times before the lunch date and due to pressure from the White House, it launch on January 28, 1986.

  • Due to this previous issues that happened on the ground not space, the shuttle malfunction and burst to flames and if this issues were handled before takeoff, this incident would not have happened.

The piece of evidence which President Reagan use to logically conclude that the astronauts were aware of the dangers was the previous accident on the ground

Learn more from

brainly.com/question/20609648

8 0
3 years ago
I love my kitty cat
anygoal [31]
Lol who WOULDNT love there kitty cat
8 0
3 years ago
Read 2 more answers
Other questions:
  • 24 hours awake has the same effect as .1 blood alcohol level.
    14·1 answer
  • Select all that apply.
    15·1 answer
  • Bode's Law of planetary distances is very accurate until:
    15·1 answer
  • If f(x)=2x+1 and g(x)=x^2+7, which of the following is equal to f(g(x))
    13·2 answers
  • What are the possible drawbacks of democracy
    14·1 answer
  • Please help
    11·2 answers
  • What 6 letter word can u make out of snowflake <br> this is for my 8 yr old nephew
    5·2 answers
  • What is it called when people your age influence how you act or what you do?A.Self-involvementB.RailroadingC.A healthy friendshi
    9·1 answer
  • Who is following the law when it comes to protecting investors’ funds? a financial planner who pitches a risk-free stock a mutua
    7·1 answer
  • Which of the following is not a component of the vulva
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!