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
Sincerely kentrell album listen to dat omg its so good
Zarrin [17]

Answer:

ight bet bro

Explanation:

im still gonna need to be reminded

5 0
2 years ago
which event appears to foreshadow future conflict? which prediction is best supported by the foreshadowing in the passage?
alekssr [168]

Answer: the milk has disappeared & a conflict over resources will begin

Explanation:

I took the test

8 0
2 years ago
Please help! I need an explanation :(
sp2606 [1]

Answer:

Do you need a full explanation?

Explanation:

8 0
3 years ago
When an element tends to lose its valence electrons in chemical reactions, it behaves more like a
natita [175]

Answer:

See explanation

Explanation:

When an element tends to lose its valence electrons in chemical reactions, it behaves more like a metal.

When an element tends to gain valence electrons in chemical reactions, it behaves more like a nonmetal.

Metalloids have properties intermediate between those of pure metals and pure nonmetals. Usually, metalloids appear in groups where they are sandwiched between nonmetals and metals such as in groups 13, 14 and 15.

4 0
3 years ago
What is main difference between the SAT-I and SAT-II?
Mrrafil [7]

Originally, the SAT I was meant to test aptitude and the SAT II was meant to test achievement. That is to say, one tested what you were capable of and the other tested what you knew. But when the College Board moved away from the idea that the SAT I tests innate ability, they framed it as a reasoning test, making the difference between the two less defined.

With the latest changes, the SAT I (now just the SAT) is more focused than ever testing knowledge rather than logic. At this point, I would say that the SAT tests general knowledge and and the Subject Tests assess topical knowledge.

5 0
3 years ago
Other questions:
  • How are high pressure areas created around the poles with cool air?
    7·2 answers
  • _____ are generally used to treat allergic reactions
    7·2 answers
  • Byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
    11·2 answers
  • I need help with this question thx<br> No links
    7·1 answer
  • Most people are very willing to help out others with job leads and advice, because at one point, someone helped them with job le
    7·2 answers
  • According to the table, what is the total distance the hiker walked? 4 km 6 km 10 km 20 km.
    13·1 answer
  • A thrifty shopper wants to purchase a new phone that is made with quality parts. What factors should they consider?.
    6·1 answer
  • According to Sumner, what separates the wealthy people in society from the poor people? how they have handled their opportunitie
    11·1 answer
  • On the map 5th ave. 6th ave. and 7th ave. are parallel
    15·1 answer
  • Charging higher prices to residential customers than to industrial customers is an example of
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!