Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


CS411 Visual Programming Assignment No 02 Fall 2020 Solution / Discussion

Visual Programming (CS411)

Assignment # 02

Total marks = 20

Due Date 14th Dec, 2020

Please carefully read the following instructions before attempting assignment.

RULES FOR MARKING

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.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

Lectures:

       Lectures 7 to 15

 

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

For any query, feel free to email at:  cs411@vu.edu.pk

   (Marks 20)

Problem Statement:

You need to develop a console application in C# using delegates and event handling that will display how many digits of your VU Id have been added to the ArrayList.

  • There should be two classes one is publisher and other is listener.
  • In publisher class, define the event along the method that where you will fire the event.
  • For example, define MyArrayList class in your code. Your MyArrayList should inherit from built-in ArrayList class.
  • Now, according to the functionality of given problem statement identify and define your event. Also define a method where you will fire a particular event.
  • In Publisher class, override base class method (Add) to add the digits of your VU-Id into an ArrayList.
  • Now in listener class write the handler where you will display the count of your VU-Id that is already added to an ArrayList.
  • In main method of your listener class, register your already defined event to handler. Then call an overridden method of publisher class to add your VU-Id into the ArrayList. Your handler should display the count after every addition to ArrayList.
  • Remember your event should be fired every time you add a digit into an ArrayList.
  • In this program, you will use the built-in ArrayList class. For that you have to add library Collections;

 

 

 

Required Output:

Your output should be like this:

 

Note:

DO REMEMBER that you must use your VUID as an input in this program.

 

Submission details

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

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

·       Screenshot of your output

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

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

 

 

“The End”

Views: 1729

Replies to This Discussion

Share the Assignment Questions & Discuss Here.... 

whenever i run the code its just run in blink of an eye and disappear why?

please help

its shows no error still the output is not showing

CS411 Assignment Solution # 2 Fall 2020 - Visual Programming

this code does not generate the output\

CS411 assignment no 02 solution fall 2020

Click on the below link to download the file

CS411_Assignment_No_02_Solution_Fall_2020

cs411 right solution fall 2020

Click on the below link to download the file

CS411-Right-Solution-Fall-2020-Assignment-02

same problem again and again the output is disappearing in a blink of an eye

CS411 Visual Programming | Assignment No. 2 | Fall 2020 | 14 Dec 2020

CS411 Assignment No. 2 Fall 2020 Solution by VU ACADEMY

please send code

Assignment 2 cs 411 fall 2020

Attachments:

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service