Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

java program20  December 16, 2010 at 6:13 PM
. Write a function Model-of-Category for a Tata motor dealers, which accepts category of car customer is looking for and returns the car Model available in that category. the function should accept the following categories "SUV", "SEDAN", "ECONOMY", and "MINI" which in turn returns "TATA SAFARI" ... View Questions/Answers

java program18  December 16, 2010 at 6:13 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tons?).Add a behavior to change the color and loading capacity. Display the updated truck details ... View Questions/Answers

java program17  December 16, 2010 at 6:12 PM
. Create Book having following attributes: Book ID, Title, Author and Price. Create Periodical which has the following additional attributes: Period (weekly, monthly etc...) .Add a behavior to modify the Price and the Period of the periodical. Display the updated periodical details ... View Questions/Answers

Advertisement

java program16  December 16, 2010 at 6:11 PM
. Create Product having following attributes: Product ID, Name, Category ID and UnitPrice. Create ElectricalProduct having the following additional attributes: VoltageRange and Wattage. Add a behavior to change the Wattage and price of the electrical product. Display the updated ElectricalProduct... View Questions/Answers

java program14  December 16, 2010 at 6:11 PM
. Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns the new balance which is the sum of amount & balance. Similarly, the withdraw method would accept the attributes amount & balance & returns the new ... View Questions/Answers

java program13  December 16, 2010 at 6:10 PM
Create a class called Student which has the following methods: i. Average: which would accept marks of 3 examinations & return whether the student has passed or failed depending on whether he has scored an average above 50 or not. ii. Inputname: which would accept the name of the student &... View Questions/Answers

java program12  December 16, 2010 at 6:09 PM
Create a calculator class which will have methods add, multiply, divide & subtract ... View Questions/Answers

java program7  December 16, 2010 at 6:08 PM
Develop the program calculatePipeArea. It computes the surface area of a pipe, which is an open cylinder. The program accpets three values: the pipes inner radius, its length, and the thickness of its wall ... View Questions/Answers

java program 8  December 16, 2010 at 6:07 PM
Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units and a height of 1/2 * v * t where v is the speed at t. ... View Questions/Answers

java program  December 16, 2010 at 6:07 PM
. Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed. Speed is distance/time, and the Pythagorean Theorem is c2 = a2 + b2. ... View Questions/Answers

Exception Handling-Error Messages in Program  December 16, 2010 at 5:38 PM
Sorry about the first code block: import java.util.*; class GradeException extends Exception{ public GradeException(String s){ System.out.println(s); } } ----jGRASP exec: javac -g C:\Test\GradeException.java ----jGRASP: operation complete . ... View Questions/Answers

java program  December 16, 2010 at 5:36 PM
. Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results. ... View Questions/Answers

java program  December 16, 2010 at 5:35 PM
. Create Product having following attributes: Product ID, Name, Category ID and UnitPrice. Create ElectricalProduct having the following additional attributes: VoltageRange and Wattage. Add a behavior to change the Wattage and price of the electrical product. Display the updated ElectricalProduct... View Questions/Answers

java program  December 16, 2010 at 5:34 PM
Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept the grade of the employee & return grade. ... View Questions/Answers

java program  December 16, 2010 at 5:34 PM
Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept the grade of the employee & return grade. ... View Questions/Answers

Exception Handling-Error Messages in Program  December 16, 2010 at 5:33 PM
Hi Friend, I am having trouble running this code as per my prior question on Exception handling of yesterday.I may be putting into the wrong files, I'm not sure, but could you help me with this. Here is the code with the error messages as Follows: import java.util.*; class GradeException extends ... View Questions/Answers

java program  December 16, 2010 at 5:32 PM
. Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns the new balance which is the sum of amount & balance. Similarly, the withdraw method would accept the attributes amount & balance & returns the new ... View Questions/Answers

java program  December 16, 2010 at 5:23 PM
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes ... View Questions/Answers

java program  December 16, 2010 at 5:17 PM
Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ? t in t time units and a height of 1/2 * v * t where v is the speed at t. ... View Questions/Answers

java program  December 16, 2010 at 5:14 PM
. Develop the program calculatePipeArea. It computes the surface area of a pipe, which is an open cylinder. The program accpets three values: the pipes inner radius, its length, and the thickness of its wall. ... View Questions/Answers

Java Question  December 16, 2010 at 3:18 PM
can u give me one expample in which conditions we are using Interfaces in real time Project?? ... View Questions/Answers

static  December 16, 2010 at 2:32 PM
what r the main uses of static in java ... View Questions/Answers

what is the use of clone() in real time scenario?  December 16, 2010 at 2:13 PM
what is the use of clone() in real time scenario? ... View Questions/Answers

creating reports in java  December 16, 2010 at 12:30 PM
how to create reports automatically in java and send it via mail by scheduling tine for weekly,monthly basis ? ... View Questions/Answers

How to forward the control from one jsp to another?  December 16, 2010 at 12:13 PM
Hi! This is Prasad Jandrajupalli. I have the 3 JSP's, but I want communicate with each other.i.e. First JSP is communicating with the second JSP, Second JSP is not communicate with the Third JSP. I want forward the control from first jsp to second and second jsp to third jsp,along ... View Questions/Answers

Add a root element  December 16, 2010 at 11:52 AM
i have one doubt, This is my current xml doc. ‚?¶ But I want add a tag at first and last line of a xml by using JDOM(SAX Builder). Like ‚?¶..... ... View Questions/Answers

landscape orientation iPad  December 16, 2010 at 11:36 AM
In my iPad application, i want to change the orientation as landscape only.. how could i be done? Currently i'm using // Ensure that the view controller supports rotation and that the split view can therefore show in both portrait and landscape. - (BOOL)shouldAutoro... View Questions/Answers

how to validate e,ail id and phne number in student form  December 16, 2010 at 10:37 AM
how to validate e,ail id and phne number in student form ... View Questions/Answers

how to validate e,ail id and phne number in student form  December 16, 2010 at 10:37 AM
how to validate e,ail id and phne number in student form ... View Questions/Answers

how to validate e,ail id and phne number in student form  December 16, 2010 at 10:37 AM
how to validate e,ail id and phne number in student form ... View Questions/Answers

web page  December 16, 2010 at 10:29 AM
1.Create a web page with the following using HTML i) To embed an image map in a web page ii) To fix the hot spots iii) Show all the related information when the hot spots are clicked. ... View Questions/Answers

Exception Handling  December 16, 2010 at 9:48 AM
Hi, I really appreciate the help I have gotten,I have 3 more problems to go by Monday.I will need help with all three. I hope someone is willing to help. So far I have found this web site to be the best for help, other sites I have tried only look down at you and give you attitude.I got sick mid ... View Questions/Answers

how tohow to create a table with primary key and foreign keyhow to create a table with primary key and foreign key  December 16, 2010 at 8:50 AM
how to create a table using java language with primary key and foreign key ... View Questions/Answers

Remember Me  December 16, 2010 at 7:49 AM
How to Create a PHP AutoLogin ('Remember Me') Feature using Cookies???? ... View Questions/Answers

Help with a maintenance tracking program.  December 16, 2010 at 1:48 AM
The Pace Trucking Company has hired you to improve its maintenance tracking. After a certain combination of miles and engine hours, truck engines are required to have preventative maintenance. The trucking company would like a program to allow the user to enter the truck's data and then display w... View Questions/Answers

Binary Search Tree  December 16, 2010 at 1:40 AM
Question-1 ) Modify the BinarySearchTree class so that the iterators are fail-fast.Test your class with amain method ? Question-2 ) Modify the BinarySearchTree class so that the BinarySearchTree objects are serializable.Test your class with a project that ... View Questions/Answers

plz Help me find the correct programs answers  December 16, 2010 at 12:17 AM
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes Create a calculator class which will have methods add, multiply, divide & subtract... View Questions/Answers

Plz Provide correct program code for all questions.  December 15, 2010 at 11:58 PM
Write a program to find the difference between sum of the squares and the square of the sums of n numbers? Develop a program that accepts the area of a square and will calculate its perimeter. Develop the program calculateCylinderVolume., which accepts rad... View Questions/Answers

Java code  December 15, 2010 at 10:32 PM
Write a function Model-of-Category for a Tata motor dealers, which accepts category of car customer is looking for and returns the car Model available in that category. the function should accept the following categories "SUV", "SEDAN", "ECONOMY", and "MINI" which in turn returns "TATA SAFARI" , ... View Questions/Answers

Java code  December 15, 2010 at 10:32 PM
Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results. ... View Questions/Answers

Java code  December 15, 2010 at 10:31 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tons‚?¶).Add a behavior to change the color and loading capacity. Display the updated truck details. ... View Questions/Answers

Java code  December 15, 2010 at 10:31 PM
Create Book having following attributes: Book ID, Title, Author and Price. Create Periodical which has the following additional attributes: Period (weekly, monthly etc...) .Add a behavior to modify the Price and the Period of the periodical. Display the updated periodical details. ... View Questions/Answers

Java code  December 15, 2010 at 10:28 PM
Create Product having following attributes: Product ID, Name, Category ID and UnitPrice. Create ElectricalProduct having the following additional attributes: VoltageRange and Wattage. Add a behavior to change the Wattage and price of the electrical product. Display the updated ElectricalProduct d... View Questions/Answers

Java code  December 15, 2010 at 10:27 PM
Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept the grade of the employee & return grade. ... View Questions/Answers

Java code  December 15, 2010 at 10:27 PM
Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns the new balance which is the sum of amount & balance. Similarly, the withdraw method would accept the attributes amount & balance & returns the new ba... View Questions/Answers

Java code  December 15, 2010 at 10:25 PM
Create a class called Student which has the following methods: i. Average: which would accept marks of 3 examinations & return whether the student has passed or failed depending on whether he has scored an average above 50 or not. ii. Inputname: which would accept the name of ... View Questions/Answers

Java code  December 15, 2010 at 10:24 PM
Create a calculator class which will have methods add, multiply, divide & subtract ... View Questions/Answers

Java code  December 15, 2010 at 10:21 PM
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes ... View Questions/Answers

Exception Handling  December 15, 2010 at 9:14 PM
Hi, I really appreciate the help I have gotten,I have 3 more problems to go by Monday.I will need help with all three. I hope someone is willing to help. So far I have found this web site to be the best for help, other sites I have tried only look down at you and give you attitude.I got sick mid ... View Questions/Answers

how to display image and text in single jsp page from the mysql database  December 15, 2010 at 6:37 PM
hello please help me to display the image and text in single jsp page from mysql database if have any reference code please send me Thanks in advance Regards, venkateswararao D ... View Questions/Answers

Image slider in JQuery  December 15, 2010 at 5:54 PM
Hi sir I want to create a image slider in jQuery. Please tell me the name of the best image slider plug-in available. Mention code with your reply. ... View Questions/Answers

check username availability using JSP & JQuery  December 15, 2010 at 5:39 PM
Hi sir I want check username availability using JSP & JQuery. Please add code with your answer. Thnks in advance. ... View Questions/Answers

java  December 15, 2010 at 5:29 PM
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes ... View Questions/Answers

Auto grow Text Area using jQuery plug-in  December 15, 2010 at 5:02 PM
Hi sir How can we make a textarea auto grow ? What is the name of the plug-in used for auto grow text area. Please mention code with your reply. ... View Questions/Answers

jaVA INT  December 15, 2010 at 4:29 PM
Read a text file and precede the line with the line number and write it to another new text file. For example if you create a file Source.txt which has the following contents: Hello there I am supposed to have line numbers preceding me. Is it there ? shall be written to Destinatio... View Questions/Answers

Crop image Using JQuery, servlet or JSP.  December 15, 2010 at 3:59 PM
Hi sir I need the code of Cropping image using JQuery with the help of servlet or JSP. I need both the code Client side as well as of server side. Please Help me. ... View Questions/Answers

what are the components of java platform ?  December 15, 2010 at 3:56 PM
what are the components of java platform ? plz if any1 perfectly know help me to override my conflicts.plz explain briefly. ... View Questions/Answers

java  December 15, 2010 at 3:48 PM
Print the number of lines and words in a given text file. You can create your own text file. ... View Questions/Answers

How to write Java Program  December 15, 2010 at 3:45 PM
how to write a program to find average of 5 student marks . ... View Questions/Answers

Find Browser & it's version using jQuery  December 15, 2010 at 3:13 PM
Hi sir I heard that JQuery have some method which can be used to find the Browser name & its version. I need the code which checks the browser and if it is "Mozilla", it will show its version & & display some message in alert box. Please provide me code ASAP. <... View Questions/Answers

i dont no how to solve it pls  December 15, 2010 at 3:09 PM
Calculate and display the sum of all prime number from 1 to 100 covert in java system codes ... View Questions/Answers

socket programming  December 15, 2010 at 2:33 PM
how to create server socket in web service...it will read parameter from file ... View Questions/Answers

Struts 2 radio button value problem  December 15, 2010 at 2:23 PM
When I use s:radio tag in struts 2, I'm not able to get the selected value using document.getElementById('radioButtonName').value.(Note :- I'm getting proper value in java from jsp) It always gives first radio option's value as the value for any option selected. Ex: When 'Yes' is ... View Questions/Answers

Play Lyrics on media player  December 15, 2010 at 1:12 PM
how to play lyrics on media player(MIDlet) while song is playing in background..its bit urgent... Thanks ... View Questions/Answers

How can we implement Pop-up in JQuery without Plugin?  December 15, 2010 at 1:05 PM
Hi Sir How can we Implement pop-up in JQuery without using plug-in. Please provide me code with detailed answer. Thanks in advance. ... View Questions/Answers

web application  December 15, 2010 at 1:02 PM
Develop a web application to print back the inputs from the user(name, date of birth, address). The solution should have a JSP file which accepts the user‚??s name and sent to Servlets which puts the name in the session and which should be forwarded to another servlet / JSP, which shall print the... View Questions/Answers

Implementing Digits restriction Using JQuery  December 15, 2010 at 12:50 PM
Hi Sir I have following field in my html form : <div>Age<input type="text" name="quantity" id="quantity" /></div> I want to implement two things : 1 if the letter is not digit then display error and don't type anyth... View Questions/Answers

Form validation Using Jquery Plugin  December 15, 2010 at 12:37 PM
Hello sir I want to implement form validation using JQuery Plug-in. My code is : <html> <style type="text/css"> * { font-family: Verdana; font-size: 11px; line-height: 14px; } .submit { margin-left: 125px; margin-top: 10px;} .label { ... View Questions/Answers

how to read and write an xml file using java  December 15, 2010 at 12:37 PM
Hi Can anyone help me how to read and write an xml file which has CData using java ... View Questions/Answers

Inform user to enable JavaScript  December 15, 2010 at 12:19 PM
Hi sir How can we inform user to turn on JavaScript ? Because if we have implemented validation etc with JavaScript , then it will not work. What option we have when this situation occurs ? Please mention code with your answer ? ... View Questions/Answers

header files  December 15, 2010 at 12:12 PM
do you have a all header files of java? ... View Questions/Answers

i want horizontal mlm tree structure code in php with jquery or Ajax  December 15, 2010 at 12:01 PM
i need horizontal mlm tree structure code in php with jquery or Ajax... in advance.. Thank you:) ... View Questions/Answers

how to write greater than symbol in a file using java  December 15, 2010 at 11:48 AM
Hello I want to write < and > symbol in a file but its coming like > and < Please help me ... View Questions/Answers

A Simple program  December 15, 2010 at 11:30 AM
Hi I have written the following code: class FirstRectangle{ public int rectArea(int l,int b){ int farea = l*b; System.out.println("Required Area::"+farea); return farea; }//method }//class class SecondRectangle{ public int area(int l, int b){ ... View Questions/Answers

jsp form  December 15, 2010 at 11:19 AM
hi i have one excuted jsp form.and in that the data should be dispaly on another jsp form.please help me thanks in advance ... View Questions/Answers

Changing background color using JavaScript  December 15, 2010 at 11:02 AM
Hi Sir Is there any way to change the background color using JavaScript ? Please mention code with your answer. ... View Questions/Answers

connect ftp from java program  December 15, 2010 at 10:43 AM
Hi, I need to connect to the ftp and get the files through a java program.. I wrote the following code... import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache.commons.io.FileUtils; import java.io.IOException; publ... View Questions/Answers

connect ftp from java program  December 15, 2010 at 10:43 AM
Hi, I need to connect to the ftp and get the files through a java program.. I wrote the following code... import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache.commons.io.FileUtils; import java.io.IOException; publ... View Questions/Answers

jsp:forward tag ussage  December 15, 2010 at 10:33 AM
can you give me example of how to use jsp:forward tag... i intend to call action class ... View Questions/Answers

sourse code pls  December 15, 2010 at 10:06 AM
customer registration code in java? ... View Questions/Answers

Thread for reading txt file  December 15, 2010 at 9:02 AM
how to use 3 thread to read 3 txt file? To create three threads for reading the file and three threads for getting the strings out of the queue and printing them. thanks ... View Questions/Answers

Develop application for announcements in a workplace  December 15, 2010 at 7:58 AM
Hi, If I wanted to create a mobile application for announcements in a workplace using Android and eclipse, where do I start? Given that I have already installed Android and eclipse and that I know Java basics. Reply needed ASAP :) Thanks! ... View Questions/Answers

Simple ATM Java Code...  December 15, 2010 at 7:20 AM
You are required to write a Graphical User Interface that simulates an ATM by building on the program you wrote for the midterm exam. Specifically, you will be reading customer information into an array list, following which your ATM becomes operational for use by your customers for checking a... View Questions/Answers

Regular Expression Help Help HELP!!!!  December 15, 2010 at 1:43 AM
HI all I am very new to java, but i have this problem i got a string e.g Courses['07001'].Title = "International Students 1"; So i need to extract only the "international Students", i did that by using this expression String regex = "Courses\[\'[^\']+\'\]\.Title *= *\"(... View Questions/Answers

Servlet Counter  December 14, 2010 at 9:37 PM
public class SimpleCounter extends HttpServlet{ int counter = 0; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter pw = response.getWriter(); ... View Questions/Answers

Password need to encrypt while inserting into DB and need to decrypt while responding to forgot password  December 14, 2010 at 7:17 PM
Hi, I need the functionality in JSP to encrypt the password while inserting into DB and need decrypt logic while responding to forgot password. please help me out. Regards, GRR ... View Questions/Answers

output error  December 14, 2010 at 6:48 PM
this is my program import java.io.*; public class separate { public static void main(String[] args)throws IOException { BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in)); String x; int ct=0; String str; System.out.pri... View Questions/Answers

Find Cylinder area By inputting value from user  December 14, 2010 at 6:35 PM
Hello Sir I need the code for calculating the area of a cylinder in which it asks radius value from user and then calculate area using this radius value. Please provide me complete code. Hope you will not disappoint me. ... View Questions/Answers

java code  December 14, 2010 at 6:14 PM
Write a function Model-of-Category for a Tata motor dealers, which accepts category of car customer is looking for and returns the car Model available in that category. the function should accept the following categories "SUV", "SEDAN", "ECONOMY", and "MINI" which in turn returns "TATA SAFARI" , ... View Questions/Answers

java code  December 14, 2010 at 6:13 PM
Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any type of numeric values and returns the results. ... View Questions/Answers

java code  December 14, 2010 at 6:13 PM
Create Vehicle having following attributes: Vehicle No., Model, Manufacturer and Color. Create truck which has the following additional attributes:loading capacity( 100 tons‚?¶).Add a behavior to change the color and loading capacity. Display the updated truck details. ... View Questions/Answers

java code  December 14, 2010 at 6:12 PM
Create Book having following attributes: Book ID, Title, Author and Price. Create Periodical which has the following additional attributes: Period (weekly, monthly etc...) .Add a behavior to modify the Price and the Period of the periodical. Display the updated periodical details ... View Questions/Answers

java code  December 14, 2010 at 6:12 PM
Create Product having following attributes: Product ID, Name, Category ID and UnitPrice. Create ElectricalProduct having the following additional attributes: VoltageRange and Wattage. Add a behavior to change the Wattage and price of the electrical product. Display the updated ElectricalProduct d... View Questions/Answers

java code  December 14, 2010 at 6:09 PM
Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept the grade of the employee & return grade. ... View Questions/Answers

java code  December 14, 2010 at 6:09 PM
Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns the new balance which is the sum of amount & balance. Similarly, the withdraw method would accept the attributes amount & balance & returns the new ba... View Questions/Answers

java code  December 14, 2010 at 6:08 PM
Create a class called Student which has the following methods: i. Average: which would accept marks of 3 examinations & return whether the student has passed or failed depending on whether he has scored an average above 50 or not. ii. Inputname: which would accept the name of ... View Questions/Answers

java code  December 14, 2010 at 6:08 PM
Create a calculator class which will have methods add, multiply, divide & subtract ... View Questions/Answers

java code  December 14, 2010 at 6:07 PM
Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes ... View Questions/Answers

java code  December 14, 2010 at 6:06 PM
Develop a program that accepts an initial amount of money (called the principal), a simple annual interest rate, and a number of months will compute the balance at the end of that time. Assume that no additional deposits or withdrawals are made and that a month is 1/12 of a year. Total interest i... View Questions/Answers

java code  December 14, 2010 at 6:05 PM
Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed. Speed is distance/time, and the Pythagorean Theorem is c2 = a2 + b2. ... View Questions/Answers

DMCA.com