Assignment No. 2
CS201P Assignment 2 Solution 2021
|Total Marks: 20
Due Date:31st December, 2021
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
Software allowed to develop Assignment
– Dev C++
In this assignment, the students will learn:
To fill a two-dimensional array using given data.
How to write user defined functions and pass an array to them as parameter.
How to use if statement and for loop.
Display array elements.
Assignment Submission Instructions
You are required to submit only.cppfile on the assignments interface of CS201P at VU-LMS. Assignment submitted in any other format will not be accepted and will be graded zero marks. So, check your solution file format before submission.
For any query related to assignment, please contact firstname.lastname@example.org
Labs: 4 to 6
Units of electricity consumption are given in the form of matrix in source data. You are required to write user defined functions and create a repeating menu in C++ keeping in mind the following requirements:
(Hint: In slab 1, unit range is 0 to 100, each unit costs Rs.10, and the data of slab 1 is in the first row of the matrix. While in slab 2, unit range is 101-200, each unit costs Rs.15, and the data of slab 2 is in the second row of the matrix)
(Hint: In slab 3, unit range is 201 to 300, each unit costs Rs.20, and the data of slab 3 is in the third row of the matrix.)
(Use two-dimensional array to store the following matrix)
Instructions to write C++ program:
Wish you Good Luck!
|Lectures Covered: This assignment covers Labs#4-6.
Deadline: The deadline to submit your assignment solution is31st December, 2021. Your assignment must be submitted within the due date through VU-LMS. No assignment will be accepted through email after the due date.