0% found this document useful (0 votes)
85 views3 pages

Flow Chart to Java Programming Lab

The document provides details about a lab assignment to translate an algorithm expressed as a flow chart or pseudo code into a Java program. Students are instructed to study a provided program and create a flow chart based on it, and to rewrite another program to take input via dialog boxes instead of the console.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views3 pages

Flow Chart to Java Programming Lab

The document provides details about a lab assignment to translate an algorithm expressed as a flow chart or pseudo code into a Java program. Students are instructed to study a provided program and create a flow chart based on it, and to rewrite another program to take input via dialog boxes instead of the console.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SSK1102 2023/2024-1

UNIVERSITI PUTRA MALAYSIA


FACULTY OF HUMANITIES, MANAGEMENT AND SCIENCE

LAB 4 – Individual

LAB OBJECTIVE:
The main objective for this lab is to understand how to translate an algorithm (flow chart or
pseudo code) into Java Programming.

DURATION:
1 week / 3 hours

INTRODUCTION:

Basically before a program is written, a programmer will have an algorithm (whether in a


form of flow chart or pseudo code) to refer to. Algorithm is a guide to programmer to develop
a program, software or system.

LAB ACTIVITIES:

1. Translate flow-chart into coding Java


LAB QUESTION:

1. Study this program and create flow-chart based on this program.

Coding:

Output:
2. Rewrite the program in Listing 2.8, ComputeLoan.java, to read from input dialog
boxes rather than from the console. Figure 2.5 shows a sample run of the program.

You might also like