Unit I: Number System & Concept of Information Systems and Software
1. Number System
1.1. Decimal Number System
- Also known as Base-10 system.
- Uses ten unique digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
- It is a positional value system, meaning the value of a digit depends on its position within the number.
- Each position represents a power of 10. For example, in 123, 3 is 3x10^0, 2 is 2x10^1, 1 is 1x10^2.
1.2. Binary Number System
- Also known as Base-2 system.
- Uses two unique digits: 0 and 1. These digits are called bits (Binary Digits).
- This is the fundamental number system used by computers as they operate on two states (on/off, high/low voltage).
- Each position represents a power of 2.
1.3. Octal Number System
- Also known as Base-8 system.
- Uses eight unique digits: 0, 1, 2, 3, 4, 5, 6, 7.
- It is often used as a compact representation of binary numbers, as three binary digits can represent one octal digit (2^3 = 8).
- Each position represents a power of 8.
1.4. Hexadecimal Number System
- Also known as Base-16 system.
- Uses sixteen unique symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
- Here, A represents 10, B represents 11, and so on, up to F representing 15.
- Widely used in computer programming (e.g., memory addresses, color codes) due to its ability to represent large binary numbers concisely (four binary digits represent one hexadecimal digit, as 2^4 = 16).
- Each position represents a power of 16.
| Number System | Base (Radix) | Digits Used | Examples |
|---|---|---|---|
| Decimal | 10 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 | 12310, 50010 |
| Binary | 2 | 0, 1 | 10112, 1002 |
| Octal | 8 | 0, 1, 2, 3, 4, 5, 6, 7 | 778, 1238 |
| Hexadecimal | 16 | 0-9, A, B, C, D, E, F | FF16, 1A16 |
1.5. Conversions Between Number Systems
1.5.1. Decimal to Binary Conversion
Worked Example 1: Convert 2510 to Binary.
25 / 2 = 12 R 1 (LSB) 12 / 2 = 6 R 0 6 / 2 = 3 R 0 3 / 2 = 1 R 1 1 / 2 = 0 R 1 (MSB)
Reading the remainders from bottom to top, 2510 = 110012.
Topper Secrets: Remember the "Divide by 2, Read Up" rule for integer part conversions. For fractional parts, it's "Multiply by 2, Read Down" (integer parts only).
1.5.2. Binary to Decimal Conversion
Worked Example 2: Convert 110112 to Decimal.
1 1 0 1 1 2^4 2^3 2^2 2^1 2^0 16 8 4 2 1 (1 * 2^4) + (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) = (1 * 16) + (1 * 8) + (0 * 4) + (1 * 2) + (1 * 1) = 16 + 8 + 0 + 2 + 1 = 27
So, 110112 = 2710.
1.5.3. Octal to Binary Conversion
Worked Example 3: Convert 6348 to Binary.
Octal Digit: 6 3 4 Binary Equivalent: 6 -> 110 3 -> 011 4 -> 100 Combine the binary equivalents: 110011100
So, 6348 = 1100111002.
Common Exam Question: Be prepared to convert between any two given number systems, especially Decimal to Binary and vice-versa, as well as Octal/Hexadecimal to Binary and vice-versa (even though Octal to Binary is explicitly mentioned, Binary to Octal is its natural inverse).
1.6. Binary Arithmetic
1.6.1. Binary Addition
| Operation | Sum | Carry |
|---|---|---|
| 0 + 0 | 0 | 0 |
| 0 + 1 | 1 | 0 |
| 1 + 0 | 1 | 0 |
| 1 + 1 | 0 | 1 |
| 1 + 1 + 1 | 1 | 1 |
Worked Example 4: Add 10112 and 11012.
1 0 1 1 (11 in decimal)
+ 1 1 0 1 (13 in decimal)
----------
1 1 0 0 0 (24 in decimal)
Explanation:
(Carries) 1 1 1 0
1 0 1 1
+ 1 1 0 1
---------
1 1 0 0 01.6.2. Binary Subtraction
Binary subtraction can be performed directly or using complements, which is often preferred in digital circuits for simplification.
1.6.2.1. One's Complement Method
- Find the one's complement of B.
- Add A to the one's complement of B.
- If there is a carry-out (end-around carry), add it to the result (LSB). The result is positive.
- If there is no carry-out, the result is negative, and it's the one's complement of the sum.
Worked Example 5: Subtract 01012 from 10112 (11 - 5).
- Minuend (A) = 10112
- Subtrahend (B) = 01012
- One's complement of B (0101) = 1010
- Add A and one's complement of B:
1011 + 1010 ------- 10101 - There is a carry-out (1). Add this carry-out to the LSB of the result:
0101 + 1 (End-around carry) ------- 0110
So, 10112 - 01012 = 01102 (which is 6 in decimal).
Worked Example 6: Subtract 10112 from 01012 (5 - 11).
- Minuend (A) = 01012
- Subtrahend (B) = 10112
- One's complement of B (1011) = 0100
- Add A and one's complement of B:
0101 + 0100 ------- 1001 - There is no carry-out. The result is negative. Take the one's complement of 1001, which is 0110.
So, 01012 - 10112 = -01102 (which is -6 in decimal).
1.6.2.2. Two's Complement Method
- Find the two's complement of B.
- Add A to the two's complement of B.
- If there is a carry-out, discard it. The remaining result is positive.
- If there is no carry-out, the result is negative, and it's in two's complement form. To get the magnitude, take the two's complement of the result.
Worked Example 7: Subtract 01012 from 10112 (11 - 5).
- Minuend (A) = 10112
- Subtrahend (B) = 01012
- One's complement of B (0101) = 1010
- Two's complement of B = 1010 + 1 = 1011
- Add A and two's complement of B:
1011 + 1011 ------- 10110 - Discard the carry-out (1). The result is 01102.
So, 10112 - 01012 = 01102 (which is 6 in decimal).
Worked Example 8: Subtract 10112 from 01012 (5 - 11).
- Minuend (A) = 01012
- Subtrahend (B) = 10112
- One's complement of B (1011) = 0100
- Two's complement of B = 0100 + 1 = 0101
- Add A and two's complement of B:
0101 + 0101 ------- 1010 - There is no carry-out. The result 10102 is negative and in two's complement form. To get the magnitude, take the two's complement of 1010:
- One's complement of 1010 = 0101
- Two's complement of 1010 = 0101 + 1 = 0110
So, 01012 - 10112 = -01102 (which is -6 in decimal).
Topper Secrets: Two's complement subtraction is more commonly used in computers because it simplifies hardware design by treating subtraction as addition, eliminating the need for end-around carry logic.
1.6.3. Binary Multiplication
| Operation | Product |
|---|---|
| 0 x 0 | 0 |
| 0 x 1 | 0 |
| 1 x 0 | 0 |
| 1 x 1 | 1 |
Worked Example 9: Multiply 1012 by 112 (5 * 3).
101 (multiplicand)
x 011 (multiplier)
-----
101 (101 * 1)
+ 1010 (101 * 1, shifted left by one position)
-------
1111 (Result)So, 1012 * 112 = 11112 (which is 15 in decimal).
1.6.4. Binary Division
Worked Example 10: Divide 11002 by 102 (12 / 2).
110 (Quotient)
_______
10 ) 1100
- 10
----
010
- 10
----
000
- 00
----
00So, 11002 / 102 = 1102 (which is 6 in decimal).
2. Concept of Information Systems and Software
2.1. Concept of Information Systems (IS)
- Components of IS: Hardware, Software, Data, People, and Processes.
- Role in Pharmacy: Essential for managing patient records, drug inventories, billing, research data, and clinical decision support.
2.2. Concept of Software
- System Software: Manages and controls computer hardware and provides a platform for other software to run. Examples: Operating systems (Windows, Linux), device drivers.
- Application Software: Performs specific tasks for end-users. Examples: Word processors (MS Word), spreadsheets (MS Excel), pharmacy management systems, web browsers.
2.3. Information Gathering
Information gathering, also known as data collection or fact-finding, is the initial stage in the software development process where analysts collect detailed information about the existing system and the requirements for the new system from various stakeholders.
- Methods of Information Gathering:
- Interviews: Direct conversation with stakeholders to elicit detailed requirements.
- Questionnaires/Surveys: Efficient for gathering information from a large number of people.
- Observation: Watching users perform tasks to understand processes and identify pain points.
- Document Analysis: Reviewing existing system documentation, reports, forms, and procedures to understand current operations.
- Prototyping: Developing a preliminary version of the system to get user feedback.
2.4. Requirement and Feasibility Analysis
This phase defines what the new system should do and determines if it is practical and achievable.
2.4.1. Requirement Analysis
- Types of Requirements:
- Functional Requirements: Describe what the system MUST do (e.g., "The system shall allow pharmacists to update drug inventory").
- Non-functional Requirements: Describe how the system SHOULD perform (e.g., "The system shall respond to user queries within 2 seconds," "The system shall be secure against unauthorized access"). This includes performance, security, usability, reliability, scalability.
2.4.2. Feasibility Analysis
- Types of Feasibility:
- Technical Feasibility: Can the project be built with existing technology? Is the required hardware/software available?
- Economic Feasibility: Is the project financially viable? Will the benefits outweigh the costs (Cost-Benefit Analysis)?
- Operational Feasibility: Will the system work in the existing organizational structure? Is it compatible with the existing work environment and user skills?
- Schedule Feasibility: Can the project be completed within the given time frame?
- Legal and Ethical Feasibility: Does the project comply with all laws, regulations (e.g., HIPAA for patient data), and ethical considerations?
2.5. Data Flow Diagrams (DFD)
- Purpose: To visualize the boundaries of the system, the data it consumes and produces, and the places where data is stored and changed.
- DFD Components (Yourdon-DeMarco Notation):
DFD Symbols and Description Symbol Name Description External Entity (Terminator) Represents sources or destinations of data outside the system (e.g., Patient, Supplier, Pharmacy Staff). Process Transforms incoming data flow(s) into outgoing data flow(s) (e.g., Dispense Medication, Process Prescription). Data Store A place where data is held for later use (e.g., Patient Records, Drug Inventory). Data Flow The movement of data from one component to another, represented by an arrow with a label describing the data. - Levels of DFD:
- Context Diagram (Level 0 DFD): The highest-level DFD, representing the entire system as a single process with all its external entities and major data flows. It shows the system's boundary.
- Level 1 DFD: Decomposes the single process from the context diagram into its major sub-processes, showing how data flows between them and to/from data stores and external entities.
Common University Exam Question: Draw a DFD for a simple scenario like "Prescription Dispensing System" or "Student Enrollment System." Ensure to correctly use all four symbols.
2.6. Process Specifications
- Purpose: To precisely define what a process does, including conditions, calculations, and decision rules.
- Methods for documenting process specifications: Structured English, Decision Tables, Decision Trees.
2.7. Input/Output Design
This phase focuses on how data enters the system (input) and how information is presented to the user (output).
2.7.1. Input Design
- Goals: Minimize data entry errors, simplify data entry, ensure consistency, and reduce processing time.
- Considerations: Data validation, input masks, default values, clear labels, appropriate input controls (text boxes, dropdowns, checkboxes).
2.7.2. Output Design
- Goals: Present information clearly and concisely, meet user needs, ensure accuracy, and be timely.
- Types of Output: Printed reports (e.g., patient billing, drug inventory reports), screen displays, audio, email, SMS alerts.
2.8. Process Life Cycle (Software Development Life Cycle - SDLC)
Common Phases of SDLC:
- Planning: Defines the scope, objectives, and feasibility of the project. Involves requirement gathering and initial analysis.
- Analysis: Detailed study of the system's requirements, creating models like DFDs, and documenting functional and non-functional requirements.
- Design: Translating requirements into a detailed system design, including architecture, user interface, database structure, and module specifications.
- Implementation/Development: Coding the software based on the design specifications.
- Testing: Systematically checking for errors and defects to ensure the software meets requirements and works correctly.
- Deployment/Implementation: Releasing the software to the users for operation. This may involve installation, configuration, and training.
- Maintenance: Ongoing support, updates, bug fixes, and enhancements to keep the system running effectively and adapt to changing needs.
Simplified SDLC Flow:
Planning -> Analysis -> Design -> Implementation -> Testing -> Deployment -> Maintenance
Topper Secrets: Understand that SDLC is not always strictly sequential (waterfall model). Other models like Agile, Spiral, and V-model exist, which might introduce iterations or concurrent phases, but the core activities remain similar.
2.9. Planning and Managing the Project
- Key Aspects of Project Management:
- Scope Management: Defining and controlling what is and is not included in the project.
- Time Management: Estimating, scheduling, and controlling project activities to ensure timely completion.
- Cost Management: Planning, estimating, budgeting, financing, funding, managing, and controlling costs so that the project can be completed within the approved budget.
- Quality Management: Ensuring the project and its deliverables meet specified quality standards.
- Risk Management: Identifying, assessing, and responding to project risks.
- Resource Management: Acquiring, managing, and utilizing team members and other resources effectively.
- Communication Management: Planning, managing, and distributing information effectively.
- Stakeholder Management: Identifying all people or organizations impacted by the project and managing their expectations and engagement.
- Phases of Project Management:
- Initiation: Defining a new project or a new phase of an existing project.
- Planning: Establishing the scope, refining objectives, and defining the course of action required to attain the objectives.
- Execution: Carrying out the project plan.
- Monitoring & Control: Tracking, reviewing, and regulating the progress and performance of the project; identifying any areas in which changes to the plan are required; and initiating the corresponding changes.
- Closure: Finalizing all activities across all process groups to formally close the project or phase.
Upgrade to Success Pass (₹30) to unlock downloads and printing.
