Full Transcript

Business Information Management Dr. Michael P. O’Brien Module: MI4007 Week 4 (Lecture 1 of 2) 1 Making the Machine Dance Computer software, or simply software, is a part of a computer system that consists of data or computer instructions, in contrast t...

Business Information Management Dr. Michael P. O’Brien Module: MI4007 Week 4 (Lecture 1 of 2) 1 Making the Machine Dance Computer software, or simply software, is a part of a computer system that consists of data or computer instructions, in contrast to the physical hardware from which the system is built. In computer science and software engineering, computer software is all information processed by computer systems, programs and data. Computer software includes computer programs, libraries and related non-executable data, such as online documentation or digital media. Computer hardware and software require each other and neither can be realistically used on its own. The majority of software is written in high-level programming languages that are easier and more efficient for programmers to use because they are closer than machine languages to natural languages. 2 Levels of Abstraction Algorithms Level of Abstraction Translated to High Level Programming Language Translated to Low Level Programming Language (Machine Code) 3 Algorithms Algorithm: A set of step-by-step procedures for accomplishing a task Algorithm to print numbers 1 to 10 Algorithm to add any two numbers Begin Begin n=1 Print “Value of X” sum = 0 Input X While n B) AND (A > C) write A else if (B > A) AND ( B > C) write B else if (C > A) AND (C > B ) write C End 5 Programming Languages Computers don’t understand “language”, so we need to use a programming language, which “is an artificial language designed to communicate instructions to a machine, particularly a computer.” Clear syntax Precise definition of what to do 6 https://coderdojo.com/ 7 High-Level Languages Visual Basic to print 1 to 10 For x = 1 to 10 Print x Next For (x=1;x

Use Quizgecko on...
Browser
Browser