Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions