Programming Fundamentals week 3 assignment

profileemmy22
discussion.txt

Alternate Coding Mechanisms Chapter 12 shows various ways in which some structures can be coded differently: Prefix and Postfix modes, embedded assignments, conditional operator expressions, short-circuit evaluations, break statements, and enumerated types. Write a syntactically correct Java code that include at least 2 of these previously mentioned techniques. Do not copy the examples from the textbook or other sources. Come up with examples of your own. Once again, you may use dashes (‘-‘) instead of tabs or blank spaces to indent your code properly in the discussion thread, as shown in the following example: public class HelloWorld { ----public static void main (String[ ] args) { --------System.out.println(“Hello World”); ----} } In your posting you must also attach a screenshot of your running program to see that it compiles and works.