Posts

Showing posts from November, 2019

Operational Amplifier

Introduction   Op amps have been used for a long time, their initial applications being primarily in the area of analogue computation. In mid 1960s the first integrated circuit op amp was produced. The structure of Operational amplifier  An op amp contains 5 terminals in maximum.  2 for input  2 for connect with a positive and negative voltage  1 for output Function of the ideal Op Amp The ideal Op Amp is designed to sense the difference between two input terminals. The two input terminals are of two type. Positive input terminal is called non-inverting input terminal and in the other hand negative input terminal is called inverting input terminal. 1. If positive terminal is active and negative is grounded then Vout=A*V(+) 2. If negative terminal is active and positive is grounded then Vout=-A*V(-) For this negative symbol this terminal is called ‘Inverting input terminal’

Library Management System : C programming

Image
Here is the code for LIBRARY MANAGEMENT SYSTEM #include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> #include<stdlib.h> #include<windows.h> #include<time.h> int mainmenu(); char books[100000];int dd,mm; int login() {     //for login;     char user_n[10],pw[6],p[6]; a:  printf("\n\n\t\tUser Name:\t");scanf(" %[^\n]",&user_n);     printf("\t\tPassword:\t");scanf(" %[^\n]",&pw);     printf("\n%s\t%s\n",user_n,pw);     if((strcmp(user_n,"admin")==0)&& (strcmp(pw,"admin")==0))     {         printf("Login Successful\nPress Any Key to Continue...");getch();system("cls");         do{printf("Give Date Only(dd):\t");scanf("%i",&dd);}while(dd>31);         do{printf("Give Month Only(dd):\t");scanf("%i",&mm);}while(mm>12);printf("\nP...