Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Question: A new number will be obtained by changing the places of the digits of a 1 0 - digit number entered and,

1.Question: A new number will be obtained by changing the places of the digits of a 10-digit number entered and, if necessary, by not reusing some digits. The new number will be divisible by 3. The aim is to obtain the largest number divisible by 3 using the 10 available numbers.
Example1: input: 4312340009 output: 944331000
Example2: input: 7592349894 output: 9998754432
Example3: input: 3333333311 output: 33333333
2.Question: Same as the 1st question, only create the number divisible by 15 instead of divisible by 3.
3.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 10 imprinter tips, each with a number written on the tip (0,1,2,3,4,5,6,7,8,9). It prints the given number by stamping it according to the commands it reads from the file. Each number is arranged sequentially from 0 to 9,1 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 5mm 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 3 is as follows:
1.The distance between each typewriter digit is 1cm
2.The mechanism that moves the rod can move it in 1mm steps.
3.Each number written on the stick covers a 5mm space. If 3 of the same number are to be written, it is necessary to move the stick 5 mm to the side after writing each number.
4.The bar text start area is exactly below the number 0 when the process first starts. In other words, if the bar is pressed to 0 without moving, it is right below it. To print the number 1 as the first digit, it is necessary to move it 10mm and bring it under the number 1.
5.Numbers are in order from 0 to 9.
6. When the process starts, the first digit hit forms the 1's digit of the number to be printed on the stick.
7.The file format should be as follows: R,M; R,M; R,M; R,M;!!!(How many digits will be printed will be written in the R,M; 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 15 digits.
8.The number to be printed on the stick will be entered as input, R,M as output; R,M; R,M; R,M;!!! The output will be given in . There is no need to print it to a text file, just output it to the screen.
9.The millimetric progress numbers represented by the letter M do not accumulate by adding them, each one shows independent progress. So, if the number "3" is to be printed by advancing 20mm the first time, and the number "1" is to be printed by advancing 20mm the second time, 3,20;1;20;!!! The command is sent as follows.
10.To perform simultaneous transactions at the same position, the movement distance of the next transaction must be 0.
11.Example1: Input: 32452 Output: 2.20;2.15;3.15;4.0;5.5;!!!
12.Example2: Input: 70910 Output: 0.0;0.15;1.0;7.75;9.10;!!!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

1. In what ways has flexible working revolutionised employment?

Answered: 1 week ago