Explore BrainMass

Explore BrainMass

    Control Structures

    Control structures are a primary concept in high-level programming languages. Essentially, it is a block is code. Control structures block in the code which dictates the flow of the program. In other words, a control structure is a container for a series of function calls, instructions and statements.

    A simple example of a control structure is as followed: if "x" then "y" else "z". These statements will be included or excluded based on the condition of "x". This notion of "if then" makes up the majority of software applications.  

    The most common control structures are "gotos", "subroutines", "for loops", "do while loops", "if then" and "try catch finally". The names of these controls can change between languages but generally these concepts are universal across all imperative programming languages.

    Programmers reading code need to be able to identify these control structures. Formatting them in a structured way allows them to be identifiable and distinct from each other. The coding standard constructs the control structures by combining a series of style rules; these rules center on indentation and line breaks throughout the code. 

    © BrainMass Inc. brainmass.com January 27, 2023, 11:36 pm ad1c9bdddf

    BrainMass Solutions Available for Instant Download

    The Loop Control Structure in the C# Language.

    This is a program that I am working on. It is supposed to simulate the roll of a pair of dice 100 times, then write the results to a file. Once the file is written, the user clicks the read file button to read the file. I have the write file/roll dice button working. I have the read file working, it displays the results in a tex

    Counter-Controlled while loop

    Need help trying to figure out counter controlled while loop. I need to write a counter-controlled while loop that uses the loop control variable to take on the values 0 and 10. How do I initialize the loop control variable before the program enters the loop? In the boy of the loop, I need to multiply the value of the loop co

    Internet Structure

    Q1 What is the relationship between the Internet backbone, a network access point, and a network service provider? Q2 Compare and contrast peer-to-peer networking with client/server networking The book I am using as a reference is: Management Information Systems (for the Information Age) Stephen Haag & Maeve Cummin

    How to setup business rules in the database layer using DCL

    A growing business's owners have identified only 2 perspective end-user roles for this project. Following an interview, you have assembled the following business rules: Function Clerk Store Manager 1. View inventory item master Yes Yes 2. Add, edit, delete inventory item master No Yes 3. Add, edit, delete inventory transac

    Change control

    What are two suggestions for ensuring an adequate change control on projects that involve outside contracts?

    Public-Sector Organizations and Organizational Structure

    There is generally a preference for tall, rather than flat, organizational structures in large public sector organizations. Unfortunately, this often results in bloated and generally less efficient operations. However, is it possible that in many countries, taller organizational structures are preferred because they allow mor

    Project Management

    Can you help me with the following? * Who approves and reject changes to the scope of the project? * Who approves and reject resources. * Should the project manager have full authority to change control? * What type of system should be in place to manage change request and why you are choosing this technique?

    Contemporary Organizations

    Contemporary organizations should be supportive of widening the span of control, flattening the structure, and forming collaborative and flexible teams. Are you aware of the characteristics of your company (or a company you know well) that contradicts these attributes? In what way? What would you recommend as a method of chan

    Telecommuting to Job

    1. Would you like to telecommute to your next job? Why or why not? 2. What are some of the "Old Thinking" concerns about telecommuting? Which ones do you think are valid? 3. Can you think of some disadvantages to telecommuting? What jobs would not be suitable for telecommuting?

    Computer Science: Creating a Visual Studio 2008 ASP. NET Website

    Create a Visual Studio 2008 ASP .NET Web Site with one Web Form. The Web Form consists of two parts. The first part is typical ASP.NET containing a calendar server control, Label server control and button server control. Write an event handler that displays the selected date from the Calendar server control in the Text pr

    Repetitive control structures, Techniques of passing arguments

    1. Discuss various counter controlled repetitive control structures. 2. The if...else is suitable for simple program but switch...case is a better construct, which is suitable for more complex problems? Do you agree with this or not? Discuss with suitable examples. 3. We can replace any code that uses a for loop with a wh

    Creating a Visual Studio 2008 ASP .NET Web Site

    Create a Visual Studio 2008 ASP .NET Web Site with one Web Form. The Web Form consists of two parts. The first part is typical ASP .NET containing a RadioButtonList server control, Label server control and Button server control. Add three items to the Items collection of the RadioButtonList server control. Write an event hand

    Java Questions for Goto Instructions

    I need help with this question: Based on the Hou article, what is the difference between the goto instruction in Java and the Java bytecode instruction set? Explain one discussed repetition structure. Thank you

    Develop a calculator that allows addition, subtraction, multiplication, division, tangent, square, sine, cosine, and absolute value. Create numeric buttons for numbers input. Create "." and "+/-" buttons for real numbers and negative numbers input. Make the Calculate button the Accept button. Create a Clear button to clear the result text box and reset all controls. Create an Exit button. Use labels to identify the input and output controls. VB2008

    Develop a calculator that allows addition, subtraction, multiplication, division, tangent, square, sine, cosine, and absolute value. Create numeric buttons for numbers input. Create "." and "+/-" buttons for real numbers and negative numbers input. Make the Calculate button the Accept button. Create a Clear button to cl

    Catch Exception to Handle Any Errors

    Develop Try...Catch exceptions to handle any error that can be typed by the user on your Unit 2 individual project. Change the NumericUpdown controls into TextBox. Make sure that any information typed in the TextBox is handled, including but not limited to, overflow exceptions, type mismatch, and division by zero, and display th


    Need help getting screens shots of the following results of using TCP/IP utilities. To get a screen shot of the active window, hold down the Alt key and hit the Print Screen key. Then open a Word document, right click on a blank area and select Paste. Open a Command Prompt (MS-DOS Prompt) window and complete the following act

    Organization Standards of Software Development

    Discuss how standards may be used to capture organizational wisdom about effective methods of software development. Suggest several types of knowledge that might be captured in organizational standards.

    Managing an imminent disaster

    Does one manage an imminent disaster or respond to it? Or react to it? Take a tornado, for example. Is this an imminent disaster waiting to happen? Do you manage the threat, the risk, the disaster or all three?

    Design a Program that Models a Worm's Behavior

    Design a program using pseudocode that models the worm's behavior in the following scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple by its own body length until the worm is close enough to enter the apple. The worm can enter the apple when it is within a b

    Internet Slander

    Please help with the following problem involving internet slander. Provide at least 200 words in your answer. Recent news articles are talking about how the Internet is being used as a method of posting slanderous, private or simply unverified information. Often this is very harmful. How can the average person fight this? Wh

    Looping and Case Statements

    1. When using Case statements, what would happen if you did not "Break?" Please give an example and explain. 2. Where, in your everyday life, would you use all of the looping techniques, ? Pseudocode for looping structures ? Operators continued ? The while loop ? The do while loop ? The for loop ? break and co

    Can you write a C program using the sequence structure only?

    As you know, three fundamental control structure are sequence, selection and repetition. Can you write a C program using the sequence structure only? Can you avoid using selection structure? Repetition structure? What would you sacrifice in each case?

    Java Payroll Program

    Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of the employee and the weekly pay amount. In

    Programming Essentials

    1. Computer programmers often refer to memory addresses using ____ notation, or base 16. a. binary b. indirect c. mathematical d. hexadecimal 2. After a programmer plans the logic of a program, she will next ____. a. understand the problem b. test the program c. translate the program d. code the program 3. The pro

    Draw a Class Diagram for this situation

    The following situation describes a company who would like to implement an information system. The company would like to keep track of its employees, departments, and projects. Suppose that the MIS department of the company did the requirements collection and analysis phase and give you a specification report with the following

    DTD versus XML Schema

    Discuss the simplicity of the DTD compared to that of XML Schema. Has the trade-off gone too far towards complexity in trying to overcome the limitations of the DTD?

    Programming Languages - M/C & T/F

    1. The _______ of a variable is its ________. a. address; l-value b. value; r-value c. address; r-value d. value; l-value e. a and b f. c and d 2. When a variable's type is determined through default conventions, the type declaration is: a. omitted. b. implicit. c. explicit. d. required. 3. The goto statement is