answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is composition of objects in a class known as?

It's known as a composition or composite object, however the term aggregate can also be used.

What are the advantage and disadvantage of coding standards?

Advantages

  • Consistent conventions, patterns and/or processes to follow
  • Standards should be treated as an INTERFACE for programmers to read and write codes

Disadvantages

  • Standards means the rules are enforced. To enforce them, code review must be conducted. To perform code reviews, more rules will need to be established (snowball effect)
  • Need to have the authority and another set of rules to conduct code reviews (to enforce the standards). (I've encountered the violation of standards being spotted in the code reviews, mentioning them were the only outcome. The reviews were just a formality to kill time.)
  • When it's wrong, it may be a rotten apple to ruin the whole basket of them (the entire standards)
  • Standards means deviation will happen. Any deviation will need to be approved. But then, when there are more approved deviations than the standards, the standards may be meaningless.
  • Standards should be reviewed from time to time: today's good idea will be bad tomorrow
  • With a "standard" become a habit for quite awhile, it will be hard to break away from it
  • The standards were not carefully thought out. The rules or principles were carried over to a different programming language, but cannot or should not be applied when codes are written in a different one (code conversion).
  • One computer language should have its own coding standards if there are standards. When there are 2 computer languages used at the same time (C# and Sql is fairly common to work together), the rules may be very confusing and even against each other.

What does APM use to control power management?

From the Battery-Powered-mini-HOWTO " .. for APM to work on any notebook or energy-conscious desktop, the system BIOS ROM in the machine must support the APM standard. Furthermore, for APM to work with the Linux operating system, the system BIOS ROM must support either the 1.0 or 1.1 version of the APM standard, and it must also support 32-bit protected mode connections. A system that supports APM 1.1 is preferred, as it provides more features that the device driver and supporting utilities can take advantage of." You may get information about the APM version with the dmesg command and in the /proc/apm file.

A more simple answer tho is; APM is an earlier version of power management. With APM, the BIOS was used to control the settings for power management. source http://www.cisco.netacad.net/

Is there Triple DES c program source code?

There's a project that's implemented Triple DES in C over at SourceForge called "Easy Triple DES." It's in alpha, but should at the very least give you a head start. (See link.)

Does the C plus plus programming language use a virtual machine?

No, it does not. But Microsoft Visual Studio 2008 allows you to connect to a virtual machine and run your projects "sandboxed".

What is a piece of work you created on a computer program?

It is not necessary to add it. It maybe accomplished on a paper and files.Though it is very easy,there cannot be any problem in casing and using it.It is called larva programs. Java is also a very good script to use.It is nice and soothing just like chapters in maths.Ilove algebra the most of all and it was a very good experiance to learn the chapter.The problem will not occur at any case and it is my own guaranty. Thankyou

Which language is 100 percent pure object oriented language?

The languages C# and Ruby are notable for their pure object oriented design. You can even call instance functions on literals, such as 10.to_s (Ruby) or 10.ToString() (C#). Other object-oriented designs tend to treat primitives as non-objects, such as in Java, and are therefore not technically "100%" object-oriented.

What college is recommended to become a computer programmer?

I would say MIT. Massachusetts institute of technology.

Digipen hands down. It's run by Nintendo, offers all sorts of degrees in the gaming industry, provides internships with the best companies in the business. It's located in Washington state and people come from all over the world to attend it.

How do you program a 1999 Infiniti Q20 remote?

open l/f door. get in and close door. insert and remove key slowly until hazards flash. then turn ignition "on" but don't start car. then press the lock button on the remote.

Where can you get assembly instructions for a Remington 1100?

This site has them for $9. http://www.gun-guides.com/Remington_1100_11-87_manual.htm

Can someone do computer enginering and computer programming?

Computer engineering does require you to know how to program and your definitely going to do programming with computer engineering. As for a double major in Computer engineering and computer science, it depends on your school. But it may overlap each other a lot that it may not be offered as a double major. Ask your school advisor.

Where can I find a Present Value Calculator online?

Many websites have a present value calculator, you should be able to find ones that are free and easy to use. You will need to enter in the future value, intrest rate and the number of years.

What is a data warehouse or data mart?

A facility for storing and retrieving data; a type of server farm. Large facilities are usually duplicated in two or more separate locations to guard against data loss and communication outages.

What are all the Microsoft programs called?

Microsoft produce a wide-range of software, including the Microsoft Windows operating systems, Microsoft Visual Studio development suites, Microsoft Office amongst many others. You can find a complete list of current Microsoft software packages on Microsoft's own website.

How do you rename a spreadsheet?

One way is to use the "save as" feature by clicking on file and entering a new name. Note this will make a copy with a new name. The old version will still be around. Alternatively right click on start and then click on search. Enter current name to locate the file. When it appears in the list right click on the file name and then click on rename. Do not change the extension (eg the .xls) or your software will not find or read it again.

How do you restore 7-zip password?

You can try some softwares ,such asPassword Unlocker,Zip Password unlocker and so on. You can find them though google. I hope this information will be helpful.Thanks.

Expansion of GNU?

GNU is a Unix-like computer operating system developed by the GNU Project. GNU is a recursive acronym for "GNU's NOT UNIX".

Write a function in c plus plus to delete an element from a sorted array so that its sorted order remains as it is?

To delete an element form an array you simply move everything one place to the left, starting with the element to the right of the element you wish to remove, and then delete the final element by resizing the array. The following code demonstrates this:

#include <iostream>

void DeleteElement(unsigned int** pp,unsigned int& size,unsigned int index)

{

if(size)

{

unsigned int* p=*pp+index;

unsigned int* c=p+1;

std::cout<<"Deleting element index "<<index<<" with value "<<*p<<" from an array of size "<<size<<std::endl;

--size;

while(index++<size)

*p++=*c++;

*pp=(unsigned int*)realloc(*pp,size*sizeof(unsigned int));

}

}

void PrintArray(unsigned int* a,const unsigned int size)

{

std::cout<<"Array: size="<<size<<" { ";

unsigned int i=0;

while(i<size)

std::cout<<a[i++]<<" ";

std::cout<<"} "<<std::endl;

}

int main()

{

// Allocate a dynamic array of size 5:

unsigned int size=5;

unsigned int* a=(unsigned int*)malloc(size*sizeof(unsigned int));

// Initialise array with sorted values (ascending order):

for(unsigned int i=0;i<size;++i)

a[i]=(i+1)*2;

// Print current array:

PrintArray(a,size);

// Delete element 1 (value 2)

DeleteElement(&a,size,1);

// Print current array:

PrintArray(a,size);

// Delete element 2 (value 4)

DeleteElement(&a,size,2);

// Print current array:

PrintArray(a,size);

// Release allocation.

delete[]a, a=NULL;

return(0);

}

Note that static arrays cannot be resized, so to remove an element you need to maintain a count of the active elements, and move inactive elements to the end of the array. The process is similar to the above, except you need to copy the inactive element's value before shifting everything to the left, and then replace the final element's value with the one you saved.

In C++, operations such as this are greatly simplified by using a vector rather than an array. Vectors are effectively the same as dynamic arrays, but are implemented as self-contained objects with member methods to manipulate the contents, thus greatly simplifying your code. Deleting an element is a simple as calling the vector's built-in delete method. Memory management is largely transparent and, because a vector knows its internal size, passing vectors to functions is made that much easier -- you simply pass them by reference.

How do offices use ict?

Shops need to use ICT because some times to increase and decrease costs this will lower prices and increase profit