У нас вы можете посмотреть бесплатно Programming with MARIE Simulator - Division - Take two Numbers and output Quotation and Reminder или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This MARIE program is designed to divide two numbers entered by the user and output the quotient and remainder. Here is a step-by-step breakdown of how the program works: 1. The program prompts the user to enter the dividend and stores it in memory location X. 2. The program prompts the user to enter the divisor and stores it in memory location Y. 3. The accumulator is loaded with the value 0, and the quotient is initialized to 0 by storing the accumulator value in memory location Q. 4. The program enters a loop that continues until the accumulator becomes negative after subtracting the divisor from the dividend. 5. Inside the loop, the accumulator is loaded with the value of the dividend stored in memory location X, and the divisor stored in memory location Y is subtracted from it. If the result is negative, the program jumps to the end of the loop, otherwise, it jumps to a subroutine called Add1. 6. The Add1 subroutine increments the value stored in memory location Q by 1, loads the dividend from memory location X into the accumulator and jumps back to the beginning of the loop to continue dividing. 7. When the loop completes, the program jumps to a subroutine called Display, which loads the quotient stored in memory location Q into the accumulator and outputs it to the user. 8. The program then stores the dividend in memory location R, loads the dividend into the accumulator, and outputs it to the user as the remainder. 9. Finally, the program halts. The memory locations X, Y, Q, R, Zero, and One are used to store the variables, constant values, and intermediate results required by the program.