You are on page 1of 1

CS 161 - Introduction to Computer Programming Fall2012

Assignment No. 4 2D Array & Sorting Submission Time: 12:00 pm Marks: 5 Instructions: Copied Assignments will be marked ZERO regardless of the fact who copied whom! Total Marks 5 Late assignments will not be considered Hardcopy Submission (with screenshots of output) Date: 20th Dec, 12

Question 1: Write a program that takes names of 5 students in 2D Character Array and their GPAs in 1D array. Arrange the names in alphabetical order and display on screen along with GPA.

E.g. if user Desired enters Output Ali 3.56 Haris 2.75 Zoya 3.86 Hashim 3.00 Adeel 2.99 Adeel 2.99 Ali 3.56 Haris 2.75 Hashim 3.00 Zoya 3.86

Good Luck

You might also like