How to resolve the algorithm Old Russian measure of length step by step in the МК-61/52 programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Old Russian measure of length step by step in the МК-61/52 programming language

Table of Contents

Problem Statement

Write a program to perform a conversion of the old Russian measures of length to the metric system   (and vice versa).

It is an example of a linear transformation of several variables.

The program should accept a single value in a selected unit of measurement, and convert and return it to the other units: vershoks, arshins, sazhens, versts, meters, centimeters and kilometers.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Old Russian measure of length step by step in the МК-61/52 programming language

Source code in the мк-61/52 programming language

П7	1	0	0	*	П8	1	ВП	5	/
П9	ИП7	1	0	6	7	/	П0	5	0
0	*	ПC	3	*	ПA	1	6	*	ПB
С/П	ПB	1	6	/	ПA	3	/	ПC	5
0	0	/	П0	1	0	6	7	/	БП
00


  

You may also check:How to resolve the algorithm Sierpinski triangle/Graphical step by step in the Sidef programming language
You may also check:How to resolve the algorithm Twin primes step by step in the Python programming language
You may also check:How to resolve the algorithm Factorial step by step in the ALGOL-M programming language
You may also check:How to resolve the algorithm The Twelve Days of Christmas step by step in the Crystal programming language
You may also check:How to resolve the algorithm Sorting algorithms/Cocktail sort with shifting bounds step by step in the REXX programming language