Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a python codes these 3 questions: 1 . Question: A new number will be obtained by changing the places of the digits of a
Write a python codes these questions:
Question: A new number will be obtained by changing the places of the digits of a digit number entered and, if necessary, by not reusing some digits. The new number will be divisible by The aim is to obtain the largest number divisible by using the available numbers.
Example: input: output:
Example: input: output:
Example: input: output:
Question: Same as the st question, only create the number divisible by instead of divisible by
Question: A popsicle manufacturer wants to print serial numbers on ice cream sticks. A typewriter was placed on the sticks to write serial numbers. This typewriter has imprinter tips, each with a number written on the tip It prints the given number by stamping it according to the commands it reads from the file. Each number is arranged sequentially from to cm apart. There is a mechanism that moves the popsicle stick under the typewriter. Again, he can move it according to the information he reads from the file. Numbers will be written on the stick at mm intervals. A USB flash memory can be connected to the typewriter. By loading a text file, we will tell the typewriter how far to move the stick and which letter to hit. Can you give the command we will write to the text file as output?
Additional information for question is as follows:
The distance between each typewriter digit is cm
The mechanism that moves the rod can move it in mm steps.
Each number written on the stick covers a mm space. If of the same number are to be written, it is necessary to move the stick mm to the side after writing each number.
The bar text start area is exactly below the number when the process first starts. In other words, if the bar is pressed to without moving, it is right below it To print the number as the first digit, it is necessary to move it mm and bring it under the number
Numbers are in order from to
When the process starts, the first digit hit forms the s digit of the number to be printed on the stick.
The file format should be as follows: RM; RM; RM; RM;How many digits will be printed will be written in the RM; block. The R in this block indicates which digit will be printed. M indicates how many mm the rod will be advanced before the digit is pressed. R and M are separated from each other by after each M ; is added. The number can be up to digits.
The number to be printed on the stick will be entered as input, RM as output; RM; RM; RM; The output will be given in There is no need to print it to a text file, just output it to the screen.
The millimetric progress numbers represented by the letter M do not accumulate by adding them, each one shows independent progress. So if the number is to be printed by advancing mm the first time, and the number is to be printed by advancing mm the second time, ;;; The command is sent as follows.
To perform simultaneous transactions at the same position, the movement distance of the next transaction must be
Example: Input: Output: ;;;;;
Example: Input: Output: ;;;;;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started