



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is solution to assignment for Aeronautical Engineering and Computer Programming course. It was submitted to Prof. Chitraksh Gavde at Biju Patnaik University of Technology, Rourkela. It includes: Program, Ada, Eular, For, Else, If, End, Algorithm, Ada95, Implement, Integration
Typology: Exercises
1 / 5
This page cannot be seen from the preview
Don't miss anything!




C11 Solutions
Count := 1; FOR I in 1 .. 10 LOOP If I MOD 2 = 0 THEN FOR J in 1 .. 10 LOOP Count:= Count + 2; END LOOP; ELSE FOR J in 1 .. 5 LOOP Count := Count – 1; END LOOP; END IF; END LOOP;
Count = 76.
Count increments by 20 when I is even and decrements by 5 when I is odd.
C 11 part b ALGORTIHM
Eluer’s 2nd^ order integration – use trapeziodal rule. Area of a trapezoid under curve = .5(y1+y2)delta_x
Algortihm: Ask user for inputs:
Loop from 0 to the number of steps using a for loop, performing euler’s second order approximation