March 2, 2012

Digital Library Management System

Explanation of OOP basics with the help of Digital Library Management System Problem: The purpose of the Library Management system is to allow for storing details of a large number of books, magazines, Journals, thesis and allow for add, search, borrow, return facilities separately to administrator/Librarian, staff and students. Different privileges are given to different […]

synchronous and asynchronous

synchronous and asynchronous Both works on their appropriate places but asynchronous design is very complex and filled with dangers for new and for experienced designers as well. Synchronous design is preferred over asynchronous. Asynchronous design often involve multiple level combination circuits, flip-flops and macro functions such as counters and shift registers. These structures don’t help […]

states does a mod-14 counter have

states does a mod-14 counter have States = 2^n Where n = no of flip flops Here n = 4 So States = 24=16 Mod 14 can calculate 16 states

flip-flops are required for mod-14 counter

flip-flops are required for mod-14 counter Remember with ‘n’ no. of flip-flop you can get upto max. modulo-[2^n] counter. Therefore for modulo-14 counter 2^3 = 8 which is less than 14 and 2^4 = 16 which is greater than 14 Hence we require 4 F/F.

flip-flops are required to produce a divide-by-32 device

5 flip-flops are required to produce a divide-by-32 device There are 5 flip-flops are required to produce a divide-by-32 device. We can have the no. of required flip-flops by . For 32 we have to do 2^5.

The main difference between a gated S-R latch and an edge-triggered S-R flip-flop

The main difference between a gated S-R latch and an edge-triggered S-R flip-flop The main difference between a gated S-R latch and an edge-triggered S-R flip-flop is that in gated S-R latch the output is dependent on active-high of enable input but in edge-triggered S-R flip-flop output will be affected by appropriate inputs at S […]

C Language File Include Example and Minimum Element Search Function from an Array

#include <cstdlib> #include <iostream> using namespace std; #include “header.h” int main(int argc, char *argv[]) { cout << “Roll No. mc100200752\n\nAssignment: CS301 – 4\n\n”; cout << “Question:\nWrite a program in c++ that takes any no”; cout << ” of elements through command prompt from”; cout << “user and saves it in an array. Then convert it […]

March 1, 2012

Stack

Stack A limitation; we have to access the last stack element first from stack (LIFO). IsEmpty() used to check either stack is emptied while using pop() or we use exception to handle this situation. If we want to use array inside, we have to shift the elements left to access/insert/delete a specific element in stack. […]