I dont know how to generate the nos. randomly.I think it should follow some logic.So the following prog is made upon the inputs given by a user.
#include
#include
void main()
{ int a[5][5],i,j,s;
printf("\nEnter elements of the 5X5 matrics:\n");
for(i=0;i<5;i++)
{ for(j=0;j<5;j++)
{ scanf("%d",&a[i][j]);
if(a[i][j]<0 a[i][j]>100)
{ printf("\nThe no. should be between 1 & 100\nEnter Again:");
scanf("%d",&a[i][j]);
}
}
}
printf("\nThe given matrix is:\n");
for(i=0;i<5;i++)
{ for(j=0;j<5;j++)
printf("%d",a[i][j]);
printtf("\n");
}
printf("\nThe sum of each row:");
for(i=0;i<5;i++)
{ for(j=0;j<5;j++)
s+=a[i][j];
printf("%d->%d\n",i+1,s);
}
getch();
}
Hope this would help you.
What is a supermarket checkout system?
All these processes are very helpful for the purposes of dealing with an individual customer's purchases. However, when computers are linked in a network, many new uses are possible.
Now, I am going to draw a different system boundary. The components of this supermarket checkout system are the checkout terminal, the network and the database server. A database server is used to make the data in databases available to other computers on the network, and therefore to users. You met a specialised form of database server in Section 14.2: the FirstClass server. In the following sections, I'll focus on the network first and then look at the database server.
You might be wondering about the users of the system: the customer and the checkout operator. For the time being, we are focusing on the computers and network, rather than thinking about the end users.
To count the no of digits in an integer?
Say you have some integer a. a
First take it's absolute value. |a|
Next log it base 10. log10 |a|
Truncate this value, then add 1. trunc ( log10 |a| ) + 1
You now have the number of digits.
What are the 4 basic things a CPU does with 2 pieces of info?
There are way more than 4 things - and even "basic" things - a computer can do with two pieces of information. For example, add, subtract, multiply, divide, get the remainder of a division (modulos), compare, boolean AND, boolean OR, boolean XOR, exchange the two values.
There are four "main" types of text alignment.
What are the main advantages and disadvantages of using a layered network architecture?
The following are the advantages of a layered architecture:
Layered architecture increases flexibility, maintainability, and scalability. In a Layered architecture we separate the user interface from the business logic, and the business logic from the data access logic. Separation of concerns among these logical layers and components is easily achieved with the help of layered architecture.
Multiple applications can reuse the components. For example if we want a windows user interface rather than a web browser interface, this can be done in an easy and fast way by just replacing the UI component. All the other components like business logic, data access and the database remains the same. Layered architecture allows to swap and reuse components at will.
Layered architecture enables teams to work on different parts of the application parallely with minimal dependencies on other teams.
Layered architecture enables develop loosely coupled systems.
Different components of the application can be independently deployed, maintained, and updated, on different time schedules.
Layered architecture also makes it possible to configure different levels of security to different components deployed on different boxes. sO Layered architecture, enables you to secure portions of the application behind the firewall and make other components accessible from the Internet.
Layered architecture also helps you to test the components independently of each other.
The following are the disadvantages of a layered architecture:
There might be a negative impact on the performance as we have the extra overhead of passing through layers instead of calling a component directly.
Development of user-intensive applications can sometime take longer if the layering prevents the use of user interface components that directly interact with the database.
The use of layers helps to control and encapsulate the complexity of large applications, but adds complexity to simple applications.
Changes to lower level interfaces tend to percolate to higher levels, especially if the relaxed layered approach is used.
A group of half a byte (4 bits) is referred to as a nibble.
I would suggest you start with a visit to your home county community college. They are typically more community oriented, and open to prospective students in your type of situation. You can request to speak to an enrollment specialist in the Admissions Office who will be able to guide and direct you. The community college - to start with - is also less expensive, smaller class size, and better student to professor ratio. This means more individualized attention. Today, colleges are a mixed bag in terms of ages with many individuals - because of the job market - changing careers. You should fair well there.
Are general purpose computers used mostly to control something else?
No.
It is possible to program them for that purpose, but they have many more uses that have nothing to do with control.
Is it true or false that modern OSs are interrupt driven?
Modern OSs making use of multi-tasking tend to be interrupt-driven.
What is the size of L1 and L2 cache?
Usually the size of the L2 cache will be larger than the L1 cache so that if data hit in L 1 cache occurs, it can look for it in L 2 cache.. If data is not in both of the caches, then it goes to the main memory...
Threads belonging to the same process share the?
Threads belonging to the same process share the same resources and address space.
No, HAL is a fictitious computer that appears in the Arthur C. Clark book and Stanley Kubrick movie 2001 a Space Odyssey. No such machine exists nor is one likely to ever exist.
What is another word for using the word another?
additional.
OR
any other
OR
any more
---
OR
another
OR
one more
How many nibbles are there in this 0010101111001011?
A nibble is a term given to one half of one byte. Since a byte is eight bits, a nibble would be four bits.
The number 0010 1011 1100 1011 contains four nibbles.
Which class is considered as the superclass of all the classes?
It depends on the language. Java provides the Objectsuperclass (defined in java.lang) from which all other classes must be derived. This allows us to treat any Java object as being "of the same type". This is not necessarily a good thing -- separate types should be kept separate -- however garbage collection would be difficult to implement without a common base class to refer to every type of object.
C++, on the other hand, is not a "pure" object-oriented language; it is a multi-paradigm (procedural, object-oriented and generic). Programmers are free to decide for themselves how to classify user-defined objects, but the built-in types (such as int and double) are not derived from classes, so there can be no superclass. If there were, it would not be possible to write (let alone support) low-level C-style code where there can be no classes of any type. In addition, the standard library types (such as vector and string) have no superclass. In particular, a vector