You are on page 1of 12

VISUAL

PROGRAMMING
Dr. Esam Mohammed Aloufi
What is Programming?

A program is simply a list of unambiguous instructions meant to be followed


mechanically by a computer.
Why Java?

- Is standard programming language for most enterprise software development.


- is ideally suited to large teams.
- Has strong community.
- Has alot of jobs.
Review MIS356
Primitive Data Types

Integer Floating Point Character True/False

byte float char boolean


short double
int
long
Operators
● Simple assignment operator

○ = Simple assignment operator.


● Arithmetic operators
○ + Additive operator (also used for String concatenation).

○ – Subtraction operator.
○ * Multiplication operator.
○ / Division operator.
○ % Remainder operator.
Operators
● Unary operators
○ + Unary plus operator; indicates positive.
○ – Unary minus operator; negates an expression (+(−2)) = −2
○ ++ Increment operator; increments a value by 1.
○ -- Decrement operator; decrements a value by 1.
○ ! Logical complement operator; inverts of a boolean.
● Equality and relational operators
○ == Equal to.
○ != Not equal to.
○ > Greater than.
○ >= Greater than or equal to.
○ < Less than.
○ <= Less than or equal to.
Operators
● Conditional operators
○ && Conditional-AND.
○ || Conditional-OR.
○ ?: Ternary (shorthand for if-then-else statement).
if else Statement
for Loop
class assignment

Write a program to print numbers from 1 to 10.??


THANKS

You might also like