www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No. 02 Semester: Fall 2016 CS609 – System Programming

 Assignment Question 1                                                                                                                                                                              (05 Marks) Write Code of following in c. 1-      Connect interval timer to speaker and turned it on 2-      Turn off speaker by clearing least significant bits.   Question 2:                                                                                                                                            (10 Marks)   Write down a TSR program that disables the input of characters ‘b’ and ‘c’ from keyboard. Scan codes of  'b' and 'c' are given below:  ‘b’ = 0x30 ‘c’ = 0x2E.     NOTE: Do not worry about the output and just concentrate on logic. There should be no error in your program. Do not put any query on MDB about this assignment, if you have any query then email at cs609@vu.edu.pk.

Views: 6764

Attachments:

Replies to This Discussion

koi Borland softwer ka link he share kar do to thek wala version ho

C language ka best software kn sa ha

us ka link be share kar do

i facw same prob ... code error de rha ha ???

plzz koe solution bta dy is assignment ka......

Connect interval timer to speaker and turned it on

Solution

#include
#include
voide main()
{
outportb (0x43,0xB4);
outportb (0x42,0xFF);
outportb (0x43,0x21);
outportb (0x61,inportb(0x61)| 3);
getch();
outportb (0x61,inportb(0x61)& 0xFC);
}

is it right ????

any one tell me

yae ap nay run kar k dakha hai?

idea of question no 02:

#include

int main()
{
char line[150];
int i, j;
printf("Enter a string: ");
gets(line);

for(i = 0; line[i] != '\0'; ++i)
{
while (!( (line[i] == 'b' && line[i] == 'c') || (line[i] == 'B' && line[i] == 'C') || line[i] == '\0') )
{
for(j = i; line[j] != '\0'; ++j)
{
line[j] = line[j+1];
}
line[j] = '\0';
}
}
printf("Output String: ");
puts(line);
return 0;
}

plz koi tu c me ans load kr dy plzzzzzzzzz

mujy tu yae nh maloom k header files konsi use karni hain

Attachments:

8 error arahy hain

Top Trends

1

2

3

4

иαвєєℓ αнмє∂

5

------------------------------------

Latest Activity

amna joined + M.Tariq Malik's group

2 hours ago

MGT502 Assignment 1 Solution Spring 2021 || mgt502 Assignment No 1 || 100% Correct Solution

6 hours ago
MUHAMMAD USMAN added a discussion to the group CS201 Introduction to Programming

7 hours ago

7 hours ago
7 hours ago

Legend of Punjabi ! This man is Hilarious .

8 hours ago
Ahmer Ahmed replied to Fatima's discussion eco403 assignment solution 2 in the group ECO403 Macroeconomics
8 hours ago
Ibn Azeem updated their profile
8 hours ago