Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zsubzwary/d48b889f4a4f205fa03fe3f7dde061e4 to your computer and use it in GitHub Desktop.
Save zsubzwary/d48b889f4a4f205fa03fe3f7dde061e4 to your computer and use it in GitHub Desktop.

Pending assignments of System Programing of Section C of FALL 2015 BSCS :

DEADLINE: February 18, 2019 Assigment should be submitted to class CR before February 15, 2019

  1. Pagination (assigned on OCT 31, 2018)
  2. Events with Threading (assigned on DEC 13, 2018)
  3. Even Odd Prime Number Multi-Threaded (assigned in class on DEC 18, 2018)
  4. WCF Service (API) (assigned in LAB on DEC 18, 2018)
  5. Search Simulation (assigned on JAN 09, 2019)

Explanation of all Assignment:

1) Pagination

​ Create a Table of students and insert at least 100 records in it (for your ease click here to get the dummy data with more than 100 records already created for you, thank me later 😊 ) , then make a C# Desktop Application that will be be showing only 10 users at a time, and you have to add two buttons named Previous and Next to see more students ahead of currently displayed or previous !!

2) Events with Threading

Create a C# Desktop Application, it should have a class (name it whatever you want) that class should be generating a random number after every second and the main Form should display all the generated numbers in Real-Time !!

3) Even Odd Prime Number Multi-Threaded

​ This is somewhat similar to previous one, some of the changes are that there are two forms Involved. The first Form will collect the lower bound value and the upper bound value and Interval in Milliseconds then pass that to a separate class that will generate Random Numbers within those given limits after ever given millisecond interval and Fire (publish) an event, a second form will start when user click on a Button, and it will be the subscriber class for that events, so it will be showing all the generated numbers in a 4 different tabs. First tab will be for all generated Numbers, second tab will be for Even numbers, then Odd numbers and at the end the Prime numbers.

4) WCF Service (API)

​ In this assignment you have to make a WCF service for the student database (dummy records are avaliable here ) and then Deploy it in your own machine (localhost). After that you have to create 3 things

  1. C# Desktop Client​
  2. JavaScript Client
  3. ASP.NET Web App Client

You have to utilize (i.e perform any of the CRUD operations on) the created WCF Service (API) in all three of the clients.

HINT: You have to transport data as JSON to work with all of the clients.

5) Search Simulation

​ You have to create a C# Application (console app will be easier) that will be performing search. You have to create a three Databanks (three objects of a class) that will be holding data to be searched. Each databank takes sometime before returning result (i.e there is a random sleep in searching) . Further ahead assignment is divided into two parts.

​ 5.1) Keep Same Data in all there databanks (i.e initialize with same numbers etc) When user performs a search all of them should start searching result in parallel and return the result to main function be shown in the Console (assuming you have created console app). The main function will only be waiting for the first thread that successfully found out result to complete and show it on the console.

​ For example if user search a number 14 and it exists in all three DB then the main should only display the result from the DB that found it first in searching.

​ 5.2) Keep overlapping data in three databanks (e.g assign 1 to 50 in first DB then 40 to 100 in second then 90 to 150 in third) when user performs a search all of them should start searching result in parallel and return the result to main function be shown in the Console (assuming you have created console app).

​ For example If user search number 45 (and that number is in the series of overlapping part, that is it exists in more than one DB) then result from all of those DB whom found out value should be shown to the user, otherwise if it exists only in one DB then show it directly in the main function.

Hope this helps you !! πŸ˜‡

If you have any quires please comment below !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment