Generate a restaurant bill using bluej. plz its urgent

To generate a restaurant bill using blue j. take 3 categories of items like punjabi chinese and continental. take 3 dishes for each category.enter the quantity needed and display the total.

Please drop the usage of shorthand for words, the use
"u" and "plz" will only irritate peopleMe too. I can no longer read SMS messages from my sister....
I assume you know a bit about OOP (object oriented programing). Think about a receipt, what do you have??
1. The receipt.
2. (which contains) items.
What properties do each of these (objects) have? Well.... an item has a cost? A receipt has items. (You want to be able to add items to the receipt and maybe remove the last item added and calculate the total of all the items maybe). Carry on thinking, what else have you got. You should now be able to develop skeleton objects.
And for reference, your post is not urgent. Although you have given a slightly better subject than help. (I know nothing about blueJ)

Similar Messages

  • To generate a restaurant bill using blue j.

    To generate a restaurant bill using blue j. take 3 categories of items like punjabi chinese and continental. take 3 dishes for each category.enter the quantity needed and display the total.
    you can use methods like:- for,switch,while,do while etc.
    the result should display :-
    1)cost per dish (multiplied by its quantity)
    2)total cost of the bill.
    the user can enter as many items from as many categories he wants.

    Please do not repeat post. You have an extensive thread already:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=681425
    - Saish

  • To generate a restaurant bill

    To generate a restaurant bill using blue j. take 3 categories of items like punjabi chinese and continental. take 3 dishes for each category.enter the quantity needed and display the total.
    you can use methods like:- for,switch,while,do while etc.
    the result should display :-
    1)cost per dish (multiplied by its quantity)
    2)total cost of the bill.
    the user can enter as many items from as many categories he wants.

    Re-run:
    http://forum.java.sun.com/thread.jspa?threadID=681425
    http://forum.java.sun.com/thread.jspa?threadID=681812
    Believe me, even if you're going to post this another 20 times, it doesn't make homework questions and lazybums any more welcome.

  • PLZ ITS URGENT!!!!!!!!!!

    hi i developed a smartforms......
    in it i am using 'SSF_OPEN' and 'SSF_CLOSE' functions to suppress the print preview box which was coming again n again.....
    firstly it was working properly bt i made some changes in my smartforms and then it started giving me the problem n giving the error after executing'Previous Output Request was not finished'...
    plz help me out how to solve this problem....
    PLZ ITS URGENT!!!!!!!!!!!!!!!!!
    plz tell me anyone...........
    Edited by: Pardeep Sharma on Dec 24, 2007 11:38 AM
    Edited by: Pardeep Sharma on Dec 24, 2007 11:57 AM
    Edited by: Pardeep Sharma on Dec 24, 2007 12:12 PM

    Hi,
    Is the requirement to supress the print preview or the dailog box containing the parameters for the print?
    Regards,
    Kk

  • How to generate key pair using java ?(its urgent)

    We r working on java card. For security purpose I want a Key pair.
    If anyone is able to uide me by giving me a small code or algorithm i am very thankful.
    Its an urgent !!!!
    Plz inform me if any relative information u r having.

    import java.security.KeyPairGenerator;
    import java.security.KeyPair;
    import java.security.PrivateKey;
    import java.security.PublicKey;
    import java.security.SecureRandom;
    import java.security.KeyFactory;
    import java.security.spec.PKCS8EncodedKeySpec;
    import java.security.spec.X509EncodedKeySpec;
    import java.io.FileOutputStream;
    import java.io.FileInputStream;
    public class ParClaves {
         public KeyPairGenerator keyPairGenerator;
         public KeyPair keyPair;
         public PrivateKey privateKey;
         public PublicKey publicKey;
         public String algoritmo = "DSA"; // DSA o RSA
         public String proveedor = null;
         public int keysize = 1024;
         public SecureRandom random = null;
         public void guardarClaves(String fichClavePublica, String fichClavePrivada) throws Exception {
              byte[] key = this.publicKey.getEncoded();
              FileOutputStream keyfos = new FileOutputStream(fichClavePublica);
              keyfos.write(key);
              keyfos.close();               
              key = this.privateKey.getEncoded();
              keyfos = new FileOutputStream(fichClavePrivada);
              keyfos.write(key);
              keyfos.close();               
         } // fin de guardarClaves
         public void guardarClaves(String fichClavePublica, String fichClavePrivada, KeyPair keyPair) throws Exception {
              byte[] key = keyPair.getPublic().getEncoded();
              FileOutputStream keyfos = new FileOutputStream(fichClavePublica);
              keyfos.write(key);
              keyfos.close();               
              key = keyPair.getPrivate().getEncoded();
              keyfos = new FileOutputStream(fichClavePrivada);
              keyfos.write(key);
              keyfos.close();               
         } // fin de guardarClaves     
         public KeyPair recuperarClaves(String fichClavePublica, String fichClavePrivada) throws Exception {
              return new KeyPair(recuperarClavePublica(fichClavePublica), recuperarClavePrivada(fichClavePrivada));
         } // fin de recuperarClaves
         public PublicKey recuperarClavePublica(String fichClavePublica) throws Exception {
    // PENDIENTE: seguramente, para que esto fuera v�lido, habr�a que proporcionar el Proveedor ?�
    // probar generando clavePublica con otro proveedor distinto de SUN
              FileInputStream fis = new FileInputStream(fichClavePublica);
              byte[] encKey = new byte[fis.available()];
              fis.read(encKey);
              fis.close();
              KeyFactory keyFactory = null;
              try {
                   keyFactory = KeyFactory.getInstance("DSA");
              } catch (Exception e) {
                   keyFactory = KeyFactory.getInstance("RSA");
              } // fin del try
              X509EncodedKeySpec pubKeySpecX509 = new X509EncodedKeySpec(encKey);
              PublicKey publicKey = keyFactory.generatePublic(pubKeySpecX509);
              return publicKey;
         } // fin de recuperarClavePublica
         public PrivateKey recuperarClavePrivada(String fichClavePrivada) throws Exception {
    // PENDIENTE: seguramente, para que esto fuera v�lido, habr�a que proporcionar el Proveedor ?�
    // probar generando clavePrivada con otro proveedor distinto de SUN
              FileInputStream fis = new FileInputStream(fichClavePrivada);
              byte[] encKey = new byte[fis.available()];
              fis.read(encKey);
              fis.close();
              KeyFactory keyFactory = null;
              try {
                   keyFactory = KeyFactory.getInstance("DSA");
              } catch (Exception e) {
                   keyFactory = KeyFactory.getInstance("RSA");
              } // fin del try
              PKCS8EncodedKeySpec privKeySpecPKCS8 = new PKCS8EncodedKeySpec(encKey);
              PrivateKey privateKey = keyFactory.generatePrivate(privKeySpecPKCS8);
              return privateKey;
         } // fin de recuperarClavePrivada
         public KeyPair generarClaves() throws Exception {
              if (this.proveedor == null) {
                   this.keyPairGenerator = KeyPairGenerator.getInstance(this.algoritmo);
                   this.proveedor = this.keyPairGenerator.getProvider().getName();
              } else {
                   this.keyPairGenerator = KeyPairGenerator.getInstance(this.algoritmo, this.proveedor);
              } // fin del if
              if (this.random == null) {
                   this.keyPairGenerator.initialize(this.keysize);
              } else {
                   this.keyPairGenerator.initialize(this.keysize, this.random);
              } // fin del if
              this.keyPair = this.keyPairGenerator.generateKeyPair();
              this.privateKey = this.keyPair.getPrivate();
              this.publicKey = this.keyPair.getPublic();
              return this.keyPair;
         } // fin de generarClaves
         public KeyPair generarClaves(SecureRandom random) throws Exception {
              this.random = random;
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(int keysize) throws Exception {
              this.keysize = keysize;
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(int keysize, SecureRandom random) throws Exception {
              this.keysize = keysize;
              this.random = random;          
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmoOproveedor) throws Exception {
              decidir(algoritmoOproveedor);
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmoOproveedor, SecureRandom random) throws Exception {
              decidir(algoritmoOproveedor);
              this.random = random;          
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmoOproveedor, int keysize) throws Exception {
              decidir(algoritmoOproveedor);
              this.keysize = keysize;          
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmoOproveedor, int keysize, SecureRandom random) throws Exception {
              decidir(algoritmoOproveedor);
              this.keysize = keysize;          
              this.random = random;                    
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmo, String proveedor) throws Exception {
              this.algoritmo = algoritmo;          
              this.proveedor = proveedor;                    
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmo, String proveedor, SecureRandom random) throws Exception {
              this.algoritmo = algoritmo;          
              this.proveedor = proveedor;
              this.random = random;                              
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmo, String proveedor, int keysize) throws Exception {
              this.algoritmo = algoritmo;          
              this.proveedor = proveedor;
              this.keysize = keysize;                              
              return generarClaves();
         } // fin de generarClaves
         public KeyPair generarClaves(String algoritmo, String proveedor, int keysize, SecureRandom random) throws Exception {
              this.algoritmo = algoritmo;          
              this.proveedor = proveedor;
              this.keysize = keysize;
              this.random = random;          
              return generarClaves();
         } // fin de generarClaves
         public String getInformacion() {
              StringBuffer sb = new StringBuffer();
              sb.append("Algoritmo: " + this.algoritmo + "\n");
              sb.append("Proveedor: " + this.proveedor + "\n");
              sb.append("Keysize: " + this.keysize + "\n");
              return sb.toString();
         } // fin de getInformacion
         public boolean esAlgoritmoValido(String algoritmo) {
              try {
                   KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(algoritmo);
                   return true;
              } catch (Exception e) {
                   return false;
              } // fin del try
         } // fin de esAlgoritmoValido
         private void decidir(String algoritmoOproveedor) {
              if (esAlgoritmoValido(algoritmoOproveedor)) {
                   this.algoritmo = algoritmoOproveedor;
              } else {
                   this.proveedor = algoritmoOproveedor;
              } // fin del if
         } // fin de decidir
    } // fin de ParClaves

  • Plz its URGENT : Storing unicode data in MS SQL Server 2000 through JSPs

    Hello All,
    I'm trying to store unicode data, entered from JSP page into the SQL Server. For that I've tried the following :
    1> I put tag -
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    2> Also set in JSP tag -
    <%@page contentType="text/html;charset=UTF-8"%>
    But, still data is being entered in ISO-8859-1 format, don't know why. I tried with function for convertion - private String toUniCode(String strPar)-it successfully shows me the unicode data in alret msg, but it doesn't enters unicode data in SQL Server. In SQL Server only '??????' get entered. I kept data-type in SQL Server as nvarchar to store data in unicode.
    Would it be possible for me, to accept the data as UTF-8 itself & can I store it in SQL Server as it is? How can I do that? I'm accepting data in 'marathi' language.
    Plz, anybody Help me, I'm trying for this from around more than 1 week.
    Thanks in advance for any replies!

    Hello dmorris800,
    Thanx for your help. In fact I've tried lot many alternatives for that. Later I realised that it was problame of Driver, not of code. I was using jdbc:odbc driver which doesn't support unicode, or I don't know what was the problame with it.
    But I downloaded the driver named :'TaveConnect30C'. It is the connection optimised driver of Atinav.com This is the JDBC3 Type 4 Driver for MS SQL Server 6.5/7.0/2000 & trial version of which can be downloaded from http://www.atinav.com/download.htm
    It is really very good type-4 Driver.
    Cheers
    -Yogesh

  • Batch window not working. Help,plz its urgent!!

    My batch window is not showing up stuff that I have submited from compressor, FCP still says its exporting but file does not work afterwards.
    G5   Mac OS X (10.4.3)  

    You might want to check this note from Apple:
    http://docs.info.apple.com/article.html?artnum=93234

  • Need simple example on parsley framework using FLex,Please its urgent

    Hi,
         I tried samples on parsley framework using samples like contactmanagement.But i didnt get any output and not able to debug.
    Can u pls post any sample on this.

    This is an example I put together. It relies soley on the messaging functionality and is designed to be simple. Parsley has many tag (too many) and alternative approaches that you will find variations. However I had a hard time finding some beginner examples clearly explained.
    Parsley MVC, RemoteObject, Zend AMF and MySQL Basic Flex Example

  • Plz its urgent issue

    every answer  i appreciate 
    I have got ticket in Forex Valuation, When we are running Forex Valuation an error is coming
    The program is picking up the junk G/L for one of the entries
    The G/L which is picked up is ( <1400010Esp.> & the error which is occured is The G/L entry should not Exceed 10 characters
    Why is picking such an junk value though we have not assigned such Gl anywhere
    many thanks 
    raju

    Hi Raju,
    you are missed configuration settings for foreign currency valuation,
    check this path are you define or not
    SPRO>Financial Accounting (New)>General Ledger Accounting (New)> Periodic Processing>Valuate>Foreign Currency Valuation>Define Account Determination for Currency Translation.
    Here maintain Chat of accounts & Valuation area and financial Statement version, Then hit on new entries Maintain G/L accounts your problem was solued
    Before going to this path Create Valuation Areas
    Don't forgot assigne points
    Regards
    gvr

  • In put variable to have default from date as current date..its urgent

    query has input data as an interval it could be replaced with a single start end date parameters.only the start date needs a default value...
    plz its urgent..
    i will assign points...

    Hi,
    Steps to follow,
    1) In bex, Create a new variable of 0Calday characteristic.
    Set the following attributes:
    Type of Variable: Characteristic Value
    Variable name: ZCEMONT
    Variable Description: Caldate
    Processing by: Customer Exit (Drop down combo box)
    Characteristic: Calendar date
    Press Next
    Variable Represents: Range Value
    Variable Entry is: Mandatory
    Check Ready for Input
    And Press Next
    Press Finish.
    2) Transaction CMOD
    Create a new project, maintain the short text, and assign a development class.
    (It’s better to ask somebody senior in our project about this, because every project have one main project and development class)
    If you have project say Zproject. Choose option components. Click Change.
    Double-click on EXIT_SAPLRRS0_001.Then double-click on ZXRSRU01.
    Enter the coding .Save and activate the coding.
    INCLUDE ZXRSRU01 *
    DATA: L_S_RANGE TYPE RSR_S_RANGESID. 'In global area
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT. 'In global area
    DATA: zdate like sy-datum.
    CASE I_VNAM.
    WHEN 'ZCEMONT'.
    IF i_step = 1.
    zdate = 'your default value'.
    l_s_range-low = zdate.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDCASE.
    Activate the project. This is very important.
    3) TO test now, use that variable ZCEMONT in query some where by going to BEx designer.save the query.Don;t run it.
    4) First run it in RSRT(Tran code).
    Hope i m clear.
    Now your report
    1)Place your Priority infoobject in rows
    2)In column area in Bex, Right Click and New Structure.
    3) Right click the New Structure->New Selection"DOWNTIME"->Drag your KF ZDOWNTIME
    4) Now Create a New Formula and drag  DOWNTIME->
    ='DOWNTIME'<4
    5) same for other two.
    Regards,
    San!
    Message was edited by: San!
    Message was edited by: San!

  • Help me in JSTL. Its Urgent

    <logic:iterate id="ddd" name="mainForm" property="depts" type="com.ex.form.DeptForm" indexId="ctr">
                   <tr>
                        <td>               
                             <html:checkbox name="mainForm" property='<%= "depts[" + ctr + "].select" %>'/>
                        </td>          
    I want to gain the same functionality using JSTL. Here is what I am doing.
                             <c:set var="Count" value="0" scope="page" />
                                  <c:forEach var="summaryList" items="${MainForm.dept}" begin="${MainForm.startValue}" end="${MainForm.endValue}">
                                       <c:if test="${rowCount%2 > 0}" >
                                            <tr>
                                       </c:if>
                                       <c:if test="${rowCount%2 == 0}" >
                                            <tr bgcolor="#eeeeee" >
                                       </c:if>
                             <td>
                                  <html:checkbox name="summaryList" property="selected" />
                             </td>
    But the field selected is not populated in the DeptForm which is an array in the MainForm. This is working fine when using logic:iterate but not with JSTL. Please help how to do using JSTL. Its urgent.

    <logic:iterate id="ddd" name="mainForm"
    property="depts" type="com.ex.form.DeptForm"
    indexId="ctr">
                   <tr>
                        <td>               
    <html:checkbox name="mainForm" property='<%=
    ='<%= "depts[" + ctr + "].select" %>'/>
                        </td>          
    I want to gain the same functionality using JSTL.
    Here is what I am doing.
    <c:set var="Count" value="0" scope="page" />
    //So in the code above you used "MainForm.depts" here you use "MainForm.dept" which is correct?
    <c:forEach var="summaryList" items="${MainForm.dept}"
                     begin="${MainForm.startValue}" end="${MainForm.endValue}">
        //Where does the value of "rowCount" come from?  Where is is being incremented? 
        //Look up the JSTL docs for c:ForEach tag and see how to use the varStatus object.
        <c:if test="${rowCount%2 > 0}" >
            <tr>
        </c:if>
        <c:if test="${rowCount%2 == 0}" >
            <tr bgcolor="#eeeeee"  >
        </c:if>
        <td>
            <html:checkbox name="summaryList" property="selected" />
        </td>
    But the field selected is not populated in the
    DeptForm which is an array in the MainForm. This is
    working fine when using logic:iterate but not with
    JSTL. Please help how to do using JSTL. Its urgent.

  • HELP in Generating XML(PLz help its urgent)

    Hi,I need to generate XML FIle.Since i m new to XML.
    I had toregister the valid schema in my DB now i want to generate the XML file and with the refernce to this schema that xml file should be validated one against that schema.
    things i hav done till now
    ->i hav registered the scehma
    and the sample XML file provided by client
    <?xml version="1.0"?>
    <MEDMLDATA xmlns="PhaseForward-MedML-Inform4">
    <!-- Insert Trial/Study Information -->
    <STUDYVERSION UUID="id"
    STUDYNAME="name"
    VERSIONDESCRIPTION="text" />
    <!-- Insert Site Personnel Information -->
    <USER USERNAME="mmeyer"
    USERTYPE = "SITE"
    ACTIVESTATE = "TRUE"
    DELETESTATE = "FALSE"
    FIRSTNAME = "Marianne"
    LASTNAME = "Meyer"
    DISPLAYNAME = "Marianne Meyer"
    TITLE = ""
    HOMESCREENURL = "./Custom/HomeDefault.html"
    PHONE = "(555) 555-1212"
    FAX = "(555) 555-1212"
    ALTPHONE = ""
    EMAIL = "[email protected]"
    ADDRESS = ""
    ADDRESS2 = ""
    CITY = ""
    STATE = ""
    ZIPCODE = ""
    COUNTRY = ""
    BEEPER = ""
    USERMUSTRESETPASSWORD = "FALSE"
    DESCRIPTION = ""
    PASSWORD="changeme"/>
    <USER USERNAME="john"
    USERTYPE = "SITE"
    ACTIVESTATE = "TRUE"
    DELETESTATE = "FALSE"
    FIRSTNAME = "John"
    LASTNAME = "Meyer"
    DISPLAYNAME = "John Meyer"
    TITLE = ""
    HOMESCREENURL = "./Custom/HomeDefault.html"
    PHONE = "(555) 555-1212"
    FAX = "(555) 555-1212"
    ALTPHONE = ""
    EMAIL = "[email protected]"
    ADDRESS = ""
    ADDRESS2 = ""
    CITY = ""
    STATE = ""
    ZIPCODE = ""
    COUNTRY = ""
    BEEPER = ""
    USERMUSTRESETPASSWORD = "FALSE"
    DESCRIPTION = ""
    PASSWORD="changeme"/>
    <!-- Insert Site Information -->
    <SITE NAME=     "(01) Massachusetts General Hospital" MNEMONIC="01"
    ADDRESS = "1 Main Street"
    ADDRESS2 = ""
    CITY = "Boston"
    STATE = "MA"
    ZIPCODE = ""
    COUNTRY = "USA"
    PHONE = "(555) 555-1212"
    ALTPHONE = ""
    FAX = ""
    EMAIL = ""
    TIMEZONE="(GMT-05:00) Eastern Time (US & Canada)"
    SITEDATEFORMAT = "MONTH_DAY_YEAR"
    STARTDATE = "April 1, 2005">
    </SITE>
    <SITE NAME=     "(02) Boston General Hospital" MNEMONIC="01"
    ADDRESS = "1 Main Street"
    ADDRESS2 = ""
    CITY = "Boston"
    STATE = "MA"
    ZIPCODE = ""
    COUNTRY = "USA"
    PHONE = "(555) 555-1212"
    ALTPHONE = ""
    FAX = ""
    EMAIL = ""
    TIMEZONE="(GMT-05:00) Eastern Time (US & Canada)"
    SITEDATEFORMAT = "MONTH_DAY_YEAR"
    STARTDATE = "April 1, 2005">
    </SITE>
    <!-- Insert SITE and User Mapping Information -->
    <SITEGROUP SITENAME="(01) Massachusetts General Hospital">
    <USERREF USERNAME="mmeyer"/>
    </SITEGROUP>
    <SITEGROUP SITENAME="(02) Boston General Hospital">
    <USERREF USERNAME="John"/>
    </SITEGROUP>
    <!-- Insert User ROle Information -->
    <RIGHTSGROUP GROUPNAME="CRA">
    <!-- Insert Rights -->
    <RIGHTREF RIGHT="Print"/>
    <RIGHTREF RIGHT="Monitor"/>
    <RIGHTREF RIGHT="Canned Reports"/>
    <RIGHTREF RIGHT="View CRF"/>
    <RIGHTREF RIGHT="View Signature History for CRF"/>
    <RIGHTREF RIGHT="View Signature History for CRB"/>
    <RIGHTREF RIGHT="Data Export Listings"/>
    <RIGHTREF RIGHT="Freeze a CRF"/>
    <RIGHTREF RIGHT="Unfreeze a CRF"/>
    <RIGHTREF RIGHT="Mark and Unmark a CRF as SVed"/>
    <RIGHTREF RIGHT="Freeze a CRB"/>
    <RIGHTREF RIGHT="Unfreeze a CRB"/>
    <RIGHTREF RIGHT="Change Query State from Candidate to Open"/>
    <RIGHTREF RIGHT="Change Query State from Candidate to Deleted"/>
    <RIGHTREF RIGHT="Change Query State from Answered to Closed"/>
    <RIGHTREF RIGHT="Change Query State from Open to Closed"/>
    <RIGHTREF RIGHT="Change Query State from Reissued Candidate to Closed"/>
    <RIGHTREF RIGHT="Enter Query in Candidate State"/>
    <RIGHTREF RIGHT="Enter Query in Open State"/>
    <RIGHTREF RIGHT="Re-issue Query in Candidate State"/>
    <RIGHTREF RIGHT="Re-issue Query in Open State"/>
    <RIGHTREF RIGHT="Navigate by Visit"/>
    <RIGHTREF RIGHT="Navigate by Form"/>
    <RIGHTREF RIGHT="Reordering of Patients"/>
    <!-- Insert Users for role -->
    <USERREF USERNAME="mmeyer"/>
    <USERREF USERNAME="john"/>
    </RIGHTSGROUP>
    </MEDMLDATA>
    now i need to generate XML based on the above SAMple XML file,can anybody tell me how to generate XML file based on this..and after generating it should be validated against the registerd schema.

    Maybe I am wrong, but my understanding is that you have to generate the xml from your data source (usually tables) and then you validate it against your schema. I don't know if the schema has a magic that can generate the xml for you. Is that correct? Anyone please? At the beginning, I asked a .Net guy if his tool could "generate" an xml simply using the schema (I thought so). But he said they had to use many style sheets to create the xml.
    Ben

  • Using Bluej to make a pethotel program

    i am new to bluej and have been given a project which i believe is over my standard but because i need it to pass my year at college i can not drop it. i recently came across this site and i thought it would be really helpful please if there is anyone out there that can help me please can you get in contact asap please. this is an outline of what the project should be.
    JAVA Project 2006/2007
    Program Brief
    The Animal Hotel
    The Animal Hotel comprises of dog kennels and a cattery where dogs and cats are looked after in palatial surroundings.
    The proprietors want a computer system which keeps track of the animals that they have in the hotel.
    The data to be stored is:-
    Owner Data: unique-owner-id, name, address, phone.
    Common Animal Data: animal-name, type-code, dob, sex, breed, weight, unique-owner-id, check-in-date, check-out-date, currently-resident-flag, days-of-stay, cost, vat, total-cost.
    (The type-code is simple 1 � dog, 2 � cat.)
    If a DOG
    Also has fields: feed-quantity, number-feeds-day
    ( All dogs get the same food here )
    If a CAT
    Has field: cat-food-brand-code
    ( Each cat is given its favourite cat food )
    The system will be menu driven and the main menu will comprise the following options:-
    Add owners
    Add animals
    Search for animal
    Search for owner
    Display current animals.
    Delete animal
    Delete owner
    Check-in animal
    Check-out animals and produce bill
    On start up the program should load the owners and pet data from file.
    On shutdown the program should write to the owners and pet data files.
    Program Specification
    The main menu options should do the following:-
    Adding owners to the system. As each owner is added a unique-owner-id is given which is simply one more than the highest one currently in use. This would allow one owner to check in more than one animal.
    Adding animals to the system. As each animal is added (The check-in and check-out date is entered but the user also enters the number of days stay so that the programmer does not have to try to calculate number of days from two dates)
    Search Animal � Showing all fields for animal � the search key is animal name.
    Search Owner � Showing all fields for owner � the search key is owner name.
    Display current animals. Showing all fields of animals who are currently checked in.
    Delete animal � only done to void errors as all animals are kept on file so that the proprietors can produce reports etc.
    Check-in animals - simply sets the in-residence flag to true by entering the unique-owner-id for all animals for that owner.
    Check-out animals and produce a bill for all the owner�s animals and sets the in-residence flag to false for all the owners animals by entering the unique-owner-id.
    The production of the owner�s bill is done by calculation the number of days stay times the room rate per night + number of days stay * food costs.
    The room rate is based on the size of the animal:-
    Up to 2kg �3.00 per night
    2kg and < 5kg �4.50
    5kg and < 10kg �5.50
    10kg and < 15kg �7.00
    15kg and < 20kg �8.50
    20kg �10.00
    The animal feed for dogs costs �1.50 per kg.
    The cat-food-codes used are:-
    1 - �0.45
    2 - �0.50
    3 - �0.65
    4 - �0.75
    5 - �0.90
    6 - �1.05
    7 - �1.20
    Data Files
    The system should use three data files � dogs.dat, cats.dat and owners.dat.
    On start up the program should read these in to arrays in memory.
    On shutdown the program should write the data from the arrays back to file.

    Think java programming, only without access to what's actually going on underneath. Learning no command line syntax, but instead painting a pretty yellow square for every Object you instantiate. Being able to right click on a pretty square and click one of any number of its methods, to see what magic happens to the variables inside it.
    IMHO, you should start off with the basics when first programming at uni, instead of hiding them away. Teach the students java, javac, and to use notepad++/emacs/vim/whatever and a command line.
    BlueJ has its place, of course. It might be useful for high school programming courses, or perhaps as a first IDE once they've learned the basics of java. Just my opinion, of course.

  • How to generate a PDF output using batch file in 10G

    Hello,
    I am using .bat file to generate a report PDF output. I have done this many times in 6i but for 10G I am unable to do the same.
    Can someone please look at the syntax below and let me know where I am going wrong.
    I understand that reports are different for 6i and 10G specially .rep file but I am sure we should be able to generate a PDF file using 10G. Please let me know.
    Thanks
    IQ
    Contents of .bat file follow
    ECHO Opening parameter form. Please do not close this window.
    C:\
    FOR /F "tokens=1 " %%I IN ('time /t') DO (SET _TIME=%%I)
    FOR /F "tokens=2 " %%I IN ('date /t') DO (SET _DATE=%%I)
    SET EXP_DATE=%_DATE:~6,4%%_DATE:~0,2%%_DATE:~3,2%_%_TIME:~0,2%%_TIME:~3,2%
    SET FILENAME=SEND_EMAIL_%EXP_DATE%_%USERNAME%.PDF
    CD C:\Users\Documents
    RWCONVERTER REPORT=C:\Users\Documents\send_email.rep USERID=scott/tiger@ORCL1 ORIENTATION=LANDSCAPE DESFORMAT=PDF DESTYPE=FILE
    DESNAME=C:\Users\\%FILENAME% PRINTJOB =NO

    Rwconverter is not used to run reports:
    rwconverter (Reports Converter) enables you to convert one or more report definitions or PL/SQL libraries from one storage format to another.
    I think you mean rwrun:
    rwrun (Reports Runtime) runs a report by starting its own in-process server (not to be confused with the default in-process Reports Server), which runs in the same JVM as the rwrun process.
    This bat file has to run on the server. There is no Reports installation on the client anymore.
    If you want to run a report from a client, you can make a bat file that calls the report url
    See: http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla002.htm#i634710

  • COPA document not generated though after billing and accounting generations

    I have an issue with one instant.
    For some reason COPA document is not generated even though billing and accounting document were created. Found no errors in simulation using KE4ST. The billing item details has all the PA segment characteristics.
    COPA documents were created for entries made befor and after this particular one.
    Also we have COPA documents for the product with the same customer and different customers.
    Our system is 'SAP ERP Central Component 5.0'

    Thanks Ajay for the quick response.
    Cost element category is correctly maintained.
    Condition types are mapped.
    COPA is in use for more than 4 years.
    Able to simulate COPA document for the Billing document without errors.
    We do have COPA documents created before and after this particular transaction.
    As you said raising OSS message with SAP.
    Thanks

Maybe you are looking for

  • Can't get clipboard to work.

    I can't seem to get the clipboard to work on the JTextArea. Can anyone see what I am doing wrong: import javax.swing.table.*; import javax.swing.event.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.Dimension; imp

  • Exporting in mpeg2?

    Still learning Premiere Pro (CS6 in this case). I'm getting pretty good at it, but sometimes I want to export in mpeg2. Yet I can't find an mpeg2 setting in the Export window. Can anyone help?

  • Invisible mode - not really invisible if contacts ...

    I went to live chat and spoke to the Skype people and they said it was impossible for someone to know weather or not if I'm online when I use invisble mode, but I know for a fact this is not true. To prove this I stop logging into Skype daily. Didn't

  • Purchase Order Creation without account assignment

    Hi All, Is it possible to create a purchase order without assigning account assignment category? If yes kindly provide the configuration steps? Regards Krishna

  • Field Service - STAR program is completing with Error message

    Hi Synchronize Territory Assignment Rules (STAR) program is getting completed with following error message: Parameters used were 'Service' with a Run mode as 'Total Refresh'. It errors out with 'No data found' error message. (Log file appended below)