Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

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: 6804

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

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service