Fall-2016_CS201_2


    
     Semester:
     Fall 2016
Assignment No.  2
Semester: Fall 2016

CS201 – Introduction to Programming


Total Marks: 20

Due Date: 02 Dec 2016








Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:

o        Assignment is submitted after due date.
o        Submitted assignment does not open or file is corrupt.
o        Assignment is copied (From internet/students).

Software allowed to develop Assignment
-          Dev C++

Objectives:
To enable students to write, compile and execute a program in DevC++. Moreover to familiarize students with  the concepts of:

  • Array manipulation
  • Array passing to functions
  • Sorting Of Array (Bubble sort)


Assignment Submission Instructions
You have to submit only.cpp file on the Assignments interface of CS201 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.
Question :
Ø  Write a program that takes input of 10 integers into an array.
Ø  Give two options to the user:
1= copy odd numbers from the array to a new array (odd[] array) and sort “odd[]”  array in ascending order
and
2= copy even numbers from the array to a new array (even[] array) and sort “even[]” array in ascending order


Ø  Write a function that accept (odd[] or even[]) array and sort it
Ø  Use bubble sort technique to sort the given array
Ø  Display the sorted array.

    Hint:: you can use 3 arrays like arry[], odd[], even[]. 




Deadline:
The deadline to submit your assignment solution is 2nd December, 2016. Your assignment must be submitted within the due date through VULMS. No assignment will be accepted through email after the due date.


Solution Code File : Copy this code and paste in Dev c ++

Welcome to Our WebSite! - | LMS Help | Pakistan NO # 1 . Website for the Students of Virtual University.

Next
Previous
Click here for Comments

0 comments: