Module 1_Ch7 - Arithmetic and Relational Operators_0511_2017.pdf - MODULE 1 OBJECT-ORIENTED PROGRAM LOGIC AND DESIGN Chapter 7 Arithmetic and Relational

Module 1_Ch7 - Arithmetic and Relational Operators_0511_2017.pdf

This preview shows page 1 - 6 out of 18 pages.

Chapter 7 Arithmetic and Relational Operators 7. Arithmetic And RelationalOperators MODULE 1 OBJECT-ORIENTED PROGRAM LOGIC AND DESIGN
Image of page 1

Subscribe to view the full document.

What are Operators? 7. Arithmetic And RelationalOperators Operators are needed to transform or manipulate data Mathematical computations, comparison of two values or setting initial values of variables are made possible by using arithmetic or relational operators Operators are important in that a miscalculation, missed value or wrong comparison may compromise the integrity of a whole module or a whole program
Image of page 2
The two types of operators in this section are: Arithmetic operators Relational operators 7. Arithmetic And RelationalOperators What are Operators?
Image of page 3

Subscribe to view the full document.

An arithmetic or logical expression is formed by a combination of variables or literals and an operator Format for an arithmetic or logical expression: < operand1 > operator < operand2 > where operand1 or operand2 could be any literal or variable name 7. Arithmetic And RelationalOperators What are Operators?
Image of page 4
Arithmetic Operators 7. Arithmetic And RelationalOperators Arithmetic operators perform mathematical
Image of page 5

Subscribe to view the full document.

Image of page 6
  • Fall '17
  • Marlon naagas

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes