Unanswered | Answered

Computer Programming

Parent Category: Computers
A category for questions about computer programming and programming languages.
Toll Free :0800-098-8906. For BT Yahoo - United Kingdom. Is thisthe right phone number?
A compiled program is source code that is translated to eithermachine code (native code) or byte code. Native machine coderequires no further translation and can be executed as-is, but bytecode must be interpreted in order to produce the required machinecode. Java is an example of a language that...
To clarify, HTML is not actually a protocol in the sense thatyou're thinking; it's a language. Languages are of course protocolsin themselves, but not in the commonly used sense in the IT field,which presumably is the nature of your question. Some protocols commonly used in the IT field are: ....
yes, but need to check more details about that.
James Thompson Marshall was a railway and mechanical engineer. Originally employed at the Oxford Steam Plough Company in Cowley, Oxfordshire, he moved to Hunslet, Leeds, West Yorkshire, England, continuing his career at Boyne Engine Works. He spend his career, however, in England.
// set up reader BufferedReader reader = new BufferedReader(new InputStreamReader( System.in)); // number of line to read int numberOfLines = 3; // initialize the counter for number of characters int numberOfChars = 0; // prompt user to enter the lines of text System.out.format("Enter %d lines of...
The data type for 0.38 is double.
A 32-bit system has a maximum 2^32 unique memory addresses, whichis 4,294,967,296 addresses in total. Each address refers to a byte(the smallest unit of storage), thus this allows a maximum addressspace of 4 gigabytes. Each additional bit doubles the number ofavailable addresses, thus a 64-bit...
Are they attempting to sabotage your business in the SERPs? If so,report it to Google after trying to contact the Webmaster directlyfor removal. Hope that helps!
Chapter 3 : Entity - Relationship Modelling The aims of this chapter are: . To explain the need for entity-relationship modelling . To explain the terms entity-relationship model,entity-relationship diagram . To define the terms entity type, entity, attribute, attributevalue, primary key,...
To test whether Java is installed and enabled in Firefox, visit oneof these Java test pages: Verify Java Version Verify Java Version (alternate) When you visit these pages, you will normally need to activateJava. The article How to allowJava on trusted sites explains how.
They might not have made the last game many have been released since the question was asked including. Major League Baseball 2K12 PS2 release was March 6 2012 and they may make a Major League Baseball 2K13 for the PS2 FIFA 12 PS2 release was on September 27 2011 and they may make a FIFA 13 for...
Layer 6 - Presentation Layer
Simply because, GUIs can be of any level of complexity. Elementssuch as buttons, links, etc all need to properly reference todifferent objects. If you click here, go there, if you click downthere, go here, etc. It is like a very big, complex web. You canimagine that procedural code would make it...
To calculate the least common multiple (lcm) of decimals (integers)and fractions you first need to calculate the greatest commondivisor (gcd) of two integers:. int gcd (int a, int b) { int c; while (a != 0) { c = a; a = b % a; b = c; } return b; } With this function in place, we can calculate the...
The Factor programming language combines powerful language featureswith a full-featured library. The implementation is fully compiledfor performance, while still supporting interactive development.Factor applications are portable between all common platforms.Factor can deploy stand-alone...
to declare a Variable you use 'Dim' then you name the Variable sofor example 'Dim Var1'
*NOTE*: The answer to your above question is to use the DIM statement...which means DIMension; you use it to formally declare VBScript variables *before* using them; and, this is meant to set aside sufficient memory space to use the variable in. EXAMPLE 1/VBScript code... DIM intX DIM intY ...
Addition of two matrices is simply performed by iterating over all of the elements and adding elements with like indices together. A c code snippet... for (i=0; i
There are three Types of Dialog Boxes in JavaScript 1. alert() : The simplest to direct output to a dialog boxis to use the alert () method. The alert dialog box is usedto display an alert message to the user. 2. prompt() : The prompt() method dialog box allows the userthe opportunity to...
A structuredcomplex object database differs from an unstructured complex objectdatabase in that the object's structure is defined by repeatedapplication of the type constructors provided by the OODBMS. Hence,the object structure is defined and known to the OODBMS.
Important ways to access relational database: 1. Accessing the relational database using JDBC with Spring. 2. LIBNAME Statement for relational database. 3. Using HBase
Following is the list of versions of visual studio: Product name . Version . Visual Studio. 4.0 . Visual Studio 97. 5.0 . Visual Studio 6.0. 6.0 . Visual Studio .NET (2002). 7.0 . Visual Studio .NET 2003. 7.1 . Visual Studio 2005. 8.0 . Visual Studio 2008. 9.0 . Visual Studio 2010. 10.0 .
Data is stored as objects and can be interpreted only using themethods specified by its class.
can u please elaborate the question for details on database visit" tutorialsera "
Assembly language allows the developer to have almost total control over what the sequence of instructions will be when a program executes. A compiler tries to translate a high level language such as C++ into a series of instructions, but a good assembly language programmer may be able to optimize...
A common field is a field of data that is shared among all forms ina database. Without them, it would be difficult and/ortime-consuming to create other forms.
A Java thread can be considered as similar to a user level thread. Let us say you are running a web browser, windows media player and GTalk for chat simultaneously - Actually the operating system is running an individual thread for each of these apps which gives you a seamless feeling of things...
M.C.A could be almost anything, maybe a name of a school or schooldepartment? Lex (short for Lexical Analyzer)`is a specialized programminglanguage that takes a set of specifications for how to scan textand find specific items in the text and generates C language sourcecode that is compiled with...
Mainly C and C++ and a bit of assembly language.
Font color is the color of a font on a computer screen, on a printed document, or in HTML/CSS/web design (the website's font color). Hope that helps.
A nested structure is simply one structure inside another. Theinner structure is local to the enclosing structure. struct A { struct B {}; }; Here, we can instantiate an instance of A as normal. A a; But to instantiate B we must qualify the type because it is localto A: A::B b; If B were only...
There are no objects in C, so you can't. However, in C++ you can convert an integer to an object if theobject's class exposes a public conversion constructor that acceptsan integer argument. For example: class X { public: X (int); // conversion constructor // ... }; How the conversion is...
Ett Results for the J&K are available at the jkbose website jkbose .co .in/resultsallnoti.php website
The film opens with the creation of the 1984 commercial for Apple Computer ,which introduced the first Macintosh. Steve Jobs ( NoahWyle ) is speaking with director Ridley Scott ( J. G. Hertzler ), trying to convey hisidea that "We're creating a completely new consciousness." Scott...
The prefix increment operator is overloaded as operator++() while the postfix increment operator is overloaded as operator++( int ).
All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &&, &, >>,
\n. \n. \nIn web context, absolute links are those that have a full URI in the href attribute, for example:\n. \n absolute link to this answer \n. \nRelative links specifies the address relatively to the current page. Since all other pages on this site share the same "root", you can specify their...
#include #include template class Matrix1D { public: using data_type = std::array; using iterator = typename data_type::iterator; using const_iterator = typename data_type::const_iterator; private: data_type m_data; public: ~Matrix1D () = default; Matrix1D () = default; Matrix1D (const Matrix1D&) =...
I actually have the author of this book as one of my Computer Science Professors at Armstrong. The book is really well layed out and easy to understand, even for beginners! The book is: Introduction to Java Programming *Eigth Edition By: Y. Daniel Liang Here is his website, it has a list of all...
Here is a website with all kinds of java programming books: http://www.freeprogrammingbook.com/java.php
#include #include #include #include void swap(int& x, int& y) { x^=y^=x^=y; } void bubble_sort(int* A, int size) { while(size) { int n=0; for(int i=1; iA[i]) { swap(A[i-1], A[i]); n=i; } } size=n; } } void insertion_sort(int* A, int size) { for(int i=1; i
I bought the Tourism ManagementScript from the PHP Scripts Mall. The features are veryadvanced and easy to access. It allows customers to book the placeand location easily and also it provides advanced features forpublishing and managing travel, tours and vacations.. Check out their Site : www...
Computer professional
Multithreading: Multithreading is a process of executing multiple threadssimultaneously.. The concept of threads provides a mechanism to make maximumutilization of CPU.Basically a thread is a light weightprocess. . Both multithreading and multiprocessing are used to achievemultitasking.But...
You need to make a Program that usualy is in either a popularprogramming engine.
Actually, when you declare a variable as 'final' then the value assingned to the variable does not changes throughout the program. For example, class d { public final int n=10; } In this class d, the value of 'n' would be '10' & its value cannot not be altered by any function declared...
Since the conceptual design sets the direction for the managementinformation system (MIS). It is vital that managers participateseriously and heavily at this stage. Conceptual design is sometimescalled feasibility design, gross design or high level design. The conceptual design phase takes as...
Most likely the attributes style, class, id, type and src.
#include #include void main() { int a[10],i,evc=0,odc =0;// sum=0; clrscr(); printf("enter 10 no.s in the array\n"); for(i=0;i
Maybe mean the data can change?
Front Ends are tools through which the user accesses the data in the backend and interacts with data. For example to Enter Data, Edit Data, Delete Data which is stored in backend the frontends are necessary. User friendly front ends are necessary when the user not aware of accessing the data without...
The most common reason I have for catching Exceptions in Java is when reading information from a file. So let's look at an example where we read and display the contents of a file. // Note that the main method may throw a FileNotFoundException. // This means that if the file we try to read from...
Program to compute difference between two dates #include #include void main() { int day1,mon1,year1,day2,mon2,year2; int ref,dd1,dd2,i; clrscr(); printf("Enter first day, month, year"); scanf("%d%d%d",&day1,&mon1,&year1); scanf("%d%d%d",&day2,&mon2,&year2); ref = year1; if(year2
It helps students think about why certain chunks of code are thereand how they affect the program itself. This helps in programming,as once you see a block of code that does one job, you can usuallyreplicate it within your own work to bypass problems.
Let "n" is that number and "occ" is the no of occurrence of aelement "el" in "n". so, i = n; occ = 0; // Initializing "occ" to zero. while(i > 0){ rem = i % 10; // This gives a digit in the number. if(rem == el) occ++; // If "rem" is same as "el" then increament"occ". i = i / 10; //By this we are...
As ever, there is a choice; you can use Frames - the top frame might have navigation options to other pages on the site - or you could use a table.
Java has three types of comments that I know of... Single line comments beginning with a double forward obliquestroke: // This is a single line comment // here's another There's also multi-line comments: /* This comment could ** traverse ** many lines. It starts with a forward oblique stroke, **...
Database is a collection of facts, figures and statistics relatedto an object. Data can be processed to create usefulinformation. A knowledge base is a special kind of database for knowledgemanagement. It provides the means for the computerized collection,organization, and retrieval of knowledge
Every Pascal program must follow a basic structure. While thisstructure is very similar to Karel programming, there are severaldifferences. Below is the basic structure that every Pascal programmust follow. PROGRAM ProgramName ; V AR VariableName :VariableType; VariableName : VariableType; ... ...
You can use following steps for finding smallest number in 8085microprocessor :- XRA ; clear the accumulatorMVI B, 30H ; load a number to B RegisterMVI C, 40H ; load a number to C RegisterMOV A, B ; Move the content of B to ACMP C ; Compare value of C against...
Is this what you mean? #include int main(){. int number;. printf("Enter any integer: ");. scanf("%d",&number);. if(number % 2 ==0). printf("%d is even number.",number);. else. printf("%d is odd number.",number);. return 0;. }. Sample output:. Enter any integer: 5. 5 is odd number.. Code 2:. 1. ...
I bought a 1 ton split A\C this week. It's power consumption is1000 W. The outer temperature in our area in day time is 34-36degree Celsius. I set up the ac for a 27 degree which iscomfortable for me. So i want to know, how to reduce then powerconsumtion of this ac. My room is much smaller 10(w) X 8...
#include #include void main() { int number, sum = 0, rem = 0, cube = 0,temp; printf ("enter a number"); scanf("%d", &number); temp = number; while (number != 0) { rem = number % 10; cube = pow(rem, 3); sum = sum + cube; number = number / 10; } if (sum == temp) printf ("The...
import java.io.*; class StateCap { protected static void main()throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String s[]={"Uttar Pradesh","Maharshtra","West Bengal","Bihar","Jharkhand","Kerala","Tamil Nadu","Madhya Pradesh","Sikkim",...
A task pane is a dialog box that is presented inside a window panerather than a separate window. Dialog box is a secondary windowthat appears when the system needs input from the user to carry onwith a particular process such as: during installation of softwaresometimes system prompts you whether to...
There is actually no difference to the final result; only the way in which you get to it is different. If you create a page in MS Word and then use the function to convert to a webpage, all Word does is create HTML code that will make a page look like the page you designed. Note though that the...
#include main() { int num1; int num2; int a; printf("Enter any two numbers :"); scanf("%d%d",&num1,&num2); for(a=num1;num1
IN COMPUTER SCIENCE, A SPACE-TIME OR TIME-MEMORY TRADEOFF IS A SITUATION WHERE THE MEMORY USE CAN BE REDUCED AT THE COST OF SLOWER PROGRAM EXECUTION (OR, VICE VERSA, THE COMPUTATION TIME CAN BE REDUCED AT THE COST OF INCREASED MEMORY USE). AS THE RELATIVE COSTS OF CPU CYCLES, RAM SPACE, AND HARD...
char *string = "this is a test"; char *p; for (p=string; *p!='\0'; p++) if (*p==' ') *p='-';
In the original, none; Pascal's thing was structured programming, which was the death knell for Basic's spaghetti code. Object oriented features were added later: Turbo Pascal. Much the same as c morphed into c++.
Runnable in java , is an interface which helps in creating threads. E.g. you want to create thread Demo , then you will do like this class Demo implement Runnable { // your code } Now to start thread in a program you have to do like this /* create your thread class object & then pass it to thread...
An object is a thing that occupies memory, has a value, and has methods that manipulate it. As such, even elementary variables are objects. Most, however, consider that an object in C++ is an instance of a class type. // declaration and definition class myClass { ... attributes ... methods ......
There are many way to define a term, one of which is: When a class inherits properties and behaviours of two more classesit is said to be multiple inheritance.
Modularisation. It could also be called refactoring, where large and complex functions are split into several simpler functions, making code easier to read. Refactoring can also help to reduce code duplication.
Visual Cadd is a super-productive 2D design and drafting software for a very reasonable price. You can try out Visual CADD 5 by downloading the 30 day trial. This is a fully functional version, and includes all features including the ability to save and print Visual CADD files as well as import...
SWAP file.. Sometimes it's called swap file like for Linus Sytems. You need a page file to save data when you are using your operation system. If don't have enough RAM OS doesn't have enough space in your memory to work properly. So, in such case OS uses a paging file. When you have 512 Mb or more...
Answer for abstraction Abstraction is a oops concept. It provides a facility to hide some unimportant information and provide us some information which is important for the client programmers. Eg If we consider a car which has lot of parts such as wheels steering DVD player etc. We need to know how...
When all references to an object is Java are gone, the garbage collector will come along and free up the memory used by that object. Every Java object has a method named finalize , which is called by the garbage collector when the memory for that object is being deallocated. "Finalization" is...
The java.lang.System class contains several useful classfields and methods. It cannot be instantiated.Facilities providedby System: standard output error output streams standard input and access to externally defined properties andenvironment variables. A utility method for quickly...
I would say Computer science because it covers things into moredepth. Also there is a wider choice to pick from so you're notlimited.
final keyword when used with a variable makes it a constant whichmeans we cannot change it's value further: eg: final int MY_CONST = 30; // creating a constant with final keyword MY_CONST = 40;//this line will generate an error as MY_CONST is aconstant -------------------------------------- static...