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
1/3x-1/6y=4 6x-ay=8 in the system of equatuons above, a is a constant. if the system has no solution, what is the value of a?
Elden [556K]

Answer:

3

Explanation:

(1/3x-1/6y)×18=4×18 ⇒ 6x-3y=72

6x-ay=8  if a=3 ⇒ 6x-3y=8

72≠8

a=3 ⇒ system has no solution

8 0
2 years ago
Which are common elements of fantasy? Select 3 options. true-to-life settings imagined worlds everyday events mythical creatures
SpyIntel [72]

Answer:

imagined worlds

the supernatural

mythical creatures

Explanation:

4 0
3 years ago
Which of the following patterns does not affect Law of Demand?
Angelina_Jolie [31]
I believe the answer is D) none of these patterns effect
5 0
4 years ago
All of the following career pathways are related to Information Technology except:
navik [9.2K]

D logistics and Inventory Control

6 0
3 years ago
Although needs may vary, the suggested number of sleep hours for teens is
otez555 [7]

The suggested number of sleep hours for teens is between 8 to 10 hours daily.

<h3>Sleeping hours of teens</h3>

This is the estimated time in which teens are expected to sleep or have full rest.

The average estimated time of sleep hours for teens is between 8 to 10 hours. This may vary according to health condition of individuals.

Thus, the suggested number of sleep hours for teens is between 8 to 10 hours daily.

Learn more about sleeping time here: brainly.com/question/20555693

#SPJ1

8 0
2 years ago
Other questions:
  • Which type of character does Peepi-geewi-zains represent in the passage?
    9·2 answers
  • You are facing North. Turn 90 degrees left. Turn 180 degrees right. Reverse direction. Turn 45 degrees left. Reverse direction.
    11·2 answers
  • Which of the following was a lasting effect on Europe as a result of the Crusades?
    13·2 answers
  • List things that you need for programming?
    15·1 answer
  • Name five influences that guide the decisions that you make.
    15·1 answer
  • A solute added to a solvent raises the boiling point of the solution because
    15·1 answer
  • quick 35 point and i will branlist u and add u as a friend just answer please and if you don't know the answer please do not ans
    15·2 answers
  • Which statement best expresses the reason why the southern states decided to secede from the union after the election of 1860?.
    12·1 answer
  • Which statement explains the dramatic irony in this passage? nora spent money on another dress, but rank does not know. Nora is
    11·1 answer
  • Which of these are good ways to find a buyer’s agent? select all that apply
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!