assign 3

Upload: arxlan-xahir

Post on 15-Jan-2016

212 views

Category:

Documents


0 download

DESCRIPTION

C++

TRANSCRIPT

Introduction to Computer ScienceSection-AAssignment-3 Submission: Monday 27th April, 2015 till 1:30pmSubmission path: \\xeon\Spring 2015\Sidra Basharat\ITC\submissions\assign-3

Exercise 1:

Make a snake and ladders game in which you will use parallel arrays. Write a complete C++ program with proper conditions.

Exercise 2:

Merge two sorted arrays such that there resultant array is also sorted. Write a complete C++ code for your program.

NOTE: You are not allowed to use extra arrays and no bubble sorting on resultant array.

Exercise 3:

Sort two parallel arrays containing student id's and student marks. Write a complete C++ code for your program.

HINT:

1- Sort on id's.2- Sort on marks.

For more detail here is the attached picture: