Explore BrainMass

Programming Languages

Intended Audience for Technical Communication

In order for technical communication to be effective, the writer must evaluate the intended audience, its characteristics, knowledge base, expectations, and requirements. Audience recognition Terms for different audience levels Issues of diversity Multiculturalism Issues of sexist language Explain how these audience char

Three Java examples that validate input

Please help with the following problem. Design an algorithm that prompts the user to enter a positive nonzero number and validates the input. Design an algorithm that prompts the user to enter "yes or "no" and validates the input. Design an algorithm that prompts the user to enter a secret word. The secret word should

Constant and Variable in a Program

1. What is a data type in C? Describe two data types and how they might be used in a C program. 2. What is the difference between a constant and a variable in a program? Why would you use one or the other?

A distributed software application case study

Should the recommendation be for each 'branch' grocery store to be connected to the 'central' grocery store software? As an example if (me) a customer purchases (say three boxes of cereal and 1 gal. of milk) at a branch store, the clerk checks my purchases out and obtains a cash receipt. Shouldn't the 'software' recommendation

Control Flow Definition, Meaning and Example

Could you please help me to understand / define what the term "control flow" really means or is [in programming] in your own words. How would you use control flow in computer programming to solve problems? Would this be the if.else and looping? Could you provide an example of how control flow would be used to track mem

Discussing Variables and Constants

Define and study the terms "variable" and "constant" as used in computer programming. Determine the various types of data (such as char, int, double, string, and date) that can be used in developing a solution. Describe how and when you would use one over the other in a simple solution to calculate the grade average for a class.

Variables in a Programming Language

Consider the following program: List all the variables, along with the program units where they are declared, that are visible in the bodies of Sub1, Sub2, and Sub3, assuming static scoping is used. procedure Main is X, Y, Z : Integer; procedure Sub1 is A, Y, Z : Integer; procedure Sub2 is

UDP and multicast

Describe and discuss what the UDP does and its relationship to TCP - in what ways is it similar and different, and why (what applications) would we use UDP, and why can't a user program access IP directly? What is multicast, how is it used, also include some of the constraints and solutions to those constraints. Provide a

Create a Query to Produce an Output

Create a query to produce the output shown in the figure below. The output, derived from the CHARTER and MODEL tables, is limited to February 6, 2004. (Hint: The JOIN passes through another table. Note that the "connection" between CHARTER and MODEL requires the existence of AIRCRAFT, because the CHARTER table does not contain a

Write a Program to Calculate Weekly Pay

A company pay its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the 40 hours they work and "time-and-a-half"- 1.5 times their hourly wage- for overtime hours workers), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworker

Document Content Validation

Please help with the following problem. Do you think that any form of document content validation should be applied to web pages before they are placed in the public domain? That is, some form of assurance that they do not contain completely incorrect information. As opposed to censorship, this could be some form of assura

How Important is the Internet to Most Companies?

Please help with the following problem. How important is the Internet to most companies? How have companies improved the sales / service / performance process utilizing the Internet? Give examples of how your company or a typical company uses the Internet in their business. What problems exist because of the Internet capabi

An Excel "If And" Spreadsheet

Please see the is an advanced material balance model I am working on but I need help in one area to complete it. I am trying to accomplish the following --- so if you look at my attached document: In Cell K13, I want a calculated value based on the following: If the Product Code entered in Cell G5 is "A"

Currency Conversion Program

Expand the "Currency Conversion" program to have a menu of five currencies that allows the user to choose which currency they wish to display in its equivalency to the US dollars. The choise selected by the user will be error checked (which means that it is error checked (crash proof, I might test it with any type of input) as a

Defining Programming Statement Types

Please help with the following problem. Define the follow types of statement used in computer programming and how you would utilize them in your programs? I/O (input/output) Calculation (equations) selection (conditional) repetition (iteration) documentation

Indirect Port Addressing (ref 2)

Zilog Z8000 microprocessor family direct port addressing capability 16 bit port address is part of the instruction indirect port addressing capability referencing one of the 16-bit general purpose registers, which contains the port address. How many ports can the Z8000 address in each I/O addressing mode? 1? 2^16?

Unified Modeling Language (UML)

Complete the following: a. You are ready to begin the UML modeling for the Kirt Clinic. Draw a class diagram that includes a physician, a patient, an appointment, and a patient's bill. Do not get the insurance company involved. b. Use the UML to draw examples of the four structural relationships for the Kirt Clinic. c

Create an ER Diagram

The scenario is that the Public Affairs Office at Highline University receives requests for speakers on particular topics. To be able to respond to such request, that office wants to build a database. In particular, it wants to keep track of topics, speakers, speeches, and organizations to which someone from Highline has spoken.

Solve for Reusable Code

Scenario: Different programming languages exist in various libraries and on the Internet and using some of these functions and procedures, this can allow you to use these methods rather than having to write out the code from scratch on your own. However, some code needs some modification to fit into your program. Nevertheless, i

OO - True False

1. An advantage of OO development is consistency of language. 2. OO development often omits writing a distinct requirements specification document. 3. "Use cases" may be based on well-written natural language requirements. 4. In the design process, workflow diagrams define the entire business process. 5. Encapsulati

2DIM-DFA is undecidable

The language define by the equality of two 2DIM-DFA machines on all inputs is undecidable. The full definition of 2DIM-DFA can be found in Sipser's "Introduction to the Theory of Computation" (5.17) I show a reduction to the decidability of a problem which is known to be undecidable and hence prove the undecidability of the o


Recall, in our discussion of the Church-Turing thesis, that we introduced the language D = {p | p is a polynomial in several variables having an integral root}. We stated, but didn't prove, that D is undecidable. In this problem you are to prove a different property of D, namely, that D is NP-hard. A problem i

Two Dimensional Finite Automaton

1. Define two dimensional finite automaton (2DIM-DFA) is defined as follows. The input is an m X n rectangle, for any m, n  2. The squares along the boundary of the rectangle contain the symbol # and the internal squares contain symbols over the input alphabet . The transition function is a mapping Q x &#6166