HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>You proved that you can create programs with complex logic. And the Muffin entrusts you with a big and serious project: development of drivers for the new printer of MuffinRoks ® brand. A driver is a special program that allows a computer to control technology (mouse, keyboard, printers, scanners, monitors and other devices).</p>
1 <p>You proved that you can create programs with complex logic. And the Muffin entrusts you with a big and serious project: development of drivers for the new printer of MuffinRoks ® brand. A driver is a special program that allows a computer to control technology (mouse, keyboard, printers, scanners, monitors and other devices).</p>
2 <p>The new printer is simple enough, it should be able to print all the pages in direct and reverse order, print even and odd pages and make copies of one page. And your driver program should make this happen.</p>
2 <p>The new printer is simple enough, it should be able to print all the pages in direct and reverse order, print even and odd pages and make copies of one page. And your driver program should make this happen.</p>
3 <p>However, the test printer has not yet been sent to us (the development is taking a long time, after all, the Muffin’s engineers sleep 20 hours a day). Therefore, the logic of the drivers will be worked out with the help of a special command muffin.print, which takes into account an input page number. Here is an example:</p>
3 <p>However, the test printer has not yet been sent to us (the development is taking a long time, after all, the Muffin’s engineers sleep 20 hours a day). Therefore, the logic of the drivers will be worked out with the help of a special command muffin.print, which takes into account an input page number. Here is an example:</p>
4 // Logs in the console the “Print page #1” line muffin.print(1);<p>Now this command just logs the text in the console. But as soon as the test sample is sent, it can easily be reconfigured to work with a printer.</p>
4 // Logs in the console the “Print page #1” line muffin.print(1);<p>Now this command just logs the text in the console. But as soon as the test sample is sent, it can easily be reconfigured to work with a printer.</p>
5 <p>Let’s start with a simple task: you need to get the printer to print the specified page several times.</p>
5 <p>Let’s start with a simple task: you need to get the printer to print the specified page several times.</p>