259201 Computer Programming for Engineers Week 7 Basic Programming.

Slides:



Advertisements
Similar presentations
C Programming Technique – Firdaus-Harun.com
Advertisements

CS110 Programming Language I
Computer Science 2 Data Structures V section 2 Recitation 1.
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Basic Programming II. Outline Standard Deviation Function (SD) Complex Guessing Game.
Chapter 2- Visual Basic Schneider
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
CS150 Introduction to Computer Science 1
CS102--Object Oriented Programming Discussion 1: – Project 4 on Page 328 – The use of arrays Copyright © 2008 Xiaoyan Li.
Introduction to Computers and Programming More Loops  2000 Prentice Hall, Inc. All rights reserved. Modified for use with this course.
Chapter 2: Input, Processing, and Output
An Introduction to Programming with C++ Fifth Edition
System for Engine Location Of a Web Train Paul Wimmer and Adam Weintrop Dr. Irwin and Dr. Schertz 2/27/06.
1 9/08/06CS150 Introduction to Computer Science 1 Arithmetic Operators.
Moving To Code 3 More on the Problem-Solving Process §The final step in the problem-solving process is to evaluate and modify (if necessary) the program.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Software Engineering 1 (Chap. 1) Object-Centered Design.
CHAPTER 1 GC 101 Introduction to computers and programs.
Introduction to Problem SolvingS1.2.1 Bina © 1998 Liran & Ofir Introduction to Problem Solving Programming in C.
ISAT 252 Introduction to Arrays. Should have read 2 Chapter 8 –pp , and pp
1 Programming and Problem Solving — Software Engineering (Read Chap. 2)
Programming and Problem Solving — Software Engineering (Read Chap. 2) 1.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 8 - JavaScript: Control Structures I Outline 8.1 Introduction 8.2 Algorithms 8.3 Pseudocode 8.4.
CH Programming An introduction to programming concepts.
Week1 Architecture - Lecture outline & Assignments Dr. John Abraham UTPA.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
A First Book of ANSI C Fourth Edition
Which Language is Better?
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Repetition & Loops. One of the BIG advantages of a computer: ­It can perform tasks over and over again, without getting bored or making mistakes (assuming.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
1 INTRODUCTION TO PROBLEM SOLVING AND PROGRAMMING.
PSEUDOCODE C Programming Technique – Firdaus-Harun.com.
Value and Reference Parameters. CSCE 1062 Outline  Summary of value parameters  Summary of reference parameters  Argument/Parameter list correspondence.
1 09/20/04CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
1 Three C++ Looping Statements Chapter 7 CSIS 10A.
Even more problems.. Mean (average) I need a program that calculates the average of student test scores. I need a program that calculates the average.
CSC Programming I Lecture 6 September 4, 2002.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 18 – Student Grades Application Introducing.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
EGR 115 Introduction to Computing for Engineers Branching & Program Design – Part 1 Monday 29 Sept 2014 EGR 115 Introduction to Computing for Engineers.
The Hashemite University Computer Engineering Department
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Exercise 1 #include int main() { printf(“Hello C Programming!\n”); return 0; } 1.Run your Visual Studio 2008 or Create a new “project” and add.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
Fundamental Programming Fundamental Programming Introduction to Functions.
Computer Programming 12 Lesson 6 – Loop structure By: Dan Lunney.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CCSA 221 Programming in C CHAPTER 3 COMPILING AND RUNNING YOUR FIRST PROGRAM 1 ALHANOUF ALAMR.
JavaScript: Control Structures I Outline 1 Introduction 2 Algorithms 3 Pseudocode 4 Control Structures 5 if Selection Structure 6 if/else Selection Structure.
Looping I (while statement). CSCE 1062 Outline  Looping/repetition construct  while statement (section 5.1)
EGR 115 Introduction to Computing for Engineers
Algorithm: procedure in terms of
Unit 3: ALGORITHMS AND FLOWCHARTS
Exam 1 Review.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Introduction to Problem Solving
Java for Beginners University Greenwich Computing At School DASCO
CS150 Introduction to Computer Science 1
Let’s all Repeat Together
EPSII 59:006 Spring 2004.
CS148 Introduction to Programming II
National Chiao Tung University
Dry Run Fix it Write a program
Introduction to Algorithms - 2
Week1 Architecture - Lecture outline & Assignments
Introduction to Algorithms - 2
Presentation transcript:

Computer Programming for Engineers Week 7 Basic Programming

Outline Introduction to Software Engineering –Software development life cycle (SDLC) –SDLC VS A programming assignment, involving: –Variable declaration (int and string) –if-else-elseif –for-while

Crisis in Software Industry Needs for competitive software are increasing rapidly at the moment –More functionalities –Better performance –Higher expectation –Needs of innovative ideas –Needs of competent programmers –Smaller world –Etc.

Introduction to Software Engineering Software engineering is a systematic approach to the engineering of software. Software engineering involves development, management and other issues on the engineering of software. The process of software development is called Software Development Life Cycle (SDLC).

Basic SDLC Requirem ent Analysis Desi gn Develop ment Test ing

What we do in SDLC vs Requirem ent Analysis Desi gn Develop ment Test ing Understa nding questions & assignme nts Algorithm developm ent & Flowchart s Program ming Debug ging

Question #1 A grading system –This grading system is based on criterion referenced evaluation –The criteria are as follows: → A 70-79→ B 60-69→ C 50-59→ D 0-49→ F

Question #1-1 Develop the grading system which: –Run for 5 rounds –Accept one input [score] per round

Question #1-1 Concept Output Please enter your score: 75 Your grade is B Please enter your score: 43 Your grade is F Please enter your score: 66 Your grade is C Please enter your score: 71 Your grade is B Please enter your score: 49 Your grade is F

Question #1-2 Develop the grading system which: –Run for n rounds –Accept one input [round] –Accept one input [score] per round

Question #1-2 Concept Output Please input the number of students: 3 Please enter your score: 75 Your grade is B Please enter your score: 43 Your grade is F Please enter your score: 66 Your grade is C

Question #1-3 Develop the grading system which: –Run forever unless told to stop –Accept one input [score] per round –Accept one input [continue or not] per round

Question #1-3 Concept Output Please enter your score: 75 Your grade is B Would you like to continue? (y/n): y Please enter your score: 43 Your grade is F Would you like to continue? (y/n): y Please enter your score: 66 Your grade is C Would you like to continue? (y/n): n

Assignment Develop the grading system which: –Run forever unless 999 is input as a score –Accept one input [score] per round –Count and display the total of each grade –Calculate and display the average score –Calculate and display the average GPA of the class

Assignment Concept Output Please enter your score: 75 Your grade is B Please enter your score: 43 Your grade is F Please enter your score: 999 Program end. Calculating the scores… Total students with A: 0 Total students with B: 1 Total students with C: 0 Total students with D: 0 Total students with F: 1 Average student score: 59 Average student GPA: 1.5