Question: convert the code to scheme Example of 'Sum and Average of array elements' 1. program project; 2. var 3. marks:array[0..4] of integer; 4. i,sum:integer; 5.

convert the code to scheme
 convert the code to scheme Example of 'Sum and Average of

Example of 'Sum and Average of array elements' 1. program project; 2. var 3. marks:array[0..4] of integer; 4. i,sum:integer; 5. average:real; 6. begin 7. writeln('Enter array elements:'); 8. for i=0 to 4 do 9. readin(marks[i]); 10. for i:=0 to 4 do 11. sum:=sum+marks[i]; 12. average:=sum/5; 13. writeln('sum is: ', sum); 14. writeln('average is: ', average); 15. end. Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!