Question: 1. General task statement and task for a particular variant. 2. The text of both programs. 3. Calculations of the number of operations for each
1. General task statement and task for a particular variant. 2. The text of both programs. 3. Calculations of the number of operations for each of the algorithms according to the methodology described in the lesson. 4. Program testing. In order to create a benchmark for testing, one need to prove the correctness of the programs in the calculation of the given formula for n = 3 with the substitution of the actual numbers and perform the calculation of this formula on the usual calculator. 5. As a result of testing, print the results of both programs for n = 1, n = 2 and n = 3. 6. Calculation results with both programs and with the calculator must match. 7. The results of calculations by both programs for a given set of values n. 8. Tables and charts of the calculated complexity in both programs for a set of n from 2 to 10 with the step 2.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
