Object-Oriented Programming with Java, part I – Exercise 59

This program asks the user for multiple words and then prints them out in reverse order when an empty string has been inserted. My Code Model Code Comments I am obviously out of practice. Although my code works fine the model code uses the condition true for the while loop and then an if statement …

Read moreObject-Oriented Programming with Java, part I – Exercise 59

Algorithms – Chapter 4

Introduction Mathematical intuition The logic of everyday life. (Common sense) It is easy to see that some human problems cannot be solved by mathematics. For example compare involvement and its counterpart,“If it rains, I take my umbrella.”“If I don’t take my umbrella, it doesn’t rain”Or the argued conjunction,“I don’t take my umbrella, so it doesn’t …

Read moreAlgorithms – Chapter 4

Algorithms – Chapter 3

The conditions A program does not always run sequentially. Normally it makes a decision at some point to execute only part of itself. Programming languages provide instructions on how to make these choices. Among these instructions we have conditional instructions. Conditional instruction (simple) Alternative (conditional) instruction Flowcharts were one of the important tools for writing …

Read moreAlgorithms – Chapter 3