Explore BrainMass
Share

Programming Languages

Run Length Encoding of a Bit Sequence

(a) Encode the following bit sequence using run-length encoding with 4-bit codes eighteen zeroes, 11, fifty-six zeroes, 1, fifteen zeroes, 11. (b) Encode the same sequence using run-length encoding with 5-bit codes (c) Compare the two codes. Comment on two choices.

What is RSS?

What is RSS? Describe a real-world application that uses RSS.

Data

Mr. Oldie wants to share his wisdom too, but on a different topic: "These OO-guys looked at hardware assembly and car assembly mechanisms and dreamed that they can do it in software. They aimed for the moon using OO paradigm, but they ended up in clouds! OOD/OOP does not really make such "stand-alone" components that fit togethe

Could a function also be called an inheritance?

In computer programming would you say that a function could also be called an inheritance product due to the reuse of it in the program? A while loop that calls the function once the statement is true can be used over and over. What do you think?

Object Oriented System Design with UML

? Build use case diagrams and write use case descriptions ? Build class diagrams for static system modeling ? Build collaboration and sequence diagrams for dynamic system modeling Aims This assignment aims to establish a basic familiarity with the object-oriented system design and the use of UML for system modelling Ob

Need help with database

As you were reviewing the different programming languages in the Cybrary and the Internet, you found some libraries with functions and procedures that you could use rather than write the code from scratch on your own. However, some of the code needs some modification to fit into your program. Nevertheless, you find 3 sets of cod

Development of software

Give an example of how efforts in the development of software can pay dividends later in software maintenance.

Programming paradigm

Discuss why the object oriented programming paradigm is considered a better choice than the structured programming paradigm. Does it reflect our "natural" way of thinking or do you find it artificial? (Please explain in detail)

longest consecutively numbered string of bytes

Find the address where the longest consecutively numbered string of bytes begins. Consecutive bytes are defined as those that differ by the number 01. For example, the bytes 39h, 3Ah, 3Bh, 3Ch, 3Dh, 3Eh, 3Fh, and 40h for a string of 7 consecutive bytes. Put the winning address in register DX, and the length of the string (in

Convert Binary Number Registries

Convert any binary number found in register AX to the equivalent ASCII code for each hexadecimal nibble in AX. Place the ASCII code for the hexadecimal number in AX starting at offset location 0000. Example: AX = 3030 ;ASCII for 00 [0800] = 41h after conversion (ASCII A) Note: Please write in assembly language progr

Codes

As you were reviewing the different programming languages on the Internet, you found some libraries with functions and procedures that you could use rather than write the code from scratch on your own. However, some of the code needs some modification to fit into your program. Nevertheless, you find 3 sets of code that you can r

Question about Reusable Code

You realize that the code you had created can be reused for many other purposes for future programs. You decide to create a library for your reusable code. Using the pseudocode for the program, you identify the aspects of the program that can be reusable and write/rewrite it so it can be reused. You rewrite your pseudocode to im

Finite-state automata

Hi, I'm looking for a FSA (Finite State Acceptor) for all binary strings containing an odd number of 0's. A state diagram is the easiest for me to understand. A valid regular expression to describe the language (I've verified this) is 1*0(1+01*0)* Thanks!

Binary Cyclic Codes

Determine all binery cyclic codes of length 5. Note: To find all cyclic codes of length n, find all ideals in B[x]/x^2+1 Note: If 1 is an Ideal (I) then R = I. Example: n=2 R=B[x]/x^2+1, x^2=1 R={o,1,x,1+x} Ideals <0> = 0 <1> = R x = (0, x, x^2...) = (1,...

Programming Concept

Please describe this program for me. (See attached files for full problem description)

Writing a Narrative Program: Example Currency Conversion

Using the C compiler, write a C program that contains your narrative from broken down into one line sentences, that have been commented out. Write English narrative that converts currency. The narrative should display a title, "Currency Conversion," and then write the names of currencies and exchange rates. Allow the user

COBOL: Widely used Business-Oriented language

All COBOL was the first business-oriented language available, is 30+ years old, and is still being used for many business applications. offer opinions on why it is still being used. What are the common characteristics that almost all programming languages have in common. There are four. Identify them and explain for

Theory of Computation Problems

Let x be an element of &#931;+ be a word. Show that for all such x, the language L=x* is regular. Give an example of x such that the language: L subscript 2/3 = {uw l there exists a y an element of L, y=uvw, l u l = l v l = l wl } is not regular. Prove your answer. (note: l l is equal to the length) Please see th

ASP

Create an ASP page that uses both inline and <script> code.

Deterministic PDA Built

Please see attached and build deterministic PDA . Please example below and Build a deterministic PDA to accept the language aⁿb²ⁿ ( n = 1, 2, 3, ... } Example: Build a deterministic PDA to accept the language aⁿbⁿ+¹ ( n > 0 }

Computer theory-automata

(See attached file for full problem description) --- Is the language L = { anb3nan n>0 } context free? If so, find a CFG grammar for it. If not, prove it. --- (See attached file for full problem description)

Writing a program to calculate GPA

Write a program to read a student's number, his or her old grade point average, and the old number of course credits (e.g., 31479, 3.25, 66) and to then print these with appropriate labels. Next, read the course credit and grade of four courses - for example, course1Credits = 5.0, course1Grade = 3.7, course2Credits = 3.0, course

Discuss the concept of a component

Discuss the concept of a component. What makes up a component? What are the advantages of components? In addition, what are the types of class data and how do you decide which is appropriate? Explain the difference between declaring a variable using the keyword Public, Friend, or Private.

implicit dereferencing of pointers

What disadvantages are there in implicit dereferencing of pointers, but only in certain contexts? For example, consider the implicit dereference of a pointer to a record in Ada when it is used to reference a record field.