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 06:20
In what kind of attack can attackers make use of millions of computers under their control in an attack against a single server or network availability confidentiality integrity identity automated attack software? those who wrongfully disclose individually identifiable health information can be fined up to what amount per calendar year? single most expensive malicious attack hipaa what are script kiddies? advanced persistent threat security manager security engineer what level of security access should a computer user have to do their job what process describes using technology as a basis for controlling the access and usage of sensitive data? cybercriminal
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner
Answers: 3
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
question
Mathematics, 15.04.2021 20:00
question
Mathematics, 15.04.2021 20:00
question
Chemistry, 15.04.2021 20:00
question
SAT, 15.04.2021 20:00
question
Chemistry, 15.04.2021 20:00
question
Biology, 15.04.2021 20:00
question
Business, 15.04.2021 20:00