ENGINEERING PROGRAMMING

Similar documents
AE Computer Programming for Aerospace Engineers

B. Subject-specific skills B1. Problem solving skills: Supply the student with the ability to solve different problems related to the topics

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

CSE111 Introduction to Computer Applications

PESIT-BSC Department of Science & Humanities

KOMAR UNIVERSITY OF SCIENCE AND TECHNOLOGY (KUST)

CS 241 Data Organization. August 21, 2018

ITT Technical Institute. ET2560T Introduction to C Programming Onsite and Online Course SYLLABUS

Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY. FIRST YEAR B.Sc. COMPUTER SCIENCE SEMESTER I

G. PULLAIAH COLLEGE OF ENGINEERING AND TECHNOLOGY Pasupula, Nandikotkur Road, Kurnool

Computer Science Technology Department

Kadi Sarva Vishwavidyalaya, Gandhinagar

CMPE 152 Compiler Design

CS/SE 153 Concepts of Compiler Design

CMPE 152 Compiler Design

CHOICE BASED CREDIT SYSTEM (With effect from )

CMPE 152 Compiler Design

Philadelphia University Faculty of Information Technology Department of Computer Science --- Semester, 2007/2008. Course Syllabus

City University of Hong Kong. Course Syllabus. offered by Department of Information Systems with effect from Semester A 2017 / 2018

Principles of computer programming. Profesor : doc. dr Marko Tanasković Assistent : doc. dr Marko Tanasković

Programmers Life made easy through Smart Source Code Generator

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving)

THE C PROGRAMMING LANGUAGE BY KERNIGHAN AND RITCHIE PDF

Computer Networks IT321

Introduction to C An overview of the programming language C, syntax, data types and input/output

San José State University Computer Science Department CS49J, Section 3, Programming in Java, Fall 2015

Welcome. Orientation to online CPS102 Computer Science 2 (Java 2)

CIS* Programming

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions

Course Name: Computer Vision Course Code: IT444

Unit 1: Introduction to Programming. Saurabh Khatri Lecturer Department of Computer Technology VIT, Pune

Computer Science (Informática)

Topic 1: Programming concepts

Software Reliability and Reusability CS614

COMP3221: Microprocessors and. Embedded Systems

City University of Hong Kong. Course Syllabus. offered by Department of Computer Science with effect from Semester B 2016/17

Syllabus of ENPM 691: Secure Programming in C

CS 241 Data Organization using C

Advanced Database Organization INF613

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

CS/SE 153 Concepts of Compiler Design

CS11001/CS11002 Programming and Data Structures Autumn/Spring Semesters. Introduction

San José State University Department of Computer Science CS049J, Programming in Java, Section 2, Fall, 2016

SYLLABUS. 1. Information regarding the programme 1.1 Higher education Babeş-Bolyai University of Cluj-Napoca

Course Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3

Programming (ERIM) Lecture 1: Introduction to programming paradigms and typing systems. Tommi Tervonen

C & Data Structures syllabus

This course includes 14 lessons and 5 Course Activities. Each lesson contains one or more Lesson Activities. The lessons cover the following topics:

CMPE/SE 135 Object-Oriented Analysis and Design

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, Pilani Pilani Campus Instruction Division. SECOND SEMESTER Course Handout Part II

COP 1220 Introduction to Programming in C++ Course Justification

Maharashtra State Board of Technical Education (MSBTE) 'I' Scheme VI Semester Course Curriculum

CNG 140 C Programming. Syllabus. Course Info Fall Semester. Catalog Description

Compulsory course in Computer Science

ENT 189: COMPUTER PROGRAMMING. H/P: Home page:

Academic Course Description. VL2003 Digital Processing Structures for VLSI First Semester, (Odd semester)

CS133 C Programming. Instructor: Jialiang Lu Office: Information Center 703

CA Compiler Construction

University of Engineering and Technology, Taxila Department of Civil Engineering

The University of Jordan. Accreditation & Quality Assurance Center. COURSE Syllabus

ITT Technical Institute. TB143 Introduction to Personal Computers Onsite and Online Course SYLLABUS

ITT Technical Institute. IT217P Programming in C++ II Onsite Course SYLLABUS

In this course, you need to use Pearson etext. Go to "Pearson etext and Video Notes".

Philadelphia University FACULTY OF ADMINISTRATIVE & FINANCIAL SCIENCES Department of Accounting 0000 Semester

Academic Course Description

Scientific Computing: Lecture 1

C PROGRAMMING THE C PROGRAMMING THE PDF C PROGRAMMING TUTORIAL IN PDF - CURRENT AFFAIRS 2018 C (PROGRAMMING LANGUAGE) - WIKIPEDIA

DEPARTMENT OF COMPUTER AND MATHEMATICAL SCIENCES UNIVERSITI TEKNOLOGI MARA CAWANGAN PULAU PINANG

Online Course Evaluation System Faculty User Guide

Introduction to Computer Systems

CVEN 302. Computer Applications in Engineering and Construction. Dr. Tony Cahill Environmental and Water Resources Division

Updated: 2/14/2017 Page 1 of 6

Fundamentals of Programming & Procedural Programming

City University of Hong Kong. Course Syllabus. offered by Department of Computer Science with effect from Semester A 2017/18

BRAZOSPORT COLLEGE LAKE JACKSON, TEXAS SYLLABUS COSC 1320: INTRODUCTION TO C++ PROGRAMMING COMPUTER TECHNOLOGY & OFFICE ADMINISTRATION DEPARTMENT

ECE573 Introduction to Compilers & Translators

Engineering program development 7. Edited by Péter Vass

Compilers for Modern Architectures Course Syllabus, Spring 2015

FOUR STEPS TO TEACHING C PROGRAMMING

University of Asia Pacific (UAP) Department of Computer Science and Engineering (CSE)

EE3315 Internet Technology EE3315 Internet Technology Overview Slide 1

The C Programming Language By Brian W. Kernighan;Dennis M. Ritchie

CIS 120. Introduction to Programming

JEFFERSON COLLEGE COURSE SYLLABUS CIS155 INTRODUCTION TO COMPUTER PROGRAMMING. 3 Credit Hours. Prepared by: David McNair

CS120 Computer Science I. Instructor: Jia Song

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI PILANI CAMPUS Instruction Division

Academic Course Description. EM2101 Computer Architecture

School of Computer Science

San José State University Department of Computer Science CS 166 / SE 166, Information Security, Section 4, spring, 2017

CPSC 4600 Biometrics and Cryptography Fall 2013, Section 0

CSc 2310 Principles of Programming (Java) Jyoti Islam

Algorithms, Data Structures, and Problem Solving

ECE 3574: Applied Software Design

EECE.2160: ECE Application Programming Spring 2017

Introduction to C Language

In this course, you need to use Pearson etext. Go to "Pearson etext and Video Notes".

SYLLABUS / FIȘA DISCIPLINEI

JOHNSON COUNTY COMMUNITY COLLEGE COURSE SYLLABUS WEB CRN Web Scripting: JavaScript I

Transcription:

ENGINEERING PROGRAMMING MS in Earth Science Engineering Semester 1, 2018/19 COURSE COMMUNICATION FOLDER University of Miskolc Faculty of Earth Science and Engineering Institute of Geophysics and Geoinformatics

Course datasheet Course Title: Engineering programming Instructors: Péter Tamás Vass Dr., associate professor Code: Responsible department/institute: Institute of Geophysics and Geoinformatics / Department of Geophysics Type of course: Optional Position in curriculum (which semester): 3 Pre-requisites (if any) - No. of contact hours per week (lecture + Type of Assessment (examination/ practical seminar): 0+2 mark / other): practical mark Credits: 2 Course: full time Course Description: The main objective of the subject is to familiarize the students with the elements of programming necessary to solve engineering and scientific problems. The course tries to transmit the knowledge by means of which the algorithms of simpler problems can be constructed and the algorithms can be implemented in the form of computer programs. The short curriculum of the subject: Introduction. Some basic concepts and definitions. The elements, design and descriptions of algorithms. Main features of programming languages. Fundamental steps of program development. Making the source codes of simpler problems in C language. Compiling the source codes and executing as well as testing the programs. Short history and main features of C programming language. Lexical elements of C programming language. Structure of C programs. Definition of variables in C programs. Use of constants in C programs. Control structures. Pointers and their application. Dynamic memory allocation in C programs. Arrays and their application. Standard library functions. User-defined functions. Text file input and output. Introduction to the use of higher level programming languages (MATLAB and GNU Octave). Competencies to evolve: Knowledge: T4, T5, T6, T7, T10, T12 Ability: K1, K2, K3, K4, K5, K13 Attitude: A1 Autonomy and responsibility: Assessment and grading: Conditions for obtaining the signature: the presence in at least 70 % of the lessons and passing two classroom tests. The determination of the practical mark is based on the evaluation of problem solving in the lessons and the results of two classroom tests. The weights of the partial achievements: problem solving in the lessons = 20%, results of the two tests = 40% + 40%. Grading scale (% value grade): 0 49 % 1 (fail), 50 64 % 2 (pass), 65 79 % 3 (satisfactory), 80 89 % 4 (good), 90 100 % 5 (excellent). Compulsory or recommended literature resources: The presented slides converted in pdf format: http://geofizika.uni-miskolc.hu/segedlet.html Brian W. Kernigham Dennis M. Ritchie: C Programming Language, 2nd Edition, Prentice-Hall Inc., ISBN-10: 0131103628 Clovis L. Tondo, Scott E. Gimpel, 1989: The C Answer Book, Second Edition, Prentice-Hall International, Inc., ISBN: 7-302-02728-5 John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring: GNU Octave, A high-level interactive language for numerical computations, Edition 4 for Octave version 4.0.3 July 2016 MATLAB numerical computing, Tutorials Point (I) Pvt. Ltd., 2014: www.tutorialspoint.com

Syllabus of the semester Week 1 2 3 4 5 6 Seminar Introduction. Some basic concepts and definitions: computer program, software, algorithms, constants, variables, attributes of the variables. Elements of the algorithms: read, write, assignment, conditional branch, loop. The ways of expressing algorithms: natural languages, pseudocodes, flowchart. Designing and expressing algorithms. Introduction to the use of a free flowchart editor. Doing exercises. General characteristics of high-level programming languages. Semantics, syntax, compiler and interpreter. The fundamental steps of program development. A short history of C programming language and its general characteristics. Introduction to the use of a free C and C++ program development environment. Writing the source codes of simpler algorithms in C language. Compiling and testing the implemented C programs. Lexical elements of C programming language. identifiers, keywords, constants, comments, operators (precedence and associativity), punctuators. Structure of C programs. Data types in C programming language. Defining the variables in C programs. The use of constants. Control structures: conditional branches (if, if else, if else if else, switch case), loops (the pre-test loop while, the post-test loop do while, the for-loop. Special control statements: break, continue, return. 7 The first classroom test on the topics of algorithms and writing simpler C programs. 8 Pointers and their application. Dynamic memory allocation in C programs by means of a pointer. 9 Arrays and their application. Strings and character arrays. Multi-dimensional arrays. 10 11 12 Standard library functions. User-defined functions. Definition, declaration and function call. Text file input and output in C language. Defining a file pointer. Opening a text file. Writing, reading and closing a text file.. Introduction to the application of higher level programming languages. The programming environments of Matlab and GNU Octave. Data types and formats. The execution of some important commands. Creating and running scripts in Matlab and GNU Octave. 13 The second classroom test on the topics of C programming.

14 Built-in functions in Matlab and GNU Octave. Operations with vectors and matrices. Assignment expressions. Control statements. Defining and calling user-defined functions. Plotting graphs..

Sample for the classroom test with the answers Engineering programming test date Task 1 Create a C program which asks the user to type a natural number, computes the factorial of the number, and displays the result on the monitor. A computer can be used for implementing the program. Write down the source code of the program below the flowchart. (max. points: 6) The flowchart of the algorithm which helps in solving the problem is presented here. Task 2 Create a C program which asks the user to type two real numbers, compares them, and determines whether the first number is greater or less than the second one or the two numbers are equal. It also displays the result of the comparison on the monitor. A computer can be used for implementing the program. Write down the source code of the program below the flowchart. (max. points: 8) The flowchart of the algorithm which helps in solving the problem is presented here.

Sample answer for Task 1 #include <stdio.h> main(){ int N, i, fact; printf("the program asks for a natural number, and computes its factorial.\n"); printf("please type the number: "); scanf("%d",&n); fact=1; if (N==0) printf("the factorial of the number: %d", fact); else if (N<0) printf("the entered number is not a natural number."); else{ for (i=1; i<=n; i++) fact=fact*i; printf("the factorial of the number: %d", fact); } } #include <stdio.h> main(){ float x, y; Sample answer for Task 2 printf("the program asks for two real numbers, and compares them.\n"); printf("please type the first number: x= "); scanf("%f",&x); printf("please type the second number: y= "); scanf("%f",&y); if (x>y) printf("x is greater than y"); else if (x<y) printf("x is less than y"); else printf("x is equal to y"); }

Evaluation of the answer for Task 1 Including the necessary header files, the definition of main function and the necessary variables Data input and variable incialization Correct application of the control structures Evaluation of the answer for Task 2 Including the necessary header files, the definition of main function and the necessary variables Data input Correct application of the control structures 3 points Displaying the result 1 point Grading scale range mark ---------------------------------------------------- < 6 ponts fail (1) 6 ponts and < 9 ponts pass (2) 9 ponts and < 11 ponts satisfactory (3) 11 ponts and < 13 ponts good (4) 13 ponts excellent (5)