You are on page 1of 1

Take Home Assignment - 01

Provide C++ implementations for the following:

1. Print numbers from 1 to 10.

2. Find the sum of 1+2+3+ ……+up to 10.

3. Write a program to separate even and odd numbers of an array of integers.


Put all even numbers first, and then odd numbers.

4. Write a program to find the largest element of a given an array of integers.

5. Write a program to find a given element and it is index of a given String.


Hint: Array of Characters.

6. Write a program to reverse an elements of an array.

7. The result of an examination is issued after calculating the average of the


marks of 3 subjects as Mathematics, Science and IT. The grades of the
examination are categorized into 4 groups as follows,
Average >= 70 – very good
70 Average >= 55 – good
55 Average >= 40 – pass
Average < 40 – fail

Program should ask to input marks for each subject and output the message
to the user stating the grade.

You might also like