1 / 15

Programming 1

Programming 1. Topic 1 Introduction to Programming. Objectives. Define the terminology used in programming Explain the tasks performed by a programmer Describe the qualities of a good programmer Understand the employment opportunities for programmers and software engineers

jake
Download Presentation

Programming 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming 1 Topic 1 Introduction to Programming

  2. Objectives • Define the terminology used in programming • Explain the tasks performed by a programmer • Describe the qualities of a good programmer • Understand the employment opportunities for programmers and software engineers • Become aware of structured design

  3. Programming a Computer • Programs are the directions given to computers • Programmers are the people who write computer programs • Programming Languages enable programmers to communicate with the computer • Popular languages: C++, Visual Basic, C#, Java

  4. The Programmer’s Job • Programmers help solve computer problems • Employee or freelance • Typical steps involved • Meet with user to determine problem • Convert the problem into a program • Test the program • Provide user manual

  5. Do I Have What It Takes to Be a Programmer? • Qualities employers look for • Logical and analytical thinking • Close attention to detail • Patience and persistence • Ingenuity and creativity • Good communication skills: technical and nontechnical • Business skills (for managerial positions)

  6. Employment Opportunities • Computer software engineers: designs an appropriate solution to a user’s problem • Computer programmer: codes a computer solution • Coding is the process of translating a computer solution into a language a computer can understand • Some positions call for both engineering and programming

  7. Problem Solving • People solve hundreds of simple problems every day without thinking about how they do it • Understanding the thought process involved can help in solving more complex problems • You can also use a similar process to design a computer solution to a problem (computer program)

  8. Flowcharting

  9. Flowcharting

  10. Flowchart Example

  11. Structured Programming • Structured design • Dividing a problem into smaller subproblems • Structured programming • Implementing a structured design • The structured design approach is also called: • Top-down (or bottom-up) design • Stepwise refinement • Modular design

  12. Implementation #include <iostream> using namespace std; int main() { const float KM_PER_MILE = 1.609; float miles, kms; cout << “Enter the distance in miles: “; cin >> miles; kms = KM_PER_MILE * miles; cout << “The distance in kilometers is “ << kms << endl; return 0; }

  13. Testing, Execution, Debugging Common error sources • Violations of grammar rules of the high level language • Errors that occur during execution • Errors in the design of the algorithm

  14. Summary • Programs are step-by-step instructions that tell a computer how to perform a task • Structured design • Problem is divided into smaller subproblems • Each subproblem is solved • Combine solutions to all subproblems

  15. Bibliography • Zak, D. (2011). An Introduction to Programming with C++, 6th ed. Course Technology, Massachusetts. • Bronson, G.J. (2006). A First Book of C++: From Here To There, 3rd ed. Course Technology, Massachusetts. • Malik, D.S. (2009). Introduction to C++ Programming, Brief International ed. Course Technology, Massachusetts. • Friedman, F.L. & Koffman, E.B (2011). Problem Solving, Abstraction, and Design Using C++. 6th ed. Pearson Education, Massachusetts. • Adams, J. & Nyhoff, L. (2003). C++ An Introduction to Computing. 3rd ed. Pearson Education, New Jersey.

More Related