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.
|
Tags:
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
8 error arahy hain
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.
We are user-generated contents & non-commercial 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. All Contents on site are for personal & non-commercial use.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