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 age limit for a qualifying dependent 2020
agasfer [191]

Answer:

24 years is the age limit

Explanation:

4 0
3 years ago
In what decade was photography invented?
Helga [31]
It was commercially introduced in 1839, a date generally accepted as the birth year of practical photography. The metal-based daguerreotype process soon had some competition from the paper-based calotype negative and salt print processes invented by William Henry Fox Talbot
4 0
3 years ago
A student is working full-time (at least 40 hours a week) and is also starting
Fudgin [204]

Answer:

Not more than 7 credit hours

Explanation:

Though the credit hours varies by institution, the standard for most institution is 3 - 6 hours for working class students.

From the list of given options, the closest to 3-6 hours is "not more than 7 hours"; hence, option D answers the question.

4 0
4 years ago
Ayurvedic medicine was developed in China.
Rina8888 [55]

Ayurveda, traditional Indian medicine (TIM):

Traditional Chinese medicine (TCM) remains the most ancient yet living tradition. There has been increased global interest in traditional medicine.

7 0
3 years ago
Read 2 more answers
The cost of 9 small boxes of mixed organic vegetables in $180
GalinKa [24]

Answer:

20

Explanation:

each box costs 20 dollars

5 0
3 years ago
Other questions:
  • What is one way to discribe elements
    9·2 answers
  • There are three ways to give an object a static charge. They are friction, conduction and induction. Two pieces of cellophane ta
    11·2 answers
  • How does the author develop Miss Havisham's
    12·1 answer
  • The first step in the repetition strategy is to revisit the information
    9·2 answers
  • How old is donal trump?​
    8·2 answers
  • The hat you want to buy at the store just went on sale. The original price was $12, and the sale price is $5. What percent is th
    15·1 answer
  • Determine the value of y.
    9·1 answer
  • Please help me out with these two question, it would really help, it's my science benchmark! thank you!
    14·1 answer
  • Which of the following does not represent an attribute of the function f(x) = |x|?.
    10·1 answer
  • (1) Name 1 similarity between neurotransmitters and hormones and (2) name 1 difference between neurotransmitters and hormones.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!