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
tresset_1 [31]
3 years ago
5

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
Mathematics
1 answer:
34kurt3 years ago
4 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/15683939

You might be interested in
How much more will 34,000 earn in interest than 18,000 if both are invested in savings accounts with APYs of 5.6% for a year?
8_murik_8 [283]

Answer:

<em>Amount of $34000 will earn </em><em>$896</em><em> more interest as compared to the amount of $18000.</em>

Step-by-step explanation:

We know that,

i=\dfrac{Prt}{100}

where,

i = interest,

P = principle,

r = rate of interest,

t = time period.

For principle amount of $34,000,

i_1=\dfrac{34000\times 5.6\times 1}{100}=\$1904

For principle amount of $18,000,

i_2=\dfrac{18000\times 5.6\times 1}{100}=\$1008

So the difference between the interest is,

i_1-i_2=1904-1008=\$896

Therefore, amount of $34000 will earn $896 more interest as compared to the amount of $18000.

5 0
4 years ago
(05.02 MC)
Elanso [62]

His work should have looked like this.

2x + y = 5
x − 2y = 10

y = 5 − 2x
x − 2(5 − 2x) = 10
x − 10 + 4x = 10
5x − 10 = 10                  When he added in both sides, he subtracted 10 from 10,
5x = 20                      instead of adding 10 from 10 to make 20.
x = 4
2(4) + y = 5
8 + y = 5

y = -3

4 0
3 years ago
Convert to an improper fraction. Type in your answer with the negative in the numerator. -11 1/3
vovangra [49]
The answer to the question is :

-11*3+1/3
=-33+1/3
= -32/3

Therefore, answer = -32/3
                                 


6 0
3 years ago
Read 2 more answers
Find the circumference of the circle. Use 3.14 for pi.
melisa1 [442]

Answer:

C=78.54

Step-by-step explanation:

The formula for circumference is

C=2\pir

We are given 25 ft as the diameter

Divide 25/2 to get the radius

12.5

Plug it in to your formula

C=2\pi(12.5)

Simplify

C=78.54

8 0
3 years ago
Book is in the shape of a right rectangular prism. It measures 8 1/2 inches tall, 7 inches wide, and 2 1/2 inches thick.
Alex_Xolod [135]
The right answer is c .
7 0
3 years ago
Other questions:
  • you have 4/9 of cooking oil and you pour 3/5 of oil into a smaller. how much of the entire larger bottle did you pour into the s
    6·1 answer
  • grapes cost 2.09 per pound. john bought 3.25 pounds. how much will john pay for the grapes? show work​
    12·1 answer
  • A dinner you ordered a meal that costs $25 you leave a 20% tip the sales tax is 6% what is the total cost of the meal
    14·1 answer
  • College Precalc. I desperately need help. Will award brainliest.
    12·1 answer
  • A 85cm snowman melts and loses 3cm in height for every hour the sun shine and the sun shine only 6.5 hours a day. How many days
    9·1 answer
  • Ims struggling with this question help???
    9·1 answer
  • Which number is halfway between 318970 and 719070​
    9·1 answer
  • Someone answer the blank please :/
    13·2 answers
  • Please answer correctly !!!!! Will mark Brianliest !!!!!!!!!!!!!!
    5·1 answer
  • After the arrow on the graph, the level of atmospheric carbon dioxide holds steady at 380 parts per million (ppm).
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!