Skip to content Skip to navigation

OpenStax_CNX

You are here: Home » Content » Java Programming (Objects and Classes, Control Structures, Arrays)

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
 

Java Programming (Objects and Classes, Control Structures, Arrays)

Module by: Vincent Chung. E-mail the author

Summary: Algorithm, Pseudocode, Flow Chart

Syllabus: Java Programming (Objects and Classes, Control Structures, Arrays)

Exercise 1

Define the terms “algorithm”, “program” and “pseudocode”. Explain the differences and the relationship among these three concepts.

Exercise 2

Explain the three basic constructs of algorithm in Java Programming context: Sequence, Selection and Iteration with one example each.

Exercise 3

Design an algorithm by using both the pseudocode and flowchart to find the smallest number in an (unsorted) list of numbers.

Example 1

Design an algorithm and draw the flow chart for the following:

Algorithm

student register a Bachelor Degree through online portal

student make the payment via online payment

student read the course material/learning content

student attend the classes

if the student not understand topic then discuss with Instructor in LMS

if the question too long then send via email

complete the assessment

send the assessment via online assessment system

repeat step 3 until 8

attend the final examination

get the grade

Flow Chart

`

Figure 1: Flow Chart describing Online Registration, Learning and Assessments.
Flow Chart
Flow Chart

Content actions

Download module as:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks