Combination of letters digits dollar sign and

This preview shows page 17 - 25 out of 35 pages.

combination of letters, digits, dollar sign ($) and underscore (_) characters; cannot begin with a digit. Java is “case sensitive”. Q Q Q
Image of page 17

Subscribe to view the full document.

COMP 1210 – Fundamentals of Computing I Slide 1 - 18 Program Development There’s more to developing software than coding (a.k.a. implementation)! System Engineering Requirements Analysis Design Code Testing Maintenance Many variants of the process model Our focus in COMP 1210
Image of page 18
COMP 1210 – Fundamentals of Computing I Slide 1 - 19 Program Development (cont.) Code Writing source code that will be compiled into a program. Coding standard : Rules as to how source code should be formatted - makes code easier to read and debug. Test Once you write your program, make sure that the actual output of your program (your programs output) matches the expected output (the correct output as specified by the customer).
Image of page 19

Subscribe to view the full document.

COMP 1210 – Fundamentals of Computing I Slide 1 - 20 Program Development (cont.) Program development tools are valuable aids during the process. A good IDE (integrated development environment) with program editor, debugger, interactions, etc. will should become one of your best sw tools. jGRASP (jgrasp.org) with Java, Checkstyle, JUnit, Web-CAT Checkstyle is used with jGRASP to support the COMP 1210 coding standard.
Image of page 20
COMP 1210 – Fundamentals of Computing I Slide 1 - 21 Program Translation Compiler v. Interpreter (Java Virtual Machine) The Java translation process: Java source code (.java files) Java Compiler (javac) Bytecode (.class file) Java Interpreter JVM, JRE (java) Bytecode Compiler Machine code Fast Faster – but rarely used in practice (not used in COMP 1210)
Image of page 21

Subscribe to view the full document.

COMP 1210 – Fundamentals of Computing I Slide 1 - 22 The Implementation Cycle... Debug Edit Compile Run This cycle implies incremental program construction. Plan to repeat this cycle early and often.
Image of page 22
COMP 1210 – Fundamentals of Computing I Slide 1 - 23 Syntax and Semantics Syntax: ‘grammar’ Rules of how the vocabulary can be used to compose legal structures in the language. In the context of programs, the language syntax describes how to form legal statements and other constructs in the language. Semantics: meaning What a given legal structure in the language means. In the context of programs, the language semantics describes what will happen when a legal statement in the language is executed.
Image of page 23

Subscribe to view the full document.

COMP 1210 – Fundamentals of Computing I Slide 1 - 24 Syntax and Semantics (cont.) In natural languages, some things can be syntactically correct but have no meaning… Blue ideas sleep furiously. … or be syntactically correct but have many (possible) meanings. Time flies like an arrow. The house flies like a saucer. Did you ever see a home run? Programming languages do not allow these situations - - there is no ambiguity!
Image of page 24
Image of page 25
You've reached the end of this preview.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern