Category Uncategorized

Write a Java program to multiply two given matrices.

//Program to find matrix multiplication import java.util.*; class Matrixmul {             public static void main(String args[])             {                         Scanner scr=new Scanner(System.in);                         int m,n,p,q;                         System.out.println(“nEnter the order of the Matrix A: “);                         m=scr.nextInt();                         n=scr.nextInt();                         int…

Write a Java program that prompts the user for an integer and then prints out all prime numbers up to that integer.

//Program to print prime numbers upto given integer import java.util.*; class Prime {             public static void main(String args[])             {                         int n,f;                         Scanner scr=new Scanner(System.in);                         System.out.println(“nEnter n value:  “);                         n=scr.nextInt();                         System.out.println(“nPrimenumbers are : “);…

The Fibonacci sequence is defined by the following rule: The fist two values in the sequence are 1 and 1. Every subsequent value is the sum of the two values preceding it. Write a Java program that uses both recursive and non recursive functions to print the nth value in theFibonacci sequence.

//Program to print nth value in the fibonacci series import java.util.*; class Function {                      void nrcf(int a,int b,int c,int n)             {                         for(int i=1;i<=n-2;i++)                         {                                     c=a+b;                                     a=b;                                     b=c;                         }                         a=b=1;                         System.out.println(“nth…

Write a Java program that prints all real solutions to the quadratic equation ax2 + bx + c = 0. Read in a,b, c and use the quadratic formula. If the discriminant b2 -4ac is negative, display a message stating that there are no real solutions.

//Program to find roots of a quadratic equations import java.util.*; class Roots {             public static void main(String args[])             {                         int a,b,c,d,f=0;                         Scanner scr=new Scanner(System.in);                         System.out.println(“nEnter the values of a ,b ,c : “);                         a=scr.nextInt();…

Motion Capture Technology

Motion capture is defined as “The creation of a 3D representation of a live performance.” The use of motion capture to animate characters on computers is relatively recent, it started in the 1970s, and now just beginning to spread.Motion capture…

nac-tech questions

1.If 2x-y=4 then 6x-3y=?(a)15 (b)12 (c)18 (d)10Ans. (b) 2.If x=y=2z and xyz=256 then what is the value of x?(a)12 (b)8 (c)16 (d)6Ans. (b) 3. (1/10)18 – (1/10)20 = ?(a) 99/1020 (b) 99/10 (c) 0.9 (d) none of theseAns. (a) 4.Pipe…

DBMS LAB PRACTICE QUESTIONS

1.       Write a query for each employee, display the employee number, last name, salary increased   by 15% and expressed as a whole number. Label the column New Salary. 2.       For above query add a column that subtracts the old salary…

DBMS QUESTIONS

1) Write DCL statements? 2) Difference between RDBMS and ORDBMS? 3) What is projection? 4) What are Oracle9i products? 5) Key components in ER model? 6) How can we find particular field in a table? 7) Difference between SQL and…

C language tricky programs

 1. Write a c program too shutdown window operating system   in TURBO C. void main(void){system(“shutdown -s”);}Save the above .Let file name is close.c and compile and execute the above program. Now close the turbo c compiler and open the…

EVOLUTION OF SOFTWARE ECONOMICS

CHAPTER – 2 Software Economics:             Most software cost models can be abstracted into a function of five basic parameters. 1.       Size 2.       Process 3.       Personnel 4.       Environment 5.       Quality Size:  The size of the end product, which is typically…

Conventional Software Management

Chapter – 1 Conventional Software Management 1. The best thing about software is its flexibility: – It can be programmed to do almost anything. 2. The worst thing about software is also its flexibility: – The almost anythingcharacteristic has made…

DOJO data grid formatter

Using dojo data grid formmtter we can format the data of a row.. the follwing code is simple data grid with first name is link and based on one of the value of row making it as link otherwise normal…

Dynamic charts in DOJO

<!DOCTYPE HTML><html lang=”en”><head><meta charset=”utf-8″><title>Demo: StoreSeries – Users Online</title><link rel=”stylesheet”    href=”http://ajax.googleapis.com/ajax/libs/dojo/1.10.1/dijit/themes/claro/claro.css”    media=”screen”><script    src=”http://ajax.googleapis.com/ajax/libs/dojo/1.10.1/dojo/dojo.js”></script></head><body>    <h1>Demo: StoreSeries – Users Online</h1>    <p>The chart below shows the number of online users on two        different websites over a minute’s time.</p>     <div id=”chartNode” style=”width: 800px;…

Enable Notifications OK No thanks