Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

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

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

Step: 3

blur-text-image

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions