0% found this document useful (0 votes)
22 views8 pages

Java Programming Methodologies Guide

Uploaded by

levattcuh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views8 pages

Java Programming Methodologies Guide

Uploaded by

levattcuh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

CCE 102L

Week 1
Programming Methodologies
- It is important to understand that in order to come up with a good program that meets
the requirements of the user, the Problem-Analysis-Coding-Execution cycle should be
adopted. The programmer should use the algorithm and the flowchart to help him.
 Algorithm: a step-by-step problem-solving process in which a solution is arrived at in a finite
amount of time
 Flowchart : a graphical form of problem-solving process.
A problem-solving process involves the following steps:
 Analyze the problem and outline the problem and its solution requirements
 Design an algorithm to solve the problem
 Implement the algorithm in a programming language, such as Java
 Verify that the algorithm works
 Maintain the program by using and improving it and modifying it if the problem domain changes
Programming Methodology
A Java virtual machine is a virtual machine that enables a
computer to run Java programs as well as programs
written in other languages that are also compiled to Java
bytecode.

Bytecode in Java is a set of instructions for the Java


Virtual Machine. Java Virtual Machine, abbreviated as
JVM, enables a computer to run code written in Java.
When a Java program is compiled, the bytecode gets
generated.

The Java Class Loader, part of the Java Runtime


Environment, dynamically loads Java classes into the
Java Virtual Machine

An Interpreter converts the code into machine code when


the program is run
Flowcharting and
Algorithm

• Flowchart is a graphical
representation of an algorithm.
Programmers often use it as a
program-planning tool to solve
a problem. It makes use of
symbols which are connected
among them to indicate the
flow of information and
processing.
The process of drawing a
flowchart for an algorithm is
known as “flowcharting”.
Three Control Check the example below showing the
algorithm and it’s equivalent flowchart for
Structure of a SEQUENCE Structure.
Program

1. Sequence - Straight
forward, which means that
the statements in a code are
executed one after another in
the order as it is written in
algorithm or in the source
code.
Three Control Structure of a Program
Page Connectors
Activity 1
Scenario
In the CCE101L class the Instructor discussed about the Power Triangle. Caloy, a student is tasked to calculate
the Current given the value of voltage and power.

Requirements:
1. Create an algorithm
2. Create a flowchart
3. Create a program called w1a1lastname

You might also like