Code Factory  
Navigating the wonders beyond binary brilliance with 100+ programming solutions (English Edition)
Author(s): Shikha Jain
Published by BPB Publications
ISBN: 9789355519115
Pages: 394

EBOOK (EPUB)

ISBN: 9789355519115 Price: INR 899.00
Add to cart Buy Now
Beginners in the programming world often wander to get some essential books to learn logic building with the help of algorithms, flowcharts, and minor C/Python language code. Addressing this demand, the book features over 100 solved programming questions thoughtfully arranged in incremental order of difficulty. The main objective of the book is to trigger and nurture logic-building skills among the students. The book is structured to introduce concepts gradually, ensuring a smooth learning curve. This guide gets you ready for any programming challenge, starting from simple input/output to tackling complex problem-solving. Learn decision-making with if-else, automate with loops, and understand logic using Python and C examples. Master algorithms, flowcharts, and creative thinking. Apply your skills to real-world problems and turn them into solutions. This book will help the readers develop a well-rounded skill set covering flowcharts, algorithmic thinking, and practical implementation in both C and Python languages. It will provide a holistic foundation for anyone aspiring to become proficient in coding.
Rating
Description
Beginners in the programming world often wander to get some essential books to learn logic building with the help of algorithms, flowcharts, and minor C/Python language code. Addressing this demand, the book features over 100 solved programming questions thoughtfully arranged in incremental order of difficulty. The main objective of the book is to trigger and nurture logic-building skills among the students. The book is structured to introduce concepts gradually, ensuring a smooth learning curve. This guide gets you ready for any programming challenge, starting from simple input/output to tackling complex problem-solving. Learn decision-making with if-else, automate with loops, and understand logic using Python and C examples. Master algorithms, flowcharts, and creative thinking. Apply your skills to real-world problems and turn them into solutions. This book will help the readers develop a well-rounded skill set covering flowcharts, algorithmic thinking, and practical implementation in both C and Python languages. It will provide a holistic foundation for anyone aspiring to become proficient in coding.
Table of contents
  • Cover
  • Title Page
  • Copyright Page
  • Dedication Page
  • About the Authors
  • About the Reviewer
  • Acknowledgement
  • Preface
  • Table of Contents
  • 1. Simple Input Output Program
    • Introduction
    • Structure
    • Objectives
    • Program 1.1: Print your name
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.2: Print your lucky number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.3: Print your details
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.4: Find sum of two numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.5: Find product of two numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.6: Perform division
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.7: Print equivalent rational numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.8: Swapping using temporary variable
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.9: Swapping without temporary variable
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
      • C code
        • C code explanation
    • Program 1.10: Find square of a number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.11: Find cube of a number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.12: Find average
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.13: Find percentage marks
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.14: Convert meter to centimeter
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.15: Convert degree F to degree C
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.16: Convert inch to feet
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.17: Find area of a rectangle
      • Sample input output
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.18: Find area of a circle
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.19: Find area of parallelogram
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.20: Find distance between two points
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 1.21: Obtain logical truth table
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Conclusion
    • Points to remember
    • Questions
  • 2. Conditional Statements
    • Introduction
    • Structure
    • Objectives
    • Program 2.1: Find absolute value of a number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.2: Check if you are an adult?
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.3: Check if number is even or odd
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.4: Check type of integer
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.5: Validate a triangle
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.6: Check divisibility by 7 and 5
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.7: Check if character is a vowel or consonant
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.8: Check if you can sit in exam?
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.9: Check if you can sit in exam (extended)?
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.10: Who spent more money?
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.11: Find type of triangle
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.12: Check if year is a leap year
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.13: Find largest number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.14: Design arithmetic calculator
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.15: Calculate the grade of a student
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.16: Find gross salary
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.17: Generate shopping bill
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 2.18: Generate shopping bill during sale
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Conclusion
    • Points to remember
    • Questions
  • 3. Simple Loops
    • Introduction
    • Structure
    • Objectives
    • Program 3.1: Display '*'
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.2: Display natural numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.3: Display square of natural numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.4: Display cube of numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.5: Display multiples
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.6: Find sum and average
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.7: Find sum of sqaure
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.8: Find factorial
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.9: Find 2 raise to the power n
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.10: Find x raise to the power n
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.11: Display the multiplication table
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.12: Find sum of series 1
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.13: Find sum of series 2
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.14: Find sum of series 3
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.15: Find sum of n elements
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 3.16: Display Fibonacci series
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Conclusion
    • Points to remember
    • Questions
  • 4. Complex Loops
    • Introduction
    • Structure
    • Objectives
    • Program 4.1: Find sum and check if even
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.2: Display odd numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
      • C code explanation
    • Program 4.3: Count number of even numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.4: Find sum of even numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.5: Find sum of numbers divisble by 9
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.6: Difference of sum of even and odd numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.7: Display list of divisor
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.8: Find max 1
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.9: Find max 2
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.10: Count number of consonants
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.11: Check if a number is prime
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.12: Find LCM
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.13: Find HCF
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.14: Search a number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.15: Handling list/ arrays
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.16: Frequency of occurrence of elements
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.17: Find length of a string
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.18: Check if string is a palindrome
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.19: Display even indexed characters
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 4.20: Concatenate two strings
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Conclusion
    • Points to remember
    • Questions
  • 5. Complex Problem Solving
    • Introduction
    • Structure
    • Objectives
    • Program 5.1: Find sum of digits of a number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.2: Reverse the number
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.3: Find all Armstrong numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.4: Find n based on a condition
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.5: Obtain list having prime numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.6: Remove duplicate items
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.7: Sort the numbers
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.8: Print matrix
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.9: Add two matrics
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.10: Check if matrix is upper triangular
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.11: Check if matrix is symmetric
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.12: Print 2-D pattern 1
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.13: Print 2-D pattern 2
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.14: Print 2-D pattern 3
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.15: Print 2-D pattern 4
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.16: Print 2-D pattern 5
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.17: Print 2-D pattern 6
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.18: Print 2-D pattern 7
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.19: Print 2-D pattern 8
      • Sample input output
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 5.20: Print 2-D pattern 9
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Conclusion
    • Points to remember
    • Questions
  • 6. Real World Problems
    • Introduction
    • Structure
    • Objectives
    • Program 6.1: Optimize book storage
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.2: Identify living creatures
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.3: Identify objects
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.4: Rock-paper-scissors
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.5: Print hotel bill
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.6: Find fewest denominations
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.7: Assign class rank
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.8: Minimize the difference
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.9: Convert decimals to different bases
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Program 6.10: Password validation and encryption
      • Sample input output
      • Algorithm
      • Flowchart
      • Python code
        • Python code explanation
      • C code
        • C code explanation
    • Conclusion
    • Points to remember
    • Questions
  • Index
User Reviews
Rating