Question: Assignment Tasks Task 1) Write and execute a C program using onlinegdb.com which is an online compiler with descriptive comments explaining each line of code,
Assignment Tasks Task 1) Write and execute a C program using onlinegdb.com which is an online 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) (7.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. [2.5 marks for explaining the code] (5 marks) e) Display the output as a screenshot with numbers in your Student ID as input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
