Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Should Programmers be able to use GO TO statements as they please? Some programming languages require that a loop only have one way in, and

Should Programmers be able to use GO TO statements as they please?

Some programming languages require that a loop only have one way in, and one way out; there are no GO TO statements. Other languages (like BASIC and FORTRAN) allow for statements to have labels, or addresses, that another statement like a GO TO can explicitly transfer control.

Discussion: What do you see as the strengths and weaknesses of each of these approaches? Would you rather work in a strongly disciplined language, that only lets you exit your loops by falling out the bottom of them when their control variable or interaction conditions say Ive had enough? Do GO TO statements appeal to you?

Additionally, what special hazards might the programmer find when starting to combine IF, CASE, or other conditional logic on top of or inside of their loops?

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago