(Week 01) Problem Solving in Programming
(Week 01) Problem Solving in Programming
Fundamentals of Programming
Semester 1 2015/2016
Chapter 1
Problem Solving in Programming
Contents
Introduction
Java
Problem Solving
Pseudocode
Flow Chart
Sample Java Program
Introduction
A computer can be define as an electronic machine,
operating under the control of instructions stored in its
own memory, that can accept data, manipulate that data
and produce results that can be stored for future use.
These set of instructions is called program.
A program contains a large number of operations and a
computer must be programmed to perform different
tasks.
A programming language can be divided into machine
language, assembly language and high level
language.
Introduction
Machine Language
It is the natural language of a particular computer.
javac filename.java
java filename
Selection Structure
Flow Chart
Repetition Structure
Flow Chart
Sample Java Program
public class FirstProgram
{
public static void main(String[] args)
{
System.out.println("Welcome to Java!");
}
}