How do you write a program in c to calculate age?
//program to find the age of given date of birth
#include <dos.h>
#include <stdio.h>
int main(void)
{
struct date d;
int bd,bm,by,day,m,y,cd,cm,cy;
clrscr();
getdate(&d);
printf("\t**********WELCOME TO AGE FINDER PLACE************\n");
printf("\t*************************************************\n\n");
cd=d.da_day;
cm=d.da_mon;
cy=d.da_year;
printf("Enter the birthe date : ");
scanf("d%d",&bd,&bm,&by);
{
if(cd<bd)
{
cm=cm-1;
cd=cd+30;
day=cd-bd;
}else
day=d.da_day-bd;
}
{
if(cm<bm)
{
cy=cy-1;
cm=cm+12;
m=cm-bm;
}else
m=d.da_mon-bm;
}
y=cy-by;
printf("your age is:-\n");
printf("year=%d\tmonth=%d\tday=%d\n",y,m,day);
getch();
}
//by DILKASH
from MANUU
What is the differences between Telnet and FTP?
The Difference Between a File Server & an FTP Server
Functiono File servers store data for an entire network, just as an individual computer's hard drive stores data for that individual computer. File Transfer Protocol (FTP) servers run an FTP application to exchange files over the Internet, which is the world's largest network.
Similaritieso File serving and FTP serving are both networking methods that involve file transfer between computers. FTP servers need to work together with file servers in order to function. In a network using FTP, file servers store data while FTP servers transmit that data over the Internet, with both being necessary for file transfer to occur.
o FTP servers download files from or upload files to file servers. FTP servers move files to and from file server locations. FTP servers require file servers, but file servers do not require FTP servers, since file servers also serve various intranet networks not connected to the Internet.
http://www.ehow.com/facts_6885629_difference-file-server-ftp-server.html
-RLSB
What factors determine the structure and content of a training program?
The organizational structure, work activities, and informational content identified in a job analysis serve as the basis for developing both the structure and content of a training program
Why the best programmers do not always make the best software managers?
Programmers tend to think like programmers rather than users. So while they may be capable of producing highly complex software, they may not be able to present the software in a user-friendly manner. Thus we have user interface specialists who spend a huge amount of time and vast amounts of money testing user interfaces upon users of varying degrees of ability. They can then present programmers with their findings and modify their software to provide more intuitive interfaces. Even then, they can still get it completely wrong because someone has to program the interfaces for the test subjects, thus the chosen interfaces are simply the best of what could be bad selection of interfaces. The best of the bad is still bad. So interface specialists spend even more time and money improving the test interfaces. Eventually, one hopes, they get it right and the programmer can finally create software that is intuitive.
With graphical user interfaces (GUIs) like Windows, designing interfaces becomes easier because the interface already exists, the programmer simply has to ensure his interface is consistent with those of other programs, thus making it more intuitive because users already familiar with one application's interface can use the same skills to navigate any similar interface. However, this relies on the fact the GUI is well-designed to begin with and anyone who's used Windows knows just how frustrating an interface it can be. Worse, each new version of Windows changes the interface in various ways, removing familiar features or adding new features. hopefully for the better, but not always. The removal of the start button from Windows 8 was particularly frustrating because the GUI was targeted towards touch-screen users -- which is fine unless you don't happen to have a touch-screen. so although the majority of Microsoft programmers are highly-skilled individuals, even they can get it hopelessly wrong. The software itself is of an extremely high quality, but it's not much use if users are constantly frustrated by the inadequacies of the interface. However it would unfair to blame the programmers for a poor interface -- the user-interface specialists are the ones giving the least value for money. But it is money that has to be spent if an interface is to improve.
Why do you need a constructor as a class member?
A constructor is not a mandatory member that we need to code specifically for a class. While creating a class, even if we miss out coding the constructor, Java would create a default constructor all by itself.
The constructor is usually the place where we initialize things that are required by the class. Hence it is a good practice to code the constructor for our class.
Tip: If you do not want anyone to instantiate your class, you can declare the constructor as private. In that way no other class can instantiate your class.
Algorithm to add two polynomials?
#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
struct poly
{
int coeff;
int x;
int y;
int z;
struct poly * next;
};
class polynomial
{
private :
poly *head;
public:
polynomial():head(NULL)
{
}
void getdata();
void display();
void insert(poly *prv,poly *curr,poly *p);
polynomial operator + (polynomial );
};
polynomial polynomial :: operator +(polynomial px2)
{
polynomial px;
poly *t1,*t2,*t3,*last;
t1 = head;
t2 = px2.head;
px.head = NULL;
while(t1 != NULL && t2 != NULL)
{
t3 = new poly;
t3->next = NULL;
if(t1->x NULL)
{
head->next = node;
node->next = NULL;
}
else
insert(head,head->next,node);
}
}
void polynomial :: display()
{
poly *temp;
temp = head;
cout << endl << "Polynomial :: ";
while(temp != NULL)
{
if(temp->coeff < 0)
cout << " - ";
cout << abs(temp->coeff);
if(temp->x != 0)
cout << "x^" << temp->x;
if(temp->y != 0)
cout << "y^" << temp->y;
if(temp->z != 0)
cout << "z^" << temp->z;
if(temp->next->coeff > 0)
cout << " + ";
temp = temp->next;
}
cout << " = 0";
}
void main()
{
polynomial px1,px2,px3;
clrscr();
px1.getdata();
px2.getdata();
px3 = px1 + px2;
px1.display();
px2.display();
px3.display();
getch();
}
Definition of Identifier in C Language?
Identifiers or symbols are the names you supply for variables,type,function and labels.Identifiers names must differ in spelling and case from any keyword.you cannot use keyword as an identifier.you can create an identifier by specifying it in the declaration of a variable,type or function.
What is structured query language an example of?
SQL has much to do with a researcher at IBM, Edgar F. (Ted) Codd, an Oxford-trained mathematician, who researched what was termed "the relational model" for data representation.
SQL, the standard that was later developed from Codd's work, provides a means of describing data with its natural structure only - that is, without superimposing any additional structure for machine representation purposes.
This means that SQL provides data independence from hardware and storage implementation, together with a high level, nonprocedural language for accessing and querying data.
Reference: http://www.nap.edu/readingroom/books/far/ch6.html
Hexadecimal numbers can be manipulated in exactly the same was as decimal. The digits we can use are: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Let us take two numbers, say, 7 and 6. In decimal, we can count from 7 upward by 6... 8, 9, 10, 11, 12, 13. In Hexadecimal, we can do the same... 8, 9, A, B, C, D. Let's take two more numbers, D and 4. We count upwards from D by 4... E, F, 10, 11. Notice that after F, there is no other digit we can use, to we carry 1 to the 16's column and carry on counting to reach the final figure of 11Hex. This is just the same as the decimal procedure of carrying to the tens column after we pass 9. Once you have got your head around the idea of extra digits, the rest of it is as easy as decimal.
What is the aim of computer languages?
The aim of all computer languages is to make it easier for humans to create and modify machine code, the native language of the machine.
What is the Concept of data processing?
Data processing is basically the transformation of raw data to import data through a procedure. Data is controlled to create results that lead to the goals of an issue or improvement of a current circumstance. Methods of data processing:-
Who developed the first planting machine?
The first tractors were steam powered vehicles in the 1860s.
What is the Logo command to draw alphabet k?
Starting from the centre, move forward 100 pixels, turn 180 degrees and move forward 100 pixels (returning to the centre). Then turn 120 degrees. Repeat three times.
repeat 3 [fd 100 rt 180 fd 100 lt 120]
What computer language should you learn first?
I would recommend that you A) develop and understanding of HTML and B) learn javascript. It is a very easy language and there are a plethora of examples and good explanations of how to write it. Visual basic is a good language to learn as well, but with javascript all you need is a text editor and a web browser and you can practice on any computer.
When is a computer language called machine dependent?
When the code is targeted towards a specific machine architecture. Machine code is entirely machine-dependent, as is the low-level assembly language used to produce that machine code. High-level languages are not machine dependant, however source code can still be targeted towards a specific architecture or platform. Such code is non-portable, however many high-level languages provide methods to filter machine-dependant or platform-dependant code such that the same source code can be compiled on different machines and platforms.
What do you call a group of computers that are able to communicate with each other?
Network protocols allows computers to speak with each other. The most common protocol used today is TCP/IP, or the Transmission Control Protocol/Internet Protocol suite. Other protocols are still in use but are in fairly rapid decline as more devices and software standardize themselves to Internet connectivity.
Is cobol a high-level language?
Oh my god, have you been reading my old books? Forget COBOL learn C++. What is this a nostagia in old computer languages. Next, I'll be answering questions about Fortran. Learn Linux while you're at it, it's a throwback to Unix and does anybody remember BASIC? or should we just go back to the Dead Sea Scrolls?
Is memory an example of optical storage?
No. Optical storage is something that can be read using the aid of light. So CD's, DVD's would be examples of optical storage.
Spinning hard drives are not optical either. They use magnetism to store data.
What is The statements written by the programmer?
In languages that use a C-style syntax (e.g., C, C++ and Java) all code is written using expressions. Expressions may be combined to produce more complex expressions, however an expression or group of expressions only becomes a statement when terminated by a semi-colon. A group of statements enclosed by braces {} is known as a compound statement or code block.
Programming Logic and Design Fifth Edition solution manual?
Use single subscripted array(s) to solve the following problem. A company pays its sales people on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $3000 in sales in a week receives $200 plus 9% of $3000, or a total of $470. Design a program (using an array of counters) that determines how many of the salespeople earned salaries in each of the following ranges.
WRITE A Program to convert integar to hexadecimal in c language?
Use the %X modifier of printf.
Code Example:#include int main(void) { unsigned int iMyNumber = 255; printf("The number %u interpreted as hexadecimal is %X.\n", iMyNumber, iMyNumber); return 0; }How do you make C plus plus Program Autorun?
This is not a C++ question. It is an operating system question. Different operating systems have different ways of making programs run on startup. Most of them have several different ways to accomplish this. In MS Windows, one way is to place a shortcut for the program in the "{percent}userprofile{percent}\Start Menu\Programs\Startup" shell folder.
What you mean by pure oops language?
An OOP language is an object oriented programming language. The plural is therefore OOP languages, not oops language.
A pure OOP language is one that does not have the concept of a primitive data type. That is, a data type that has no member methods whatsoever. In pure OOP languages, all primitive data types (pointers, characters, integers, floating point and array types) are implemented as objects that are associated with a default constructor, copy and move constructors, conversion constructors, copy and move assignment operators, type conversion operators and a destructor, all of which are members of the object's class.
Explain all the major types of documentation?
Documentation
· Software documentation or source code documentation is written text that accompanies computer software.
· It either explains how it operates or how to use it, and may mean different things to people in different roles.
Role of documentation in software developmentDocumentation is an important part of software engineering. Types of documentation include:1. Requirements - Statements that identify attributes, capabilities, characteristics, or qualities of a system. This is the foundation for what shall be or has been implemented.
2. Architecture/Design - Overview of software. Includes relations to an environment and construction principles to be used in design of software components.
3. Technical - Documentation of code, algorithms, interfaces, and APIs.
4. End User - Manuals for the end-user, system administrators and support staff.
5. Marketing - How to market the product and analysis of the market demand.
Requirements documentationRequirements documentation is the description of what a particular software does or shall do. It is used throughout development to communicate what the software does or shall do. It is also used as an agreement or as the foundation for agreement on what the software shall do. Requirements are produced and consumed by everyone involved in the production of software: end users, customers, product managers, project managers, sales, marketing, software architects, usability engineers, interaction designers, developers, and testers, to name a few. Thus, requirements documentation has many different purposes.Requirements come in a variety of styles, notations and formality. Requirements can be goal-like (e.g., distributed work environment), close to design (e.g., builds can be started by right-clicking a configuration file and select the 'build' function), and anything in between. They can be specified as statements in natural language, as drawn figures, as detailed mathematical formulas, and as a combination of them all.The variation and complexity of requirements documentation makes it a proven challenge. Requirements may be implicit and hard to uncover. It is difficult to know exactly how much and what kind of documentation is needed and how much can be left to the architecture and design documentation, and). The need for requirements documentation is typically related to the complexity of the product, the impact of the product, and the life expectancy of the software. If the software is very complex or developed by many people (e.g., mobile phone software), requirements can help to better communicate what to achieve. Traditionally, requirements are specified in requirements documents (e.g. using word processing applications and spreadsheet applications). To manage the increased complexity and changing nature of requirements documentation (and software documentation in general), database-centric systems and special-purpose requirements management tools are advocated. Architecture/Design documentationArchitecture documentation is a special breed of design document. In a way, architecture documents are third derivative from the code (design document being second derivative, and code documents being first). Very little in the architecture documents is specific to the code itself. These documents do not describe how to program a particular routine, or even why that particular routine exists in the form that it does, but instead merely lays out the general requirements that would motivate the existence of such a routine. A good architecture document is short on details but thick on explanation. It may suggest approaches for lower level design, but leave the actual exploration trade studies to other documents.A very important part of the design document in enterprise software development is the Database Design Document (DDD). It contains Conceptual, Logical, and Physical Design Elements. The DDD includes the formal information that the people who interact with the database need. The purpose of preparing it is to create a common source to be used by all players within the scene. The potential users are:
Database Designer;Database Developer;Database Administrator;Application Designer;Application Developer
When talking about Relational Database Systems, the document should include following parts:
· Entity - Relationship Schema (enhanced or not), including following information and their clear definitions:
o Entity Sets and their attributes
o Relationships and their attributes
o Candidate keys for each entity set
o Attribute and Tuple based constraints
· Relational Schema, including following information:
o Tables, Attributes, and their properties
o Views
o Constraints such as primary keys, foreign keys,
o Cardinality of referential constraints
o Cascading Policy for referential constraints
o Primary keys
Technical documentation
This is what most programmers mean when using the term software documentation. When creating software, code alone is insufficient. There must be some text along with it to describe various aspects of its intended operation. It is important for the code documents to be thorough, but not so verbose that it becomes difficult to maintain them. Several How-to and overview documentation are found specific to the software application or software product being documented by API Writers. This documentation may be used by developers, testers and also the end customers or clients using this software application. Today, we see lot of high end applications in the field of power, energy, transportation, networks, aerospace, safety, security, industry automation and a variety of other domains. Technical documentation has become important within such organizations as the basic and advanced level of information may change over a period of time with architecture changes. Hence, technical documentation has gained lot of importance in recent times, especially in the software field.
Often, tools such as Doxygen, NDoc, javadoc, EiffelStudio, Sandcastle, ROBODoc, POD, TwinText, or Universal Report can be used to auto-generate the code documents-that is, they extract the comments and software contracts, where available, from the source code and create reference manuals in such forms as text or HTML files. Code documents are often organized into a reference guide style, allowing a programmer to quickly look up an arbitrary function or class.
The idea of auto-generating documentation is attractive to programmers for various reasons. For example, because it is extracted from the source code itself (for example, through comments), the programmer can write it while referring to the code, and use the same tools used to create the source code to make the documentation. This makes it much easier to keep the documentation up-to-date.
User documentationUnlike code documents, user documents simply describe how a program is used.In the case of a software library, the code documents and user documents could be effectively equivalent and are worth conjoining, but for a general application this is not often true.
Typically, the user documentation describes each feature of the program, and assists the user in realizing these features. A good user document can also go so far as to provide thorough troubleshooting assistance. It is very important for user documents to not be confusing, and for them to be up to date. User documents need not be organized in any particular way, but it is very important for them to have a through index. Consistency and simplicity are also very valuable. User documentation is considered to constitute a contract specifying what the software will do. API Writers are very well accomplished towards writing good user documents as they would be well aware of the software architecture and programming techniques used. See also Technical Writing.
There are three broad ways in which user documentation can be organized.
1. Tutorial: A tutorial approach is considered the most useful for a new user, in which they are guided through each step of accomplishing particular tasks.[1]
2. Thematic: A thematic approach, where chapters or sections concentrate on one particular area of interest, is of more general use to an intermediate user. Some authors prefer to convey their ideas through a knowledge based article to facilitating the user needs. This approach is usually practiced by a dynamic industry, such as Information technology, where the user population is largely correlated with the troubleshooting demands [2]
3. List or Reference: The final type of organizing principle is one in which commands or tasks are simply listed alphabetically or logically grouped, often via cross-referenced indexes. This latter approach is of greater use to advanced users who know exactly what sort of information they are looking for.
Marketing documentationFor many applications it is necessary to have some promotional materials to encourage casual observers to spend more time learning about the product. This form of documentation has three purposes:-1. To excite the potential user about the product and instill in them a desire for becoming more involved with it.
2. To inform them about what exactly the product does, so that their expectations are in line with what they will be receiving.
3. To explain the position of this product with respect to other alternatives.
One good marketing technique is to provide clear and memorable catch phrases that exemplify the point we wish to convey, and also emphasize the interoperability of the program with anything else provided by the manufacturer.
Who invented the logo programming language?
That depends entirely on which definitions of "invent" and "programming language" you are using!
Countess Augusta Ada King (commonly known as Ada Lovelace), was history's first computer programmer. She took a great interest in Charles Babbage's design idea for a computer (which he called the Analytical Engine), and in 1843 she wrote a computer program to calculate Bernoulli Numbers, designed to run on Babbage's Engine. Although the Engine was never produced in either of their lifetimes, Lovelace's example program is preserved in her notes and, had Babbage finished the Engine, it would have executed perfectly. Therefore, Ada Lovelace was the first to find a method with which to write instructions that could be comprehended and executed by a computer. This is a common dictionary definition of a programming language, but it's not quite the same as a modern programming language.
During the 1940's, Konrad Zuse created the first working, program-controlled computer. Programs were read off punched tape. Zuse also designed the first high-level programming language, Plankalkül, but there was little interest in his papers and it wasn't implemented until the 1970's, decades after many other modern programming languages had been created.
After the computer was created, programmers used assembly language to write their instructions, but assembly is essentially machine code (binary) in a more human-readable format. Each computer had its own version of assembly, and most were built as part of a collaborative process within a company.
In 1953, John Backus proposed FORTRAN to his bosses at IBM. FORTRAN was the first modern programming language to be created and implemented; it was followed shortly by COBOL and LISP. FORTRAN might not be as fancy as some of the languages we have today, but it definitely has a lot in common with them. It included if statements, loops, basic mathematical operators, and file input/output. Later versions introduced data types, subroutines, and comments, to name a few.