from page 78 for second question
Sponsored Links
View more random threads:
- Assignment No. 2 MTH 301 (Fall 2010)
- IT430 E-Commerce Assignment No. 2 Solution Spring Semester...
- Data Ware Housing (CS601) Assignment # 1 fall october,...
- MTH302 First Assignment idea solution October, fall 2012
- CS301- Data Structures Assignment No.1 Solution Spring 2014
- CS602 Computer Graphics Assignment No.2 Solution Spring...
- PHY301 Circuit Theory Assignment No.1 Solution Spring...
- STA301 - Statistics and Probability Assignment No.2 Last...
- CS101 - Introduction to Computing Assignment No. 02...
- CS304 Object Oriented Programming Assignment No:1...
CS609 System Programming Assignments No. 02 Discussions and Solutions Fall 2014
Question 1: [Marks = 10]
Write a C language program that access the parallel port through BIOS functions and perform following tasks:
If printer is not online for printing, print a message on screen that
“Printer is not Ready for printing.”
If printer is ready and online but busy in printing some job then print a message on screen that
“Printer is Busy.”
If printer is ready and free to assign print job but out of paper then print a message on screen that
“Printer is Out of Paper.”
If printer is ready to assign print job and have paper in tray too then print a message on screen that
“Printer is Free to Use.”
Hint: Use Direct Parallel programming ports registers to have printer status (Base+1)
Question 2: [Marks = 10]
Write a C++ program that generates a tune with 5 different pitches, gradually altered from low to high. A delay of half second should be there between each pitch of tune. Program should terminate whenever key ‘S’ is pressed from keyboard.
from page 78 for second question
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)