0% found this document useful (0 votes)
12 views1 page

Assignment 5

This document is an assignment for the CS101-E Introduction to Computing course at Ghulam Ishaq Khan Institute, due on December 15, 2015. It requires students to write two C++ programs: one for matrix addition and multiplication using 2-D arrays, and another to display an array of 10 numbers in reverse order without loops. The assignment emphasizes individual work and warns against cheating, with a total of 30 marks available.

Uploaded by

muhammad hasnain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Assignment 5

This document is an assignment for the CS101-E Introduction to Computing course at Ghulam Ishaq Khan Institute, due on December 15, 2015. It requires students to write two C++ programs: one for matrix addition and multiplication using 2-D arrays, and another to display an array of 10 numbers in reverse order without loops. The assignment emphasizes individual work and warns against cheating, with a total of 30 marks available.

Uploaded by

muhammad hasnain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Faculty of Computer Science and Engineering Ghulam Ishaq Khan Institute of

Engineering Sciences and Technology

CS101-E Introduction to Computing (Fall 2015)

Assignment # 5

Due Date: Tuesday, December 15, 2015 by 20:00 hrs, Online Total Marks = 30

NOTE:

 This is an individual assignment. Cheating/copying will result in negative marks for both
parties.
 You are required to submit .cpp files.

SUBMISSION:

Submission folder will be available at 192.168.1.121 and will automatically disable submissions
at the deadline. No submission will be possible after submission deadline. It is suggested you
submit well before time, even if the assignment is only partly done.

QUESTION 1 [25 Marks]: Write a C++ program that takes as input two 4x4 matrixes and
performs the following operations.

Addition

Multiplication

The program should display the formatted output (with proper spaces and indentation) in the form
of 4x4 matrixes.

NOTE: This problem MUST be done using a 2-D array. Functions for Addition and
Multiplication MUST take array arguments.

QUESTION 2 [5 Marks]: Write a C++ program to save 10 numbers in an array entered by the
user and display the array contents in reverse order without using any loop.

You might also like