Question: C program Task 1) Write and execute a C program using onlinegdb.com which is an online C compiler with descriptive comments explaining each line of

C program

C program Task 1) Write and execute a C program using onlinegdb.com

Task 1) Write and execute a C program using onlinegdb.com which is an online C compiler with descriptive comments explaining each line of code, paste the code as text and output obtained as result of execution in the report: a) Input all numbers from your Student ID, insert them into an array. (See below sample output for an example) 17.5 marks for explaining the code] (15 marks) b) Calculate the sum of all even numbers (except 2) and all odd numbers (except 3) in the array. [5 marks for explaining the code] (10 marks) MEC_AMO TEM_035_02 Page 1 of 14 Fundamentals of Programming (COMP 10001.1) - Fall-21 - CW2 (Assignment) - ALL - QP c) Print the larger sum. [2.5 marks for explaining the code] (5 marks) d) Save all the even numbers in another array called 'evenos' and display the content of that array 12.5 marks for explaining the code] (5 marks) e) Display the output as a screenshot with numbers in your Student ID as input. (5 marks) Example: If the array contains the following elements: 2,5,1,3,8,0,4 The sum of all even elements (except 2) is 8+4=12 The sum of all odd numbers (except 3) is 5+1 = 6 Sum of even number is larger than sum of odd numbers. Sample Output: Enter the seven numbers from your Student ID: 2 4 Sum of even numbers in the array are: 12 The array having even numbers are: 2 B

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!