Instructions:
Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:
Note: You have to upload only .doc or .docx file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.
Objectives:
The objective of this assignment is to provide hands-on experience of System Programming concepts including:
For any assignment related query, contact at CS609@vu.edu.pk
Problem Statement:
Q: Write a C program that will change the typematic rate of keyboard with delay of 1/4 second and typematic rate of 3 characters per second by using the following information.
Best of Luck!
Tags:
Problem Statement:
Q: Write a C program that will change the typematic rate of keyboard with delay of 1/4 second and typematic rate of 3 characters per second by using the following information.
#include <dos.h> #include <conio.h> char st [80];
int SendKbdRate(unsigned char data , int maxtry)
{
unsigned char ch; do
{
do
{
ch=inport(0x64);
}while (ch&0x02); outport(0x60,data); do
{
ch = inport(0x64);
}while (ch&0x01); if (ch==0xfa)
{
puts("success\n"); break;
}
maxtry = maxtry - 1;
} while (maxtry != 0); if (maxtry==0)
return 1;
else
}
return 0;
void main ()
{
//clrscr(); SendKbdRate(0xf3,3); SendKbdRate(0x68,3); gets(st);
}
Ye tu handsout se copy paste kia h
cs609
c program
main
{
unsigned char ch; do
{
do
{
kabhi akthy use nahi ho skty because do while loop main do ky baad while hi ata hy aor compiler yh error dy raha hy
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)
CS609 Assignment#03 Solution Fall 2019
below link
CS609_Assignmnet_03_Solution_Fall_2019_vustudents.ning.com.docx
is this right solution??
CS609 Assignment No.3
Problem Statement::
Question :
Write a C program that will change the typematic rate of keyboard with delay of 1/4 second and typematic rate of 3 characters per second by using the following information.
Answer
Solution
#include < dos.h /span>
#include < conio.h /span>
char st [80];
int SendKbdRate(unsigned char data , int maxtry)
{
unsigned char ch;
do
{
do
{
ch=inport(0x64);
}while (ch&0x02);
outport(0x60,data);
do
{
ch = inport(0x64);
}while (ch&0x01);
if (ch==0xfa)
{
puts("success\n");
break;
}
maxtry = maxtry - 1;
} while (maxtry != 0);
if (maxtry==0)
return 1;
else
return 0;
}
void main ()
{
//clrscr();
SendKbdRate(0xf3,3);
SendKbdRate(0x68,3);
gets(st);
}
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post