Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The intent is to get you to think about programming at a deeper level. First and foremost, functionality! Yes, your program has to work. But

The intent is to get you to think about programming at a deeper level. First and foremost, functionality! Yes, your program has to work. But how a program is written depends on other factors as well:

- readability

- personal preference

- performance

- legacy (how others wrote it in the past!)

- coding guidelines to name a few.

For example, there are many different ways to write your selection statements in Java or any high level language for that matter.

- if

-else

- multiple if

- nested if

- switch

- conditional expression or ternary operator (? and :)

Please read this forum on line of if/else vs switch (Hotly debated!). https://softwareengineering.stackexchange.com/questions/154500/how-is-a-switch-statement-better-than-a-series-of-if-statements Links to an external site. If you want, you are also free to do your own research online to help you answer the question below. Then answer the following questions! 1. Which of the selection statements do you like? Which of the selection statements do you find it hard to learn/grasp? Why? 2. What is one takeaway from the forum listed above?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

How can you defend against SQL injection attacks?

Answered: 1 week ago