Programming Concepts [Please switch off your phone] Programming Languages Earliest form of computer language In 1822, Charles Babbage designed a difference engine . The engine could be made to complete tasks only by changing the gears that executed the calculations.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
[Please switch off your phone]
Demonstration for the Difference Engine I
Created by Charles Babbage's son, Henry Babbage
Examples of program codes in C and Pascal
Microsoft Visual Studio
Microsoft Visual Basic
circle.obj, square.obj, etc.
Debugging and Testing
DocumentationProblem Solving Concepts
Problem Solving Procedures:
Identify what the problem actually is.
Break down the problem into subproblems.
Design the step-by-step procedures of solving a problem.
Implement the algorithm as a computer program.
Find out and remove all possible errors in the solution.
Prepare documents that describe the solution.
Example: Check whether a student passes a subject, based on the rule:
The final mark (exam + test, weighed 70% and 30%) should be at least 40.
What is the problem?
What do we need to solve?
What should the program provide?
Does any constraint affect the solution of the problem?
Design an algorithm that generates 100 random numbers (0-99999) and outputs 5 largest values among them.
Process / Assignment
Input / Output
Status = "Pass"
Status = "Fail"Problem Solving Procedures
FinalScore = TestScore x 0.3 + ExamScore x 0.7
Flowchart Exercise 1:
The following flowchart contains a loop.
Study it and explain what it does.
i = 1
i = i+1
Eg. Week 10 Lect Ex (Q2)
(1) Finish the onclick handler
(2) Finish showPrimeNumbers(start,end)
(3) Finish isPrime(n)
Eg. makeDotHtml => makeLineHtml => makeHouseHtml