Program in C or C++ for T flip-flop T Flip-Flop If we join both J and K input terminal of JK flip flop, It converted into T flip-flop.So it means two input J & K wil convert into a singal input as T. It is also called Toggle flip-flop. Circuit Diagram: Truth Table: Q(t+1)=T.Q(t)' + T'.Q(t) OR Q(t+1)=T⊕Q(t) T Q(t) Q(t+1) 0 0 0 0 1 1 1 0 1 1 1 0 No change condition occures in T flip-flop when T=0. We can say that at T=0 AND gate does not come into play, only NOR gate play their role. Program in C: #include <stdio.h> typedef char bit; bit t(bit T,bit Q) { return T&~(Q)|Q&~(T); } int main() { int i,j,a,res=0; int
Posts
Program/Programme to display a biodata using printf in C Program : #include <stdio.h> #include <conio.h> int main() { char name[30],fname[30],dob[12]; char bg[5],aadhar[12],address[50]; printf(" Enter name: "); scanf("%[^\n]%*c", name); printf("\n Enter father's name: "); scanf("%[^\n]%*c", fname); printf("\n Enter Date of birth: "); scanf("%[^\n]%*c", dob); printf("\n Enter blood group: "); scanf("%[^\n]%*c", bg); printf("\n Enter Aadhar Number: "); scanf("%[^\n]%*c", aadhar); printf("\n Enter address: "); scanf("%[^\n]%*c", address); printf("\n\n\t--your Biodata--\n"); printf("\nName: "); printf("%s", name); printf("\nFather's Name: "); printf("%s", fname); printf("\
Arithmetic Operations This program is made for Arithmetic operations of binary numbers in C but Subtraction can be done only for 8-bit binary numbers. The logic to compute these operation is given below: This program seems long but it is very simple first read it at least once. Arithmetic Operation: The program focuses on four arithmetic activities. (Ⅰ) Addition: For addtion simply we use (A+B). (Ⅱ) Subtraction: A - B = A + (complement of B) + 1 A - B = A + (complement of B) + 00000001 (used in program for 8-bit binary number) (Ⅲ) Increment A + 1 = A + = A + 00000001 (used in program for 8-bit binary number) (Ⅳ) Decrement A - 1 = A + (complement of 1) + 1 A - 1 = A + 11111110 + 00000001 A - 1 = A + 11111111(used in program for 8-bit binary number) #include <stdio.h> #include <conio.h> #include <iostream> using namespace std; typedef char bit; long u1=00000001,u2=11111111; long bn1,bn2,ans; int res[100], rem=
program in C for arithmetic and logic unit Arithmetic and Logic unit This program is made for 8-bit Arithmetic and Logic unit in C. The logic to compute these operation is given below: This program seems long but it is very simple first read it at least once. Arithmetic Operation: The program focuses on four arithmetic activities. (Ⅰ) Addition: For addtion simply we use (A+B). (Ⅱ) Subtraction: A - B = A + (complement of B) + 1 A - B = A + (complement of B) + 00000001 (used in program for 8-bit binary number) (Ⅲ) Increment A + 1 = A + = A + 00000001 (used in program for 8-bit binary number) (Ⅳ) Decrement A - 1 = A + (complement of 1) + 1 A - 1 = A + 11111110 + 00000001 A - 1 = A + 11111111(used in program for 8-bit binary number) Logical Operation: The program focuses on four Logical activities. (Ⅰ) OR: A OR B = (A + B) A OR B = A|B (used in program) (Ⅱ) AND: A AND B = A.B A AND B = A&B (used in program for) (Ⅲ
image source-google | image by- pixabay WHICH TYPE OF LAPTOP IS PERFECT FOR YOU? There are some best "LAPTOP" brand! Before buying a Laptop you need to know what kind of user you are.Means what type of work you want do by this? Priority/Categories Decide from these four type of user! 1)Basic User - Watching movie, lexctures, internal surfing, video chatting etc. 2)Casual User - Coding, photoshop, typing, business work, ppt, basic games etc. 3)Moderate User - video editing, Graphical games, AutoCAD, Solid Works & catia etc. 4)Hardcore User - Hardcore gaming, Pro video editing &, Running very heavy softw are etc. Budget? Decide from these four type! 1)Basic User - Under Rs24000 2)Casual User - Rs25000 to Rs35000 3)Moderate User - Rs36000 to Rs50000 4)Hardcore User - Above Rs50000
What is HDD (hard disk drive) What is HDD ? HDD ↣ Hard Disk Drive "HDD is a data/information storage device. For storing data/information it uses magnetic storage. To do this it uses one or more rigid rapidly rotating disk(platters) coated with magnetic material." HDDs are type of non-volatile storage, retaining stored Data even when powered off. HDDs are introduced by IBM in 1956. It is known as Secondary Storage Memory. It is also known as Permanent Memory. Parts of HDD There are many electrical and mechanical parts in Hard Disk Drive. Platters » Platters are moving part of HDD, They rotate at very high speed. The platters inside are made of Aluminium or Glass or Plastic or Cerium material for light weight and strength.Different magnetic materials are coated on the platter with Phosphorous, Chromium, Cobalt-Chromium-titanium carbon based polymer. Data is written on the platters using this magnetic property. Types
What is SSD (Solid State Drive) What is SSD? SSD ↣ Solid State Drive "A SSD(Solid State Drive) is a data storage device, typically used in a computer.It uses flash memory to store data even after power is turned off. There is no any moving parts. SSDs are designed to access data in the same way as traditional hard Disk Drive." SSD technology primarily uses electronic interfaces compatible with traditional block input/output hard disk drives which permit simple replacements in common applications. New I/O interface like SATA Express and M.2 have been designed to address specific requirements of the SSD technology. History of SSD In 1991 SanDisk corporation shipped the first SSD, a 20 MB solid state drive (SSD) which sold OEM for around $ 1000.It was used by IBM in a Thinkpad laptop. In Sep 8, 2008 Intel began shipping its first mainstream solid state drive, the X 18-M and X 25-M with 80 Gb storage capacities. Parts of SSD