Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera Project Network

Java Decision Programming

Coursera Project Network via Coursera

Overview

In Java, as in other programming languages, a decision construct is used to control the sequence of instructions that are executed under certain conditions. It allows the programmer the power to take certain actions based on various input conditions. In this project you will create an application that yields a zodiac sign based on an input of birth month and day. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Syllabus

  • Java Decision Programming
    • The process of making decisions is fundamental in programming, just as it is in real life. A pre-existing condition is evaluated, and a decision is made based on the evaluation. For example, if it is cold outside, a person chooses to wear a coat. If a temperature sensor exceeds a certain threshold, the furnace turns off. In Java, as in other programming languages, a decision construct is used to control the sequence of instructions that are executed under certain conditions. It allows the programmer the power to take certain action based on various input conditions. For example, a grading program will need to assign a certain grade based on a test score. The if construct is designed to execute code sequences when some condition is true. The corresponding else construct is designed to execute when the if condition is false. Another decision called a switch construct is used when the condition variable is of a certain integral value, which could be of type long, int, byte, or char. In this project you will create an application that yields a zodiac sign based on an input of birth month and day.

Taught by

David Dalsveen

Reviews

4.8 rating at Coursera based on 32 ratings

Start your review of Java Decision Programming

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.