259201 Computer Programming for Engineers Week 7 Basic Programming.

download 259201 Computer Programming for Engineers Week 7 Basic Programming.

of 15

  • date post

    25-Dec-2015
  • Category

    Documents

  • view

    212
  • download

    0

Embed Size (px)

Transcript of 259201 Computer Programming for Engineers Week 7 Basic Programming.

  • Slide 1
  • 259201 Computer Programming for Engineers Week 7 Basic Programming
  • Slide 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
  • Slide 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.
  • Slide 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).
  • Slide 5
  • Basic SDLC Requirem ent Analysis Desi gn Develop ment Test ing
  • Slide 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
  • Slide 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
  • Slide 8
  • Question #1-1 Develop the grading system which: Run for 5 rounds Accept one input [score] per round
  • Slide 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
  • Slide 10
  • Question #1-2 Develop the grading system which: Run for n rounds Accept one input [round] Accept one input [score] per round
  • Slide 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
  • Slide 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
  • Slide 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
  • Slide 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
  • Slide 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