March 2, 2012

HLA – High Level Assembly

HLA – High Level Assembly One of the ways is usage of HLA (High Level Assembly). It fully supports advanced data types and object oriented assembly language programming. Syntax is of HLL e.g. C++. It is a quick approach to combine assembly with HLL. On other hand when we take example of C language as […]

Practically implementing Object oriented concepts using c++

Practically implementing Object oriented concepts using c++ (Download Code) #include #include #include “mc100200752_CS304_5.h” //mc100200752 //START – DEFINITION OF administrator FUNCTIONS bool administrator::login() { //we will compare this id with our library DBMS records //if user exists then is_login = true; return is_login; }; bool administrator::logoff(int id) { }; int administrator::search() { }; int administrator::Return() { […]

C++ Implementation, simple association, composition, aggregation

C++ Implementation, simple association, composition, aggregation 1. Simple Association: It can be implemented by sending messages from one object to another as this type of association does not involve any type of containment. 2. Composition: Composition is achieved by adding declaration of object of one class in other object. 3. Aggregation: Aggregation is implemented by […]

The concept of composition in OOP, Inheritance, Public & private inheritance, basic constructs of OOP in a program

The concept of composition in OOP, Inheritance, Public & private inheritance, basic constructs of OOP in a program A C++ Program in which you will learn to write a class ‘Pakistani Citizens’ which has five data members “name, age, CNIC No, province, and domicile” and two data functions getter and setter for each data member […]

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.