answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How do you convert the number 1101 in binary form?

Counting to 15 in binary:

0

1

10

11

100

101

110

111

1000

1001

1010

1011

1100

1101

1110

1111

How many steps are in the system development life cycle?

Hi,

1. Project Plan - Draw a plan for your development project
2. Functional Requirement Specification - Define what the business needs
3. System Requirement Specification - Define how you achive the above with Operating System, Database, Software Development Tool, etc
4. High Level Design - The database structure & Data Flow diagram
5. Low Level Design - The Screen/Report layout, conditions, validations etc
6. Testing - Unit Testing, Integration Testing, System Testing
7. Documentation - User manual & Technical manual
8. Deployment - Implementing the developed application
9. Maintenance - Maintain the developed application, for bug fixing, new feature inclusions, changes to the existing functions Hope this helps

What is worst case and average case complexity of linear search algorithm with explanation?

For a list with n elements, the expected cost is the same as the worst-case cost, which is O(n). The average cost will be O(n/2). However, if the list is ordered by probability and geometrically distributed, the complexity becomes constant, O(1). Compare with a binary search which has a cost of O(log n).

What is the advantages of high level languages to low level languages?

High Level Language:

High level language are easier to use and less technical skills are required to do a program. It is very useful where textual data is given priority. Troubleshooting doesn't takes a longer time. We get to know the errors very easily.

Low Level Language:

Low level language are not easily read at a glance and very high technical skill are required to do a program. Troubleshooting takes a longer time. They can produce stunning graphics.

What is 00001010.01100100.00000111.00010101 to decimal?

It's quite easy to convert binary into hexadecimal (hex) by grouping each 4 binary digits (bits) into a single binary hex digit:

0A 64 07 15

From there it's easier to convert into decimal in the head:

10 100 7 21

If you will be doing much in the way of programming computers, or working with TCP/IP networking, it is definitely a good idea to spend some time familiarising yourself with hexadecimal and converting between hex, binary and decimal.

For reference, converting from binary to hex is done like this:

0000 = 0

0001 = 1

0010 = 2

0011 = 3

0100 = 4

0101 = 5

0110 = 6

0111 = 7

1000 = 8

1001 = 9

1010 = A

1011 = B

1100 = C

1101 = D

1110 = E

1111 = F

What is the best email client?

  • My opinion is that Yahoo! Mail is the #1 on the Top 10 list of best e-mail clients.*
  • And Mailbird for Windows 10

Here is a list of the order of all e-mail clients that I've used in the past. My E-Mail Accounts:

First-Windows Hotmail (Old) Second-Yahoo! Mail (Old) Third-GMX (Old) Fourth-AOL (Old) Fifth-Mail.com (Old) Sixth-AOL (Current) Seventh-Windows LIVE Hotmail (Current)

Describe how data is shared by functions in a procedure oriented programming?

If you are talking about procedural languages like C, then you have two options:

Declaring global variables. These can be declared in header files, which are #included in source files to gain access to the shared data variable. Another way is to define a variable in a source file, then declare it extern in the other source files that use this variable. Note that the use of global variables is risky and generally frowned-upon.

Passing variables as function arguments. Some languages make a distinction between passing by value vs by reference. In C, everything is passed by value, even the arrays you pass are passed by value (the passed value is a pointer to the zero-th element of the array).

There are other ways of course, like using shared external files (especially if the data is shared between different processes, or multiple instances of the same process), shared memory, and semaphores (which are collectively known as IPC - InterProcess Communication).

How does a diode produce light?

When light falls on the junction of a pn junction/diode the potential barrier gets break down due to majorty of electrons flow and they release energy in the form of light.

What is the difference between structure oriented and object oriented programming language?

the main difference is that structured programming deals with the flow of execution, and not, primarily, with the data. The mathematical basis for structured programming has to do with the elimination of arbitrary jumps (GOTOs) in favor of code blocks and functions. In particular, "information hiding" as it relates to data isn't fully developed in structured programming; structured programming has to do with the organization of the code, rather than the data, and pure structured programming passes data around in the form of function arguments (conceptually, "on the stack").

In contrast, object oriented programming primarily deals with data issues. The object/class paradigm promotes clean, flexible organization of data in the same way that structured programming promotes clean, flexible organization of code. In a pure object oriented approach, the flow of program execution is treated as bits of behavior associated with the packets of data that are "objects".

Were did Orville Wright go to school at?

sretaklejhrjrfhsldjfghjgfhfsklgskldhgklgsdgsdfgsfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfggfdhhgfdgfdhgfdhdfghfdghdfghfdghdfhgdfghfdghdfsdfgsdfgsdfgsdfgsdfgsdfgsdhttp://www.ohio-nature.com/image-files/buckeye-tree-nut-lg.jpgfggsdfsdfgsdfgsdfggfhgfdfdghfdghgfdhfdghgfdh sretaklejhrjrfhsldjfghjgfhfsklgskldhgklgsdgsdfgsfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfggfdhhgfdgfdhgfdhdfghfdghdfghfdghdfhgdfghfdghdfsdfgsdfgsdfgsdfgsdfgsdfgsdhttp://www.ohio-nature.com/image-files/buckeye-tree-nut-lg.jpgfggsdfsdfgsdfgsdfggfhgfdfdghfdghgfdhfdghgfdh

Features of structured programming language?

Structured programming language is actually a concept used to improvise the code over common procedural language. Structured programming is somewhat similar to Object Oriented Programming or OOP, which are blocks of code from sub-routines that define a program's functionality.

Here are the features:

· Division of large problems into small procedures and functions

· Absence of Go to statement

· Main statements include If-then-else, call, and case statements

· Inclusion of facilities for declaring entry points and external references

· Extensive set of operators include arithmetic, relational, logical, bit manipulation, shift, and part word operators

Why could programming be a useful skill?

Efficient programming means a lot of different things to a lot of people, and is typically subject to requirements.

For example, for an application intended for use on a very resource limited phone, memory footprint is very important.

On the other hand, many algorithms offer a choice between speed and size: an application with a small memory footprint might need more processing power (or time) to complete a certain task, compared to an implementation that invests into a larger footprint under otherwise comparable circumstances. When both size and speed matter, efficient programming is about finding the perfect compromise.

Software can be efficient in many other ways, too. It can be easy to maintain, it can generate its own documentation based on in-line documentation generation techniques, it can be self-explanatory, and so forth.

While efficient programming means different things to different people and in different circumstances, inefficient programming is almost never the right thing to do. The software design decision, therefore, never is whether to program efficiently or inefficiently; the decision is where to accept inefficiency to some extend in order to boost another aspect of programming.

How do you reverse an array in c?

#include <iostream>

using namespace std;

int main()

{

const int max=26;

char c[max];

int i, j;

// Initialise array with letters of the alphabet (ascending order).

for(i=0; i<max; ++i )

c[i]='a'+i;

// Print array.

for(i=0; i<max; ++i)

cout<<c[i];

cout<<endl;

// Reverse array:

// work from both ends, swapping elements as we go,

// stopping when we reach the middle elements.

for(i=0, j=max-1; i<j; ++i, --j)

// Swap values without using a temporary variable.

c[i]^=c[j]^=c[i]^=c[j];

// Print array.

for(i=0; i<max; ++i)

cout<<c[i];

cout<<endl;

return(0);

}

Output:

abcdefghijklmnopqrstuvwxyz

zyxwvutsrqponmlkjihgfedcba

Why does programmer need variable?

Variables can maintain the same value throughout a program, or they can change values several times, depending on your needs. when you put a variable in a program, the computer recognises the variable and you can change it's value throughout without an error. Note: You can write programs without variables, but their functionality will be quite restricted, like this:

int main (void) { puts ("hello, world"); return 0; }

What are high level programming languages how they differ from assembly languages?

High-level languages are easy to read and write. They are not machine dependent and portable from one computer to another. Assembly languages are machine dependent, easier to read than machine code but it's still not easy to read, and the assembler program translates the assembler program straight into machine code.

Disadvantages of a computer programmer?

People feel like people dont care as much about the job They feel they are not paid enough and they feel like other people dont spend enough time working People feel like people dont care as much about the job They feel they are not paid enough and they feel like other people dont spend enough time working People feel like people dont care as much about the job They feel they are not paid enough and they feel like other people dont spend enough time working

What is the purpose of an input statement?

All results have relationships that support the creation of the result.

Look up "Critical Thinking" in any search engine

An Argument is one of the relationships

Premise statements support the validity of the Argument

Inputs and Outputs are fed into and out of Premise statements to cause a change in the desired result.

This is basically how people solve problems logically, instead of instinctively.

Logic versus Trial-and-Error

List 3 differences between stuctured programming and object oriented programming?

STRUCTURED PROGRAMMING:
  1. Emphasis is on doing things (algorithms).
  2. Large programs are divided into sub programs called FUNCTIONS.
  3. Data moves openly around system from function to function.
  4. Employs top-down approach in program design.
OBJECT ORIENTED PROGRAMMING:
  1. Emphasis is on data rather than procedure.
  2. Programs are divided into to what are known as OBJECTS.
  3. Data is hidden and cannot be accessed by external functions.
  4. Follows bottom-up procedure in program design.

What are the features of a fourth generation languages?

There is no such thing as a fourth generation language.

Machine code is the first generation (the native language of the computer). Assembly language is the second generation (low-level symbolic language). All high-level (abstract) languages are third-generation.

Although some languages claim to be fourth-generation or even fifth-generation, they are meaningless terms used by marketing types that tell you nothing about a language's capability.

What is the difference between artificial and natural intelligence?

One major difference between ANN and biological NN is that the synaptic connections in bio neurons are either excitatory or inhibitory whereas the synaptic weights in an ANN have a range in both positive and negative values..

What purpose do strings serve in programming?

Strings are a type of variable in computer programming.

Simply put, they contain multiple characters which are "strung" together to make a piece of text. "Test", "House", and "Hello World!" are all excellent examples of what might be contained in a string.

As a result, strings are used to store and convey any textual information.

What are the areas and operations of data processing?

Agile Health Insurance makes it simple to choose, compare & apply online for affordable Health Insurance from leading Health Insurance Companies with ObamaCare options, Short-Term Health & Dental Insurance too!

AgileHealthInsurance Categories: Medical, Jewelry, Financial, Insurance

cutt.ly/ijpCS36

Practical application of red black tree of data structure?

Red-black trees are typically used in real-time applications, where worst-case guarantees are vital. Red-black trees often form the basis of other tree structures, including AVL trees and LLRB trees. Computational geometry, scheduling and language dictionaries are other possible applications for RB-based trees. They are also used in functional programming as a persistent data structure.