subject

"i was driving on the highway the other day recently and i happened to notice my odometer. like most odometers nowadays, it shows six digits, in whole miles only -- no tenths of a mile. so, if my car had 300,000 miles, for example, i'd see 3-0-0-0-0-0. and that's all. until i drove another mile, at which point it would read 3-0-0-0-0-1. ""now, what i saw that day was very interesting. i noticed that the last 4 digits were palindromic, that is they read the same forwards as backwards. for example, "5-4-4-5" is a palindrome. so, my odometer could have read 3-1-5-4-4-5, with those last four digits, starting with the units, then the tens, then the hundreds, and finally the thousands, being the palindrome. ""one mile later, the last 5 numbers were palindromic. for example, it could have read 3-6-5-4-5-6. ""one mile after that, the middle 4 out of 6 numbers were palindromic. so, the first and last numbers weren't involved in the palindrome, but the middle 4 were palindromic. ""and you ready for this? one mile later, all 6 were palindromic! for example, 2-1-3-3-1-2. ""i noticed that the last 4 digits were palindromic. i drove a mile, and the last 5 were palindromic. i drove another mile and the middle 4 were palindromic, and the ends were not involved. and then one mile later, all 6 digits were palindromic."the question is, what did the driver see on the odometer when they first looked? okay, so what do you have to do? your goal for this is to write a program in python that solves this puzzle. to do this you will use a loop that tries every number between 1 and until it finds one that meets all of the conditions. so really you just need to specify the conditions in the question as boolean expression, put them into a bunch of if statements, and then put all of that into a while loop.2.first see if you can design an algorithm that takes as input a 9 digit number where no digit appears twice and produces as output an arrangement of the same 9 digits corresponding to the next highest number. if no such number exists, the algorithm should indicate this. so for example if the input is 781623954 the output would be 781624359. you can use bulleted english to describe your algorithm

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Data is processed, stored, and transmitted as a series of 1s and 0s. each 1 or 0 is called a(n) . a series of eight 0s and 1s, called a(n) , represents one character—a letter, number, or punctuation mark. data becomes when it is presented in a format that people can understand and use. digital signals are represented by two different , such as +5 volts and +.2 volts. digital data can also take the form of light and dark spots etched onto the surface of a cd or the positive and negative orientation of particles on the surface of a hard disk. data consists of numbers that might be used in arithmetic operations. it can be represented digitally using the number system. data is composed of letters, symbols, and numerals that are not used in arithmetic operations. computers represent this type of data using , ebcdic, unicode, or utf-8. data is quantified using terms such as or kibibyte (1024 bytes), and prefixes such as or mebi (1,048,576), and giga or (1,073,741,824). to reduce file size and transmission times, digital data can be compressed. compression provides the means to compress data and reconstitute it into its original state. compression throws away some of the original data during the compression process. compressed files usually have at the end of the file name and are represented with special icons. these files have to be or unzipped before you can view the data they contain.
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
Your business be in google top rank.more the rank more the business leads.for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services,online seo expert services,
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
You know the right answer?
"i was driving on the highway the other day recently and i happened to notice my odometer. like most...
Questions
Questions on the website: 13722363