L1-L2 Introduction To Computing
L1-L2 Introduction To Computing
Objectives
To learn and appreciate the following concepts
For e.g.,
Consider a Scenario - Infosys Mysore campus has a library. The librarian issues book
only to Infosys employees.
o Description of reality: There is a library in Infosys Mysore campus. There is a
librarian in the library
o Constraints: Librarian issues book only to Infosys employees.
o Questions about the scenario:
o How many books are there in the library?
o How many books can be issued to an employee?
o Does the librarian issue book to himself? etc.
• The process part (e.g., summation) of the solution requires logic (How to
sum) or in other words based on the logic, process is developed.
Logic 1- divide the number by all the numbers starting from 2 to one less
than the number and if for all the division operations, the reminder is non
zero, the number is prime. Else the number is not prime.
Logic 2 – same as logic 1 but divide the number from 2 to number/2
Logic 3 - same as logic 1 but divide the number from 2 to square root of
the number
➢An ordered sequence of storage cells, each capable of holding a piece of information
➢The information held can be input data, computed values, or your program
instructions.
➢Low speed