CS411 Assignment 2 Solution 2020

0
49
CS411 Assignment 2 Solution 2020

CS411 Assignment 2 Solution 2020

Assignment # 2(GRADED)

Total marks = 20                                                                                 Due Date = 17th June 2020

 

CS411 Assignment 2

Solution File  2020

Click Here:

Please carefully read the following instructions before attempting the assignment.

First of all, listen to video lectures. Lecture No.8 to Lecture No.15 is included in the assignment

After that consult handouts and recommended books to clarify your concepts.

You are supposed to submit your complete solution project as a single file (i. e. zip or RAR). Any other formats like scan images, PDF, BMP, Docx, etc. will not be accepted.

It should be clear that your assignment would not get any credit if:

The assignment is submitted after the due date.

The submitted assignment does not open or file is corrupt.

The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished equally.

 

CS411 Assignment 2 Solution 2020 Important Note:

The assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignments in the last hour of the deadline and try to upload Solutions at least 02 days before the deadline to avoid any inconvenience.

For any query please contact: CS411@vu.edu.pk

CS411 Assignment 2 Solution 2020 Problem Statement:

You are required to create aC# Console application using Visual Studio with the following functional requirements:

Consider that you are going to generate the electricity bill of your own home. To generate this bill you need to consider the following requirements.

 

You will take a previous meter reading as input and this previous meter reading will be any three consecutive digits of your VUID from which at least two digits should be nonzero. For example, YourVUID is BC123056789 so you can take 123,056 or 789 as your input.

So, You will use the current meter reading as 1000(fixed). No need to take it as input from the user.

While you input your digits on screen a windows form will appear which will perform the functionality of event occurrence that will generate “Total Bill”. You can set the location of the button on-screen according to your choice.

First, you will generate “Unit consumed for the current bill”. For this calculation, you will subtract the previous meter reading from the current meter reading to find the consumed units and display the consumed units on window form. It will be displayed as follows

On the second step, you will perform the “Total bill” calculation considering the following conditions according to your generated units of the current month and then display the Generated bill on a windows form.

If the consumed units are less than or equal to 300 then charge cost is 10 rupees per unit.

CS411 Assignment 2

Solution File  2020

Click Here:

So, If the consumed units are greater than 300 and less than equal to 500 then you will charge 10 rupees for 300 units and 15 rupees for units above 300. For example, if consumed units are 400 then the calculation for the first 300 units cost per unit will be 10, and the remaining 100 units cost will be 15 per unit.

So, If the consumed unit is greater than 500 then you will charge 10 rupees for 300 units, 15 rupees for 200 units, and 20 rupees for those units which are above 500. For example, if the consumed unit is 700 then the calculation for the first 300 units cost per unit will be 10 per unit, for 200 units cost will be 15 per unit, and the other 200 units which are above 500 costs 20 rupees per unit.

In this way, you have to find the cost of the total consumed unit considering the above three conditions.

 

CS411 Assignment 2 Solution 2020 Sample output:

Hence , Note: You will use a built-in delegate to pass the method (method name should be your VUID)and all the bill generation calculations will be performed under this method body.

CS411 Assignment 2

Solution File  2020

Click Here:

Submission details

The following Files Must be submitted in a single zip or rar file.

·         So, .C# code file (file name should be your VUID)

·         A .gif file which shows only “execution” of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)

You are not required to submit the complete project, only copy the required file from the project folder.

Therefore, If you do not submit any of the above-mentioned files you will be awarded Marks partially.

CS411 Assignment 2

Solution File  2020

Click Here: