Home Tutorialhelp Comment Plz help me as i hv to submitt this question asap

 
 

Comment

pooja
Plz help me as i hv to submitt this question asap,
May 28, 2009 at 1:32 PM

Create a class Computer that stores information about different types of Computers available with the dealer. The information to be stored about a single computer is,
- Company Name
- RAM size.
- Hard Disk Capacity.
- Processor Speed.
- Processor Make.
- Price .
- Quantity of the Computers.

This class contains following methods,
- Constructor method that assigns user input values to above mentioned variables.
- main ( ) method that creates array of 4 objects of Computer class and that takes input for all above details from the user and calls method to check validity of Quantity and Price values. If all values are valid then create the objects and display the details for all 4 toys.
- Method that checks validity of quantity and price. If the quantity is 0 or negative then method should throw user defined exception with appropriate message and come out of program. Similarly if the price is 0 or negative then it should throw user defined exception with appropriate message and come out of program.
- Method that displays all details about a single instance of Computer in the
following

Format.
Computer Name : IBM
RAM Size : 512 MB
Processor Make : Intel
Processor speed : 300
Quantity : 50
Total Price of Computers : 150,0000/-
*/

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

plz help me for this question
plz help me for this question  Apply simplex procedure to solve the L.P.P. maximize z = 3x1 + 4x2 subject to 5x1 + 4x2 ‚?§ 200; 3x1 + 5x2 ‚?§ 150; 5x1 + 4x2 ‚?• 100; 8x1 + 4x2 ‚?≠‚?• 80, x1 ‚?• 0, x2 ‚?• 0 

Java Beginners

plz help me - Java Beginners
plz help me  Thanks deepak continue response..i face some problem i... is true...but i very confuse that how it is not displayed admin page plz any one give me reponse my persinal given id  Hi ragni, i am sending 

JavaMail Questions

sir i,have a assignment for these question plz help me sir - JavaMail
sir i,have a assignment for these question plz help me sir  ...; } else { String str = " "; for (int i = 0; i <= top; i++) str = str + " " + arr[i]; System.out.println("Elements are " + str 

Java Server Faces Questions

plz help me find a program
plz help me find a program  plz help..i want a source code in jsp for order processing 

Java Beginners

plz help me - Java Beginners
plz help me  Deepak I can write a sessioon code plz help me admin_home.jsp page is display but data is not disply plz help me what is wrong 

PHP Questions

PLZ HELP ME. i need php code.
PLZ HELP ME. i need php code.   I want php code for bellow OUTPUT. output is just example but it must be letters only. abc bcd efg jku rgt azs hje qqc wws adt 

Java Beginners

plz help me - Java Beginners
plz help me  Hi, I want to search all field from database using name, and display in text box, then data is update and delete. i want to search name using alphabets a-z, plz reply fast. plz help me this is very urgent 

Java Interview Questions

help me plz - Java Interview Questions
help me plz  1)write a java program that prompts the user to input...? plz answer my question   Hi Friend, Try the following code: 1...; System.out.println("Enter 5 decimal numbers:"); for (int i=0; i 

Java Interview Questions

interview question plz help me and thers
interview question plz help me and thers  A college is good if it satisfies the following conditions: 1.Its number of students is greater than 1000. 2.If the name ends wih a character 'e', then it should not start with character 

Java Beginners

plz Help me - Java Beginners
plz Help me  Hi, I want learn struts,I dont have any idea about this plz help how can i make a framework.If u have any information then plz send my personal id plz tell me that whose software installed.and give me brief 

Java Beginners

Plz help me with this Question - Java Beginners
Plz help me with this Question  this is java code ------------------------- Consider the following code: int [ ] a = [1, 2, 3]; Object o ="123"; String t = "12"; String w = t + "3"; Boolean b = o.equals (a); Boolean b2 

Java Beginners

plz help me - Java Beginners
plz help me  deepak hw can i create a data grid in jsp and also how can i connect to the data base plz help me  to create data grid in jsp use html tables with borders. to connect to data base use scriptlets. ex 

JavaMail Questions

sir i,have a another assignment for these question plz help me sir - JavaMail
sir i,have a another assignment for these question plz help me sir  1. Design classes for Currency, Rupee, and Dollar. Write a program... to both. plz help me sir 

JSP Servlet Questions

plz help me!!!!!!!! - JSP-Servlet
plz help me!!!!!!!!  i`ve set the environment varaibles for tomcat as well as jdk.. but i`m not understanding where i`ve to save my servlet..i.e.... there are compilation errors.. plz do help me.   make sure that you did 

Java Beginners

Help me quickly plz??
Help me quickly plz??  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 

Java Beginners

Help me
Help me  plz i want code of program to add real numbers and magic numbers in java example this input :- 5+3i-2+3i output:- 3+6i 

WebSevices Questions

help
to the user) please tell me how could i design that. Please help me asap Thanks a lot...help  Hii.. I have to design one registration page in java that looks like REGISTER USERNAME (here i have to check whether username already exists 

Java Beginners

help me
in the beginning will ake the uesr to which system he/she wants to be transferred. plz help me... , one checked out , the customer is removed from the line. in addition, i want 

Java Interview Questions

plz help me today plz plz - Java Interview Questions
plz help me today plz plz  2.) Suppose list is an array of six...? . for (i = 0; i < 5; i++) { list[i] = 2 * i + 5; if (i % 2 == 0) list[i] = list[i] - 3; } . 3 

WebSevices Questions

Intranet Website creation - plz help me
Intranet Website creation - plz help me   hi.. I have assign with the intranet website creation work..right from scratch to end..And honestly I know nothing about it.My domain is totally different .. can anybody pls help me 

Management

Plz Help Me
Plz Help Me  Write a program for traffic light tool to manage time giving between Main-Street and sub-Street. firstly, give green light for 40... traffic light on the frame. We have used java swing. It may help you. import 

Framework Questions

facing problem plz help me out - Framework
Facing problem plz help me out  hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell me what to do... error:The requested resource (Servlet servlet 

Java Beginners

hi.. i hv few error. pls. - Java Beginners
hi.. i hv few error. pls.  hi sir, i have few error. can u pls help me. pls. im very new in java. ths my Uni assgmnt. please help me... import...(""); System.out.println("\t "+title[i]+"\t 

Java Beginners

Help me plz in Probablity distribution of Java
Help me plz in Probablity distribution of Java  Hello, I have an issue I have connected my JDBC driver with my database.. Now I want to randomly...% is insert or update queries. Which distribution to use and how to achieve it.. Plz 

Framework Questions

facing problem plz help me out - Framework
Deploying a Servlet  My question is how to deploy a servlet 

Java Beginners

help
= calc.remainder (3,4); System.out.println (answerRemain); and when i tried running it, it tells me:- Exception in thread "main...) if i take out the % from "%d % %d = ", so that it is "%d %d" then it runs 

Java Beginners

Plz Help
Plz Help  Hello Guys!! Plz. Help I need to write a program to display the astrological sign based on your birthday for example If we enter the date of birth in the following format from console--13/08/1990 it should give you 

Java Interview Questions

Help Me With This Plz - Java Interview Questions
Help Me With This Plz  Write a program that's print a word like(I S E) on the black screen with 0,1 only by using two dimensional array? the 1's will represent the words 

Java Interview Questions

plz help me - Java Interview Questions
plz help me  1)Rewrite the method in exercise 10 such that it use..., final int key) { for (int i = 0; i < data.length; ++ i) { if (data [i] > key) return -1; else 

Java Beginners

plz Help me find the correct programs answers
plz Help me find the correct programs answers   Create a washing... INDICA" and "TATA NANO" respectively. Plz mail me your answers...; subtract Create a class called Student which has the following methods: i 

Java Beginners

Plz help with third Question - Java Beginners
Plz help with third Question  1)- Specify and implement a procedure...[]=input.split(""); String reversedString=""; for(int i = st.length-1; i >= 0; i--){ reversedString+=st[i]; } if(input.equalsIgnoreCase(reversedString 

Java Beginners

please help with the coding of this interface,i cnt seem to figure out codes for things to work here.realy nid them ASAP plz
please help with the coding of this interface,i cnt seem to figure out codes for things to work here.realy nid them ASAP plz  /* * To change...); jMenuBar1.add(jMenu4); jMenu5.setText("Help"); jMenuBar1.add(jMenu5 

Java Beginners

please help with the coding of this interface,i cnt seem to figure out codes for things to work here.realy nid them ASAP plz
please help with the coding of this interface,i cnt seem to figure out codes for things to work here.realy nid them ASAP plz  /* * To change...); jMenuBar1.add(jMenu4); jMenu5.setText("Help"); jMenuBar1.add(jMenu5 

Java Beginners

plz help meto solve this question
plz help meto solve this question  for a file that exist what will be the length() method in the file class return 

Framework Questions

need the answer vry urgently..plz help me...[plzzzzzzzz
need the answer vry urgently..plz help me...[plzzzzzzzz  the question... code...hpw to write in eclipse platform....plz plz mail me...to panda.pragnya7@gmail.com/panda_pragnya@yahoo.com...plz plz...help....me..it can change my lyfe 

Java Beginners

help again plz sorry - Java Beginners
help again plz sorry  Thanks for giving me thread code but i have a question this code is comletelly right and i want to make it runs much faster for that i made 5 threads but 2 things i dont understand 1- with one 

Java Beginners

pls help me with this question
pls help me with this question  how to write a program in C++ using encapsulation,polymorphism,inheritance and abstraction?(all these concepts should come in a single program 

Java Beginners

help me to solve this question
help me to solve this question  Write a program that inputs a series of integers into an array. The numbers are in the range 0 to 100. Calculate and display : a) The Largest number b) The Smallest Number c)The sum of the numbers 

Java Beginners

help me to solve this question...
help me to solve this question...  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //book‚??s title double price; //book‚??s 

JavaScript Questions

i have a problem to do this question...pls help me..
i have a problem to do this question...pls help me..  Write a program... reversedNumber = 0; for (int i = 0; i <= num; i...; reversedNumber = reversedNumber * 10 + r; i = 0 

Java Interview Questions

help me in these - Java Interview Questions
help me in these  hello every body i have some question if you cam plz answer me it is important to me and these are the questions : 1)Write... in the array . use linear search for this algorithm . test your method. answer me 

JSP Servlet Questions

please help me.
please help me.  I have three table in mysql,and i hava create a excel sheet and add this sheet.but my question is in every sheet i can display one one table result.how can i do 

Java Beginners

i need help plz .... Quickly
i need help plz .... Quickly   how can i count how many numbers enterd by the user so the output would be like this Total number of Scores = .... this is my code :- import java.util.Scanner; public class SCORES { public 

Java Server Faces Questions

help me please
help me please   Hello I want helping for this question , Please Write a program that reads some friends√Ę‚?¨‚?Ę names, stores them in an array, and then prints out on the screen all friends who start by a particular letter 

Java Beginners

hi frnds.. help me..
hi frnds.. help me..  i ve a doubt in incompatible type error (block letter). plz help me clear this error! thanks in advance. This is my code. double velo[][] = new double [task] [resource]; for(int i=0;iList<Double> 

Java Beginners

Help me - Java Beginners
Help me  I m using session in my project session is activated and admin_home.jsp page will be display but data r not displayed plz guide what is incorrect my code 

Java Beginners

sir i want small project with of health care system with struts and hibernate plz help me
sir i want small project with of health care system with struts and hibernate plz help me  sir i want small project on health care system with struts and hibernate plz help me 

Java Beginners

help me to solve this question
help me to solve this question   A user needs to key in data into system in order to save data into array. The data are: a. Lecturer ID, Lecturer name, School, course code, course name, session, semester A user can edit the data 

Java Beginners

HELP ME - Java Beginners
HELP ME  How can I write only digits in the the textfield when I am using keyTyped and keyPressed metods of KeyListener, but I do not want to write an any character in it?(This question means when a user pressed a key in keyboard 

Java Interview Questions

help plz - Java Interview Questions
, if the input string is abcd, the output is : edcba plz plz plz plz plz help me   Hi Friend, Try the following: 1) import java.util....help plz  1 )write a program that does the following : a. prompts 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

IDE Questions

help me
help me  i have done as u directed but nothing happens gud to me..... . i am using netbeans is that matter at all help me and take me out from trouble where to store jfree api to use it for j2ee based project 

JSP Servlet Questions

help me
help me  HI. Please help me for doing project. i want to send control from one jsp page to 2 jsp pages... is it possible? if possible how to do 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

Java Beginners

sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out
sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out  sir/mam i want to have knowledge on live projects of java/jsp/servlets.Can you plz help me out.I want to have a through knowledge 

JSP Interview Questions

help me
help me  Hi I'm loges. I'm doing my final year project now, I have some problem in my project and i need some help on it. NowI'm doing a site... button, and nationality I'm using dropdown list. Please help me. your kindness 

Ajax Questions

help me
help me  hi sir pls tell me how to use ajax form validatin from very simple way with two ot three text field pls help me use ajax in php my email id is:- rohit11tripathi@gmail.com pls sir give me some vasic information i know 

Java Beginners

please help me to solve this question about array
please help me to solve this question about array  write a program thatt stores vowels (a,e,i,o and u)in an array. Ask the user to enter any...[] args) { char arr[] = { 'a', 'e', 'i', 'o', 'u' }; String brr; boolean 

JDBC Questions

plz help me to create gui using Java netbeans
plz help me to create gui using Java netbeans  Hi, I am unable to fetch a particular data from DB.I am using netbeans for creating GUI. If I want.... I am unable to fetch the particular data. Plz help me   Hi Friend 

Java Beginners

Plz help me in writing the code - Java Beginners
Plz help me in writing the code   Write a two user Chess Game. (users must be on different systems 

Java Beginners

Plz help me in writing the code - Java Beginners
Plz help me in writing the code   Write a two user Chess Game. (users must be on different systems 

Java Beginners

help
help  i can't answer this question....state 2 different array processing which use loops 

JDBC Questions

Help me
Help me  hello!!!!. i have a Excel file which includes 4 columns and somewhat 8500 rows.these rows i have printed in SQL thru Excel file and i have 1 MYSql database which includes all those 4 fields i have defined in excel file 

Java Beginners

help me
help me  I have a quastion a bout array whic is>>> 1-write aprogram to diplay a multiplication table for 1to 10 by entering the start number and the end number. EXAMPLE: ENTER START NUMBER:1 ENTER END NUMBER:3 

Java Beginners

population problem plz help me befor 16 March 2011 !!
population problem plz help me befor 16 March 2011 !!  the Q is : How can i count how many years it will take for the population of a town to go over...; i don't where is the mistake ?? Note : i have to use while or do while only 

Java Beginners

help me
help me  Dear sir/medam i would like to know how to use the java... the order, Fourth button is Find length of text. and there are panels. Please help me. i want to write the code on this program. please share ur idea.    

Java Beginners

Help!
Help!  thanks for ur code, I'd like to ask a question: after press "c" or "C", timer starts and after every delay ms, it'll print "This line... once.   oh, I see my problem. Thanks 

JSP Servlet Questions

Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run the code java.lang.NullPointerException... bgcolor="white"> <h1> I have been invoked by &lt;% out.print 

JSP Servlet Questions

Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run the code , i am using login.html ,login .jsp,login.java and web.xml code...&gt; I have been invoked by &amp;lt;% out.print(request.getAttribute 

JDBC Questions

I really need help with this assignment question Please help me out Please
I really need help with this assignment question Please help me out Please  * Description* You are hired to develop a laptop inventory information system for Sheridan College in order to keep track of the information about 

Mobile Applications Questions

Help
Help  Hi; Can anyone help me to solve this errors. I use J2ME(wirlesee Toolkit 2.5.2. for CLDC Project "SlideImageMIDlet" loaded Project settings saved Building "SlideImageMIDlet" C:\Documents and Settings\???? ?????\j2mewtk 

Java Beginners

help me plz befor 27 februry
help me plz befor 27 februry  what is rung with this ?? help me plzzzz import java.util.Scanner; public class Initials { public static void main (String [] args) { String firstname,lastname 

Java Beginners

i want to find the byte code of a image file ... for my project..plz if anybody help me for java coding i will grateful..
i want to find the byte code of a image file ... for my project..plz if anybody help me for java coding i will grateful..   i want to convert a image file to its byte code format that help me for the pattern matching in my 

Java Interview Questions

help
help  please answer these two assignments every one related to each other for me before Tuseday I answer the first part please continue to me... based on the percentage of cheating. please help me 

Java Beginners

Please help with this Q ASAP
Please help with this Q ASAP  The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in Java that achieves 

Java Beginners

java coding help plz ?
java coding help plz ?  Given two integers N and M (N √Ę‚?į¬§ M...; int i = (int) Math.ceil(Math.sqrt(number)); while (i > 1) { if ((number != i) && (number % i 

Java Beginners

Gui plz help
Gui plz help   Create a Java application that would allow a person... would do better next time if the ratio is smaller than 70%. this is what i got so far. so basically what i did is i used the java palletes to make a application 

Java Beginners

plz help - Java Beginners
plz help  i have to programs and it takes too long to run them so i..... but i dont know how to aplly that on my 2 programs: the first code... some operations ... how can i makes them as thread first code: import 

Java Beginners

java, plz help me in doing this - Java Beginners
java, plz help me in doing this  # Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record.....giving me the error of NoClassDefFoundError 

Development process Questions

i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap   i want to create invoice report .. help out asap 

Java Beginners

plz help
plz help  what is the procedure and code to design an interactive GUI in java using swings 

Java Beginners

PLZ Need some help on the 2nd part of this question...Someone please help !!!!
PLZ Need some help on the 2nd part of this question...Someone please help !!!!  write an application that displays a menue of three items in a restaurant as follows: 1.Cheeseburger 4.99 2.Pepsi 2.00 3.Chips 0.75 prompt the user 

JSP Servlet Questions

i want to create invoice report editable. values should be taken from dabase and editable .. help out asap
i want to create invoice report editable. values should be taken from dabase and editable .. help out asap   i want to create invoice report editable. values should be taken from dabase and editable .. help out asap 

WebSevices Questions

help me - WebSevices
help me   help me with the principals of designing agood websites and i can start 

WebSevices Questions

help me - WebSevices
help me   help me with the principals of designing agood websites and i can start 

JSP Servlet Questions

Question
Question  sir I am creating a user defined custom tag in net beans ide but I am unable to run the code sucessfully . I got internal server error plz help me   Please visit the following links: http://www.roseindia.net 

Swing AWT

plz help me to write a snake game using swings - Swing AWT
plz help me to write a snake game using swings  write snake game program using swings 

Struts Questions

struts problem ... need help urgently.. please reply ASAP
struts problem ... need help urgently.. please reply ASAP  Hi Every1, I want to make an application using struts 1.2. I am a beginner on struts. Dont know much about struts. In application I have to make jsp to get some 

Java Beginners

hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..   hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work 

Hibernate Questions

hi i m new to hibernate..plzzzzzzzzzzzzzz help me.... - Hibernate
hi i m new to hibernate..plzzzzzzzzzzzzzz help me....  hi friends i m... change my query ... now its showing me this error... plz help me..... MY PRG......... plzzzzzzzzzzzzzzz help me whats the problem... its showing me //************Error 

Framework Questions

help me plz:-Merge multiple jasper files into Single one
help me plz:-Merge multiple jasper files into Single one  how to Merge multiple jasper files into Single one word doc 

Java Beginners

Timeseries help
Timeseries help  hey....... can u plz help me in time series code. Can u provide a tie series code that is using the method Time series. I have seen... of Barchart???? plz help 

Struts Questions

please help me to answers this question about C++.....huuhuhuhu
please help me to answers this question about C++.....huuhuhuhu  1...; for(int i = 0; i < size; i++) for(int j = 0; j < size - i - 1...;< "Before sorting: "; for (int i = 0; i < size; i 

HTML Questions

please help me to answers this question about C++.....huuhuhuhu
please help me to answers this question about C++.....huuhuhuhu  1...; for(int i = 0; i < size; i++) for(int j = 0; j < size - i - 1...;< "Before sorting: "; for (int i = 0; i < size; i 

Advertisements Advertisements
 

 

 

DMCA.com