Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

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

Advertisement

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

java code  December 14, 2010 at 6:05 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 code  December 14, 2010 at 6:04 PM
Develop the program calculateCylinderArea, which accepts radius of the cylinder's base disk and its height and computes surface area of the cylinder. ... View Questions/Answers

java code  December 14, 2010 at 6:03 PM
An old-style movie theater has a simple profit program. Each customer pays $5 per ticket. Every performance costs the theater $20, plus $.50 per attendee. Develop the program calculateTotalProfit that consumes the number of attendees (of a show) and calculates how much income the show earns. ... View Questions/Answers

java code  December 14, 2010 at 6:03 PM
Utopias tax accountants always use programs that compute income taxes even though the tax rate is a solid, never-changing 15%. Define the program calculateTax which determines the tax on the gross pay. Define calculateNetPay that determines the net pay of an employee from the number of hours work... View Questions/Answers

java code  December 14, 2010 at 6:02 PM
Develop the program calculateCylinderVolume., which accepts radius of a cylinder's base disk and its height and computes the volume of the cylinder ... View Questions/Answers

java code  December 14, 2010 at 6:01 PM
Develop a program that accepts the area of a square and will calculate its perimeter ... View Questions/Answers

java code  December 14, 2010 at 6:00 PM
Write a program to find the difference between sum of the squares and the square of the sums of n numbers? ... View Questions/Answers

Test hidden element using JQuery  December 14, 2010 at 5:29 PM
Suppose i have an element which i am hiding and showing, using .hide(), .show() or .toggle().How do you test to see if that element is currently hidden or visible on the screen? Please provide code with your answer. ... View Questions/Answers

Select all childs except first using JQuery  December 14, 2010 at 5:14 PM
Hello Sir I Have following code : <ul> <li>First item</li> <li>Second item</li> <li>Third item</li> </ul> And i need to add a class to 2nd & 3rd element or child as follows : ... View Questions/Answers

hibernate update problem  December 14, 2010 at 4:19 PM
HI, I integrated the struts and hibernate and wrote the following query in the databean to update the user table login time SessionFactory sessionFactory = (SessionFactory)context.getAttribute(HibernatePlugin.KEY_NAME); Session session = sessionFactory.open... View Questions/Answers

Cursor hiding in jQuery  December 14, 2010 at 3:55 PM
Hello sir I want to hide the mouse cursor in entire web page. I heard from one of my friend that it is possible using JQuery. Please give me code ? ... View Questions/Answers

Connection pooling  December 14, 2010 at 3:44 PM
Sir, In my project i want to implement connection pooling with ms-sql server 2005. i wrote the code in JSP like this... <% Connection con=DbCon.getConnection(); Statement stmt =... View Questions/Answers

Last modified time of a webpage  December 14, 2010 at 3:38 PM
how can we get the last modified time of a webpage using java? ... View Questions/Answers

java  December 14, 2010 at 2:21 PM
what is the difference between vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:21 PM
what is the difference between vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:21 PM
what is the difference between vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:20 PM
hoe to find largest number without using array ... View Questions/Answers

 December 14, 2010 at 2:19 PM
what is the difference betwen vb and vb.net? ... View Questions/Answers

 December 14, 2010 at 2:19 PM
what is the difference betwen vb and vb.net? ... View Questions/Answers

java  December 14, 2010 at 2:13 PM
strong textwhat to do to put arry in descendind order using sort()? ... View Questions/Answers

Siverlight JSON  December 14, 2010 at 2:13 PM
how to use JSON in silverlight, i need to populate dynamic data by using JSON CAN ANY HELP ME ... View Questions/Answers

java  December 14, 2010 at 2:13 PM
strong textwhat to do to put arry in descendind order using sort()? ... View Questions/Answers

inhertence  December 14, 2010 at 2:11 PM
how many types of inheritence in java according to sun specification? ... View Questions/Answers

HACKING  December 14, 2010 at 2:06 PM
how to hack gmail? ... View Questions/Answers

java  December 14, 2010 at 1:59 PM
how to print special series using java literals ... View Questions/Answers

how to find square and cube of five number  December 14, 2010 at 1:58 PM
how to find square and cube of five number ... View Questions/Answers

About Store Procedure  December 14, 2010 at 12:02 PM
Create Procedure CMTSPCasesByWorkstream AsBEGIN DECLARE @paramdateincrement int = 24 DECLARE @paramstartdate datetime = Cast((Cast(dateadd(day,-7,cast(getdate() as Date)) as varchar) + ' 23:59:59') as Datetime) -- 'yyyy-mm-dd hh:mm:ss' Declare @start... View Questions/Answers

How to take control of diffrent system or computer  December 14, 2010 at 2:45 AM
I want to connect to different computers and want have full control remotely. How can java help me in this? ... View Questions/Answers

plz plz rply as soon as possible  December 14, 2010 at 12:12 AM
by using c programs * * * * * s s s s s * s s o s s s s s s s s s s s s s s s s s s s s s s s ... View Questions/Answers

plz plz plz inform me as soon as possible  December 14, 2010 at 12:03 AM
``by using c programs how to type * * * * * * ... View Questions/Answers

checking index in prepared statement  December 13, 2010 at 11:45 PM
If we write as follows: String query = "insert into st_details values(?,?,?)"; PreparedStatement ps = con.prepareStatement(query); then after query has been prepared, can we check the index of "?". If yes then how? ... View Questions/Answers

string  December 13, 2010 at 10:39 PM
how do i extract words from strings in java??? ... View Questions/Answers

Retrieving attribute value from XML  December 13, 2010 at 9:37 PM
I have an XML as below to parse: <LoadTicketRequest> <LoadTicket LoadTicketID="S-123345"> ..... But am not able to fetch the value of LoadTicketId attribute. My code snippet is as below: DocumentBuilder db = DocumentBuilderFactory.newIn... View Questions/Answers

html  December 13, 2010 at 9:10 PM
HTML document with Javascript to count the number of vowels in a text typed in text area. please send the code. ... View Questions/Answers

Struts 2 Radio without Label  December 13, 2010 at 8:19 PM
I Use a s:radio tag to create a grid to choice one option, but when i render my jsp the value of the radio is showed like a label, I don?´t want the label. What can i do to solve this? ... View Questions/Answers

login  December 13, 2010 at 8:14 PM
i want to now how i can write code for form login incolude user and password in Jcreator 4.50 ... View Questions/Answers

Adding checkbox to List as item  December 13, 2010 at 8:09 PM
can we add checkox to List ... View Questions/Answers

how to copy the directory in to ftp server using java  December 13, 2010 at 8:05 PM
how to copy the directory in to ftp server using java ? ... View Questions/Answers

Login validation doubt  December 13, 2010 at 7:27 PM
Hi, 1)login.jsp: <%@page import="java.sql.*"%> Username: Password: ... View Questions/Answers

Show me the code for that  December 13, 2010 at 5:51 PM
JVM on my machine? And how do I know whether its working or not? ... View Questions/Answers

jsp form  December 13, 2010 at 5:45 PM
hai... GoodEvening I have one doubt on jsp.please wil u clarify it. how to move one jsp form to another jsp form with out using forward tag ... View Questions/Answers

retrievin xml data  December 13, 2010 at 5:13 PM
If i need to retrieve some node elements from xml and then store it in seperate file!! ... View Questions/Answers

how to draw lines,circles, rectangles on JSP (using Java Graphics)  December 13, 2010 at 4:52 PM
how to draw lines,circles, rectangles on JSP (using Java Graphics) ... View Questions/Answers

accessing xml using java  December 13, 2010 at 4:44 PM
I need to retrieve some elements in xml file using java ... View Questions/Answers

Get session value in javascript  December 13, 2010 at 4:44 PM
How to iterate session value onebyone in JavaScript ... View Questions/Answers

JSP basic doubt  December 13, 2010 at 4:44 PM
String user = request.getParameter("username"); in this "user" value is null or not how to validate? before going further action. ... View Questions/Answers

Text event in jsp  December 13, 2010 at 4:09 PM
Hi I am doing project in jsp with mysql as database.My quens is ,in my webform when I enter value (numeric) in 1st textbox then remaing below textbox must be fill with value that coming from database. So for that purpose which textevent should i used. I have to do without button. Please suggest s... View Questions/Answers

transient keyword  December 13, 2010 at 3:03 PM
how to use transient keyword? ... View Questions/Answers

link hibernate to MS ACCESS database  December 13, 2010 at 2:04 PM
how to link hibernate to ms access database instead of sql database ... View Questions/Answers

a interview questioon  December 13, 2010 at 1:57 PM
write a programme so the it can print each substring of a string like "saswat" is the string then it will print s,a,w,t,sa,swa,sta,as,aws,ats,sasw all posible sub string with out repeating ... View Questions/Answers

JSP  December 13, 2010 at 12:58 PM
how to open and view a flat file in browser using java code in jsp? ... View Questions/Answers

toolbar in java  December 13, 2010 at 12:50 PM
how we can create a toolbar like as file(open,close etc),edit(cut,copy,paste etc)...etc in a frame. ... View Questions/Answers

student info  December 13, 2010 at 12:21 PM
code of insert,delete,update,view,search of student information using jsp and servelts ... View Questions/Answers

Struts - Hibernate Integration  December 13, 2010 at 12:07 PM
Hi, I need to integrate the struts with hibernate.. can u pls tell me the process of configuring etc etc WITHOUT USING ANT Thanks in Advance ... View Questions/Answers

Java  December 13, 2010 at 11:45 AM
What's problem with this code? why output is not displaying? how can i solve it? Thanks, package com; import java.util.HashMap; public class BookDemo { HashMap<String, Integer>hm=new HashMap<String, Integer>(); public static void main(String[] args) { BookDemo bm=new Boo... View Questions/Answers

html  December 13, 2010 at 11:34 AM
Can we Access database through html page and how,if not then why? ... View Questions/Answers

JQuery Spinner  December 13, 2010 at 10:07 AM
I am working in JQuery and i want to create SPinner for getting Credit Card Expiry Date in the form of MM/yyyy . Will you Please help me How to create the Spinner . Thank you. Regards Arun ... View Questions/Answers

Spring framework implementation  December 13, 2010 at 9:21 AM
Hi, I am new to springs. Can someone help me in implementing the below case in spring? Coffee Take out problem: Order is taken by a front desk assistant Billing is carried out by the front desk assistant Front desk assistant marks each of the cups with dri... View Questions/Answers

Having a hard time writing program to calculate test scores..........  December 13, 2010 at 4:25 AM
i need a program that does this:Standardized Test Scores A local high school is giving a standardized test to all of its students. There are 50 questions on the test and the school would like you to gather some statistics on how the students performed. Scores can range anywhere from 0 ... View Questions/Answers

Java GUI code  December 13, 2010 at 1:16 AM
Write a GUI program to compute the amount of a certificate of deposit on maturity. The sample data follows: Amount deposited: 80000.00 Years: 15 Interest rate: 7.75 Total Amount: Hint** to solve this problem, computer 80000.00 (1+7.75 /100)^15 ... View Questions/Answers

How to get the position of the comments in the pdf  December 12, 2010 at 6:26 PM
how to get the postion of comments, in the extracted xml, from pdf ... View Questions/Answers

image displaying in java  December 12, 2010 at 6:25 PM
how to display an image by using load image button in applet viewer? ... View Questions/Answers

How to get the position of the comments in the pdf  December 12, 2010 at 6:23 PM
how to get the postion of comments, in the extracted xml, from pdf ... View Questions/Answers

UITableView delegate method  December 12, 2010 at 6:04 PM
Hi, Please let's know the UITableView delegate methods. Give me full code UITableView delegate methods. Thanks ... View Questions/Answers

UITableView delegate method  December 12, 2010 at 6:03 PM
Hi, Please let's know the UITableView delegate methods. Give me full code UITableView delegate methods. Thanks ... View Questions/Answers

Core Java  December 12, 2010 at 4:39 PM
what is a class? ... View Questions/Answers

program  December 12, 2010 at 3:31 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... View Questions/Answers

program  December 12, 2010 at 3:30 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

java program  December 12, 2010 at 3:27 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 12, 2010 at 3:22 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

reverse the charstring  December 12, 2010 at 1:41 PM
how to reverse any character of the string? ... View Questions/Answers

draw the running or moving graph using database in jsp  December 12, 2010 at 1:24 PM
hi my question is how to draw the running or moving graph using jsp and take x and y co-ordinate value from database ... View Questions/Answers

draw the running or moving graph using database in jsp  December 12, 2010 at 1:24 PM
hi my question is how to draw the running or moving graph using jsp and take x and y co-ordinate value from database ... View Questions/Answers

program calculateCylinderVolume  December 12, 2010 at 12:43 PM
program calculateCylinderVolume ... View Questions/Answers

program  December 12, 2010 at 12:28 PM
Develop the program calculateCylinderArea, which accepts radius of the cylinder's base disk and its height and computes surface area of the cylinder. ... View Questions/Answers

program  December 12, 2010 at 12:26 PM
An old-style movie theater has a simple profit program. Each customer pays $5 per ticket. Every performance costs the theater $20, plus $.50 per attendee. Develop the program calculateTotalProfit that consumes the number of attendees (of a show) and calculates how much income the show earns.... View Questions/Answers

program  December 12, 2010 at 12:25 PM
Utopias tax accountants always use programs that compute income taxes even though the tax rate is a solid, never-changing 15%. Define the program calculateTax which determines the tax on the gross pay. Define calculateNetPay that determines the net pay of an employee from the number of hours work... View Questions/Answers

progran  December 12, 2010 at 12:22 PM
. Develop the program calculateCylinderVolume., which accepts radius of a cylinder's base disk and its height and computes the volume of the cylinder. ... View Questions/Answers

program  December 12, 2010 at 12:16 PM
Write a program to find the difference between sum of the squares and the square of the sums of n numbers? ... View Questions/Answers

Array sort  December 12, 2010 at 6:48 AM
Program that uses a function to sort an array of integers. ... View Questions/Answers

c++  December 12, 2010 at 5:14 AM
Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9, 0, 4, 2, 6. Second, assume integer variables "a," "b" and "y" with values of 3, x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1) increments its control variable; 3.2) has a control variable n... View Questions/Answers

Help me quickly plz??  December 12, 2010 at 1:44 AM
Can you help me to write code quickly this code is a java code take input as double and should use command line arguments and enhanced for statement then find the combine of the numbers plz help quickly amr_alshroof@yahoo.com ... View Questions/Answers

java  December 12, 2010 at 1:03 AM
i have 3 numbers and i need to find the greatest of them howw without using arrays?? ... View Questions/Answers

Lost Using Swing Components(3)  December 12, 2010 at 1:00 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message:" text. The "To" and "Subject:" text areas should provide a single... View Questions/Answers

how to print hello world every second till i have pressed enter key  December 12, 2010 at 12:57 AM
how to print hello world every second till i have pressed enter key ... View Questions/Answers

Lost Using Swing Components(2)  December 12, 2010 at 12:56 AM
Here is the code block corrected: //Insert missing code here. import java.awt.*; import java.awt.event.*; public class JEMail extends JFrame implements ActionListener { //Insert missing code here. private JTextField toField = new JTextField(24); private ... View Questions/Answers

Lost Using Swing Components  December 12, 2010 at 12:52 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message:" text. The "To" and "Subject:" text areas should provide a single... View Questions/Answers

Lost Using Swing Components  December 12, 2010 at 12:50 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message:" text. The "To" and "Subject:" text areas should provide a single... View Questions/Answers

Lost Using Swing Components  December 12, 2010 at 12:43 AM
Hello, I sound like every other newbie but I desperately need help. I have to write an application for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To", "Subject", and "Message" text. The "To" and "Subject:" text areas should provide a single ... View Questions/Answers

recursive fuction in java  December 12, 2010 at 12:25 AM
A class has a recursive method which return a boolean value. If a codition is fail & control goes to out of loop to return statement then control goes to internal method calling instead of another method which call that recursive method. ... View Questions/Answers

method overloading  December 12, 2010 at 12:15 AM
what is output of this program & why class Test { public void display(String msg) { system.out.println(msg); } public void display(Object msg) { system.out.println(msg); } } Class TestDemo { new Test().display(null); } ... View Questions/Answers

java prog  December 11, 2010 at 9:31 PM
Write a Java applet that inputs a person's date of birth (month, day, year): ? Informs the person if the year of birth is a prime number. ? Informs the person if the year of birth is a leap year. ? Computes and outputs the day of week they were born. ? Compute and output their Zodiac sign... View Questions/Answers

possible loss of precision  December 11, 2010 at 6:13 PM
{ int amount=(int)depositAmount; switch (depositAmount) { case(depositAmount<=depAmount1): intrest=(depositAmount*1*rate1); break; case(depositAmount>=depAmount1 && depositAmount<=depAmount2): intrest=(depositA... View Questions/Answers

DMCA.com