Presentation is loading. Please wait.

Presentation is loading. Please wait.

259201 Computer Programming for Engineers Week 7 Basic Programming.

Similar presentations


Presentation on theme: "259201 Computer Programming for Engineers Week 7 Basic Programming."— Presentation transcript:

1 259201 Computer Programming for Engineers Week 7 Basic Programming

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

3 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.

4 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).

5 Basic SDLC Requirem ent Analysis Desi gn Develop ment Test ing

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

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

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

9 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

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

11 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

12 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

13 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

14 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

15 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


Download ppt "259201 Computer Programming for Engineers Week 7 Basic Programming."

Similar presentations


Ads by Google