Posts

Showing posts from December, 2015

Computer Communication and Networks Lab Manual

Image
CCN Lab Manual free download This is the official lab manual of COMSATS Institute of Information and Technology, Lahore recommended by many professors.  More information Written:  Mr. Usman Ashraf Pages: 313 Official Blog: cs-study.blogspot.com

BMI Metric source code in Liberty basics

Image
Body Mass Index Implementation First Screen Result Screen [ setup . main . Window ] '-----Begin code for #main WindowWidth = 365 WindowHeight = 220 UpperLeftX = int ( ( DisplayWidth - WindowWidth ) / 2 ) UpperLeftY = int ( ( DisplayHeight - WindowHeight ) / 2 ) '-----Begin GUI objects code statictext # main . statictext1 , "Enter Your Name" , 15 , 52 , 102 , 20 TextboxColor$ = "white" textbox # main . name , 135 , 47 , 100 , 25 button # main . button3 , "Proceed Now!" , [ BMI ] , UL , 15 , 92 , 95 , 25 '-----End GUI objects code open "untitled" for window as # main print # main , "font ms_sans_serif 10" wait [ BMI ] print # main . name , "!contents? name$" m1$ = "Welcome " + name $ + " to BMI Calculator" notice m1$ close # main '-----Begin code for #1 WindowWidth = 550 WindowHei...

CSMA/CD Implementation in C++

Image
Background CSMACD stands for carrier Sense, Multiple Access, and Collision Detection. We use a simplified version where the protocol:  If a station is ready to send a message (according to a random number R1) it senses the carrier. The station can only sense the part of the carrier that is directly attached to the station. a. If the carrier is free the station start transmission of a random message (length R2 ticks) Otherwise, the station delays sensing the carrier by a random (R3) number of ticks. If a station detects collision it stops the current transmission and delays sensing the carrier by a random number of ticks (R4) As long as a station is attempting to send a message it does not generate new messages. The number and location of stations on the carrier, the carrier length in meters (R5), and the propagation time of a message through the carrier in tics/meter are given.  We assume that a tic is a time that it takes for a message to propagate a distance of one meter in ...

Smoking Cessation Quotes of Famous Personalities with references

Image
Quotes About Smoking Cessation When a man does not know what harbor he is making for, no wind is the right wind. ~ Purpose Quotes The hardest distance is always from the sofa to the front door ~ Erki Nool , Olympic winner The secret of getting ahead is getting started  ~ Mark Twain   The world has the habit of making room for the man whose words and actions show that he knows where he is going ~ Napoleon Hill   Your life is in your hands, to make of it what you choose ~ John Kehoe Our greatest glory is not in never failing but in rising up every time we fail ~ Ralph Waldo Emerson  We are what we repeatedly do. Excellence, then, is not an act, but a habit. ~ Aristotle  It is hard to fail, but it is worse never to have tried to succeed. ~ Theodore Roosevelt   People often say that motivation doesn’t last. Well, neither does bathing – that’s why we recommend it daily. ~ Zig Ziglar  Desire is the starting point of all achievement, not a hope, ...