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
Mathematics course 3 common core 2013 edition solutions
aivan3 [116]
What do you mean? like the entire book??
4 0
2 years ago
scientists say that researching genes will help find solutions for diseases that affect humans. is this true? Give reasons for y
Nataliya [291]
When genetic molecules are broken down and deciphered under a large scale then the defects can be magnified and researched and further stopped. Hopefully with the scientific advancements at hand and with enough people to come forward to participate in the study these diseases and genetic defaults will cease.
4 0
3 years ago
What are gifts of money that can be used for college expenses?
iris [78.8K]
It might be tuitions or grants.

6 0
3 years ago
When marginal cost is rising, average cost is always rising. True or False
kotegsom [21]

I think it is true

if me gets it wrong me sorry me not

that smart ༎ຶ‿༎ຶ

3 0
4 years ago
Read 2 more answers
Does enyone want to talk?
Natali [406]

Answer:

I do

Explanation:

7 0
3 years ago
Other questions:
  • To change from one unit to another in the metric system
    8·1 answer
  • I need to slove this
    9·1 answer
  • 3. There are 500 students in Pures College, 150 students are enrolled in Statistics course and 80 students are enrolled in a Mat
    9·1 answer
  • Last week, the fourth graders walked Two and 16 miles during PE. The fifth graders walked 1 1/2 miles. How many miles further di
    13·1 answer
  • Whats your SAT score?
    7·1 answer
  • What is the remainder when (x4 36) is divided by (x2 – 8)? 36 64 100 117
    5·1 answer
  • Which of the following is a true statement about diffusion.
    8·1 answer
  • Alyse wants to buy a puppy. She knows that the puppy costs $700, and the initial vet bills and crate will cost about $300. She h
    11·1 answer
  • A global resources company uses data-intensive, cloud-based simulation software, but users in remote locations find that the res
    5·1 answer
  • Identify all of the following statements about civil cases that are accurate.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!