We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Visual Programing (CS411)

Assignment#03 (GRADED)

  Total marks = 20

                                                                                       Deadline Date = 23-01-2020

Please carefully read all the instructions carefully before attempting the assignment.

Problem Statement:

Develop a WPF application in C# with the following functionality:

  • Create a Thread using threadpool.
  • It will also utilize the stopwatch for thread time execution calculation.
  • When the application starts the following window appears:

One Text Box:

Your application will have textbox for input field along with label:

Student ID(Last 4 digit)

This will input Last Four digit of your VUID i.e. VUID:123456789

It will take6789 as input

One Button:

Start writing to file (This button will write data to text file named: output.txt)

One Label:

A final label for showing the time consumed by threadpool to write in text file

Working Procedure:

  • Clicking the button “Start writing to file will create the thread using threadpool and start the timer (Stopwatch).
  • This thread will execute a process having a for loop
  • For loop will execute number of times enterd in textbox (VUID last 4 digit value)
  • Then Label will show time consumed while writing into text file.


Write your own VU id in the application name and id fields while creating .gif file, otherwise your assignment will not be accepted.

Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.

Submission details

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

·         .C# code file

·         .XAML File (Front End file)

·         Text file (named as your (output.txt)

·         A .gif file which shows Run phase 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 these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.

If you do not submit any of the above mentioned file 25% marks per file will be deducted.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Views: 1636


Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

Students having same subject can start discussion here to solve assignment, GDB & Quiz and can clear their concepts until solution is provided. 


P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Then copy Questions from assignment file and paste in Discussion.


http://bit.ly/vucodes (For Assignments, GDBs & Online Quizzes Solution)

http://bit.ly/papersvu (For Past Papers, Solved MCQs, Short Notes & More)

Click Here to Search (Looking For something at vustudents.ning.com?)

Click Here to Join (Our facebook study Group)


Sarmad Arain 

Email, cell no, facebook personal links, links sharing for promotion any kind of site & youtube direct link sharing is not allowed at the site.


Although If you want to share the youtube video, then paste the embed codes here of the youtube video. Otherwise your comment / reply will be deleted. As well as your account will be deleted from the site. Thanks for understanding.


CS411 Assignment 3 Solution | Feb 2020 | CS411 | C# ThreadPool | Stream Writter | CS411 C# WPF Form

try this code

watch = System.Diagnostics.Stopwatch.StartNew();
for (int i = 0; i < 1000; i++) {
} watch.Stop();

Console.WriteLine($"Execution Time: {watch.ElapsedMilliseconds} ms");

CS 411 Assignment No. 3 100% correct solution


Date Extended

for those who have posted solution through email. Now they should post via LMS

Kindly share complete solution of this assignment in zip file.


Looking For Something? Search Here


This is a member-supported website. Your contribution is greatly appreciated!

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

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