Perform multiplication, division n get remainder without using arithmetic o

hello,
perform multiplication, division n get remainder without using arithmetic operators
thanks in advance
manasi

ram.manasi wrote:
i can program myself however i am new to programming and have no clue how to perform arithmmetic operations without using arithmetic operators n would like to know how to go about itwell, we're not your private code-monkeys nor are we tutors. We are usually best at answering specific questions but many of us get our hackles up when someone simply demands an answer. I suggest that you find out what your teacher is expecting of you here. I would guess that this involves some recursion, but it is up to you to find out. Do some work. Then if you have a specific question, please feel free to come back and ask for help. nicely.

Similar Messages

  • Getting ROWID without using "FOR UPDATE" in statement

    Hi,
    Is there any way to get the ROWID of the current record without using "FOR UPDATE" in the statement?
    Here's the story...
    I'm actually working on a server that receives multiple connections from client applications. The server interacts with OCI for selecting, updating, fetching and so on. The server is able to manage many opened recordset from clients.
    Here's a possible scenario:
    - A client asks the server to open a recordset ie: "SELECT * FROM foo".
    - Then, the server receives a command to position the cursor on the last record ie: "OCIFetch2->LAST".
    - Finally, the client decides to update the current (last) record.
    Since the server can receive other requests such as opening a new recordset from another client, I can't use "SELECT * FROM foo FOR UPDATE" because it blocks further call to OCIStmtExecute (even in NONBLOCKING mode).
    At the same time, I can't COMMIT the transaction after the "SELECT" statement otherwise the selection gets invalidated. The selection needs to remain valid until the client decides to "close the recordset".
    Is there any workaround?
    Any help would be appreciated!
    Thanks,
    Jonathan Primeau
    Software Engineer
    Integration New Media, inc.

    Hi again,
    I found that OCIRowidToChar could save my life. In fact, by retrieving the ROWID equivalent string I could use it to build a statement like:
    update foo set c1 = 1 where rowid = 'AAAHZuAABAAAMViAAL';
    which will solve my problem since these strings don't change and represents a unique record.
    The problem is when I try to compile this method it says:
    test.cpp: In function `sword OpenRecordset(OCIServer*&, OCISvcCtx*&, OCIStmt*&,
    COLDEF*)':
    test.cpp:382: `OCIRowidToChar' undeclared (first use this function)
    test.cpp:382: (Each undeclared identifier is reported only once for each
    function it appears in.)
    make: *** [test] Error 1
    It seems that this function is not declared under Solaris/Oracle 9i. I searched on the web and there is not much information about that. However, it is documented in the Oracle book.
    Is there any way to use this function under Solaris? If not, how can I get the string that represents a ROWID?
    I use the following syntax:
    sword OCIRowidToChar ( OCIRowid *rowidDesc,
    OraText *outbfp,
    ub2 *outbflp
    OCIError *errhp );
    Best regards,
    Jonathan
    Software Engineer
    Integration New Media, inc.

  • Why my cellphone gets hot without using

    Why my cellphone gets hot without using

    Operate iOS devices where the temperature is between 0º and 35º C (32º to 95º F). Low- or high-temperature conditions might temporarily shorten battery life or cause the device to alter its behavior to regulate its temperature.
    Store the device where the temperature is between -20º and 45º C (-4º to 113º F). Don’t leave the device in your car, because temperatures in parked cars can exceed this range.
    When using the device or charging the battery, it is normal for it to get warm. The exterior of the device functions as a cooling surface that transfers heat from inside the device to the cooler air outside.
    Conditions and activities that may cause the device to alter performance and behavior include:
    Leaving the device in a car on a hot day.
    Leaving the device in direct sunlight for an extended period of time.
    Using certain features in hot conditions or direct sunlight for an extended period of time, such as GPS tracking or navigation in a car, or playing a graphics-intensive game.
    If the interior temperature of the device exceeds the normal operating range, the device will protect its internal components by attempting to regulate its temperature. If this occurs, you may notice the following:
    The device stops charging.
    The display dims or goes black.
    In navigation:The device will present an alert and turn off the display:
    Navigation will continue to provide audible turn-by-turn directions. When approaching a turn, the display will illuminate to guide you through the turn.
    To return the device to normal operation, press the Home Button and slide to unlock. If the device has cooled down enough, you can continue normal usage.
    Drive and ride safely. Give full attention to driving or riding and to the road.
    Cellular radios will enter a low-power state. The signal may weaken during this time.
    The camera flash is temporarily disabled.
    If the device exceeds a certain temperature threshold, it will present a temperature warning screen similar to this:
    To resume use of your device as quickly as possible, turn it off, move it to a cooler environment, and allow it to cool down.
    Note (iPhone only): When this message appears, the device may still be able to make emergency calls.

  • Problem in performing multiple Point-In-Time Database Recovery using RMAN

    Hello Experts,
    I am getting an error while performing database point in time recovery multiple times using RMAN. Details are as follows :-
    Environment:
    Oracle 11g, ASM,
    Database DiskGroups : DG_DATA (Data files), DG_ARCH(Archive logs), DG_REDO(Redo logs Control file).
    Snapshot DiskGroups :
    Snapshot1 (taken at 9 am): SNAP1_DATA, SNAP1_ARCH, +SNAP1_REDO
    Snapshot2 (taken at 10 am): SNAP2_DATA, SNAP2_ARCH, +SNAP2_REDO
    Steps performed for point in time recovery:
    1. Restore control file from snapshot 2.
         RMAN> RESTORE CONTROLFILE from '+SNAP2_REDO/orcl/CONTROLFILE/Current.256.777398261';
    2. For 2nd recovery, reset incarnation of database to snapshot 2 incarnation (Say 2).
    3. Catalog data files from snapshot 1.
    4. Catalog archive logs from snapshot 2.
    5. Perform point in time recovery till given time.
         STARTUP MOUNT;
         RUN {
              SQL "ALTER SESSION SET NLS_DATE_FORMAT = ''dd-mon-yyyy hh24:mi:ss''";
              SET UNTIL TIME "06-mar-2013 09:30:00";
              RESTORE DATABASE;
              RECOVER DATABASE;
              ALTER DATABASE OPEN RESETLOGS;
    Results:
    Recovery 1: At 10.30 am, I performed first point in time recovery till 9:30 am, it was successful. Database incarnation was raised from *2* to *3*.
    Recovery 2: At 11:10 am, I performed another point in time recovery till 9:45 am, while doing it I reset the incarnation of DB to *2*, it failed with following error :-
    Starting recover at 28-FEB-13
    using channel ORA_DISK_1
    starting media recovery
    media recovery failed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 03/06/2013 11:10:57
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
    start until time 'MAR 06 2013 09:45:00'
    ORA-00283: recovery session canceled due to errors
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '+DG_REDO/orcl/onlinelog/group_1.257.807150859'
    ORA-17503: ksfdopn:2 Failed to open file +DG_REDO/orcl/onlinelog/group_1.257.807150859
    ORA-15012: ASM file '+DG_REDO/orcl/onlinelog/group_1.257.807150859' does not exist
    Doubts:
    1. Why did recovery failed 2nd time, but not 1st time and why is RMAN looking for online redo log group_1.257.807150859 in 2nd recovery ?
    3. I tried restoring control file from AutoBackup, in that case both 1st and 2nd recovery succeeded.
    However for this to work, I always need to keep the AutoBackup feature enabled.
    How reliable is control file AutoBackup ? Is there any alternative to using AutoBackup, can I restore control file from snapshot backup only ?
    4. If I restore control file from AutoBackup, then from what point of time/SCN does RMAN restores the control file ?
    Please help me out in this issue.
    Thanks.

    992748 wrote:
    Hello experts,
    I'm little newbie to RMAN recovery. Please help me in these doubts:
    1. If I have datafiles, archive logs & control files backup, but current online REDO logs are lost, then can I perform incomplete database recovery ?yes, if you have backups of everything else
    2. Till what maximum time/scn can incomplete database recovery be performed ??Assuming the only thing lost is the redo logs, you can recover to the last scn in the last archivelog.
    3. What is role of online REDO logs in incomplete database recovery ? They provide the final redo changes - the ones that have not been written to archivelogs
    Are they required for incomplete recovery ?It depends on how much incomplete recovery you need to do.
    Think of all of your changes as a constant stream of redo information. As a redolog fills, it is copied to archive, then (eventually) reused. over time, your redo stream is in archivelog_1, continuing into archvivelog_2, then to 3, and eventually, when you get to the last archivelog, into the online redo. A recovery will start with the oldest necessary point in the redo stream and continue forward. Whether or not you need the online redo for a PIT recovery depends on how far forward you need to recover.
    But you should take every precaution to prevent loss of online redo logs .. starting with having multiple members in each redo group ... and keeping those multiple members on physically separate disks.

  • Add multiple entries to dropdown list without using data dictionary

    Hi,
    By default when we use a data dictionary element for dropdown list, all the possible values are listed in the dropdown. However when no data dictionary element is used for the dropdown list, it behaves like a parameter with a single line.
    I would like to know if it is possible to not use the data dictionary element and still have multiple lines in the dropdown.
    Thanks in advance.
    Shamia

    Check the below program :
    *report zxyz.
    report zxyz.
    Table diclaration
    tables: tvdir.
    Selection screento table View
      selection-screen skip 2.
      parameter p_tabnm(30) as listbox visible length 30 obligatory.
      selection-screen skip 1.
      selection-screen begin of block s1 with frame title text-001.
      parameter: p_radio1 radiobutton group g1,
                 p_radio radiobutton group g1.
      selection-screen end of block s1.
    Add values to list box
    at selection-screen output.
      type-pools: vrm.
      data: name  type vrm_id,
            list  type vrm_values,
            value like line of list.
      name = 'P_TABNM'.
      refresh list.
      value-key = 'V_024'.
      value-text = text-002. "'V_024-Purchasing Groups'.
      append value to list.
      value-key = 'V_T024D'.
      value-text = text-003. "'V_T024D-MRP Controllers'.
      append value to list.
      value-key = 'ZT604'.
      value-text = text-004. "'T604-Commodity Codes'.
      append value to list.
      value-key = 'T179'.
      value-text = text-005. "'T179-Product Hierarchies'.
      append value to list.
      value-key = 'TVM1T'.
      value-text = text-006. "'TVM1T-Business Manager'.
      append value to list.
      value-key = 'TVM2T'.
      value-text = text-007. "'TVM2T-Division manager'.
      append value to list.
      value-key = 'TVM3T'.
      value-text = text-008. "'TVM3T-Director'.
      append value to list.
      value-key = 'V_TVV2'.
      value-text = text-009. "'V_TVV2-Customer Group 2'.
      append value to list.
      call function 'VRM_SET_VALUES'
           exporting
                id     = name
                values = list.
    start-of-selection.
    Get flag of corresponding table view
      select single tabname flag from tvdir into tvdir
                    where tabname = p_tabnm.
    Set flag of corresponding table view
      if p_radio1 eq 'X'.
        if tvdir-flag ne 'X'.
          update tvdir set: flag  = 'X'
                     where tabname = p_tabnm.
        endif.
      endif.
      if p_radio eq 'X'.
        if tvdir-flag eq 'X'.
          update tvdir set: flag  = ''
                       where tabname = p_tabnm.
        endif.
      endif.
    Execute View/Table
      call function 'VIEW_MAINTENANCE_CALL'
        exporting
          action                               = 'U'
          view_name                            = p_tabnm
       exceptions
         client_reference                     = 1
         foreign_lock                         = 2
         invalid_action                       = 3
         no_clientindependent_auth            = 4
         no_database_function                 = 5
         no_editor_function                   = 6
         no_show_auth                         = 7
         no_tvdir_entry                       = 8
         no_upd_auth                          = 9
         only_show_allowed                    = 10
         system_failure                       = 11
         unknown_field_in_dba_sellist         = 12
         view_not_found                       = 13
         others                               = 14.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Reset flag of corresponding table view
      update tvdir set: flag  = tvdir-flag
                    where tabname = p_tabnm.
    Thanks
    Seshu

  • Process multiple documents in zip file without using ccBPM in PI

    Hi,
    Is it possible for PI to handle multiple documents within a zipped source file without the use of ccBPM?
    For example, I have an incoming source zip file containing 0.pdf, a,xml, z.pdf respectively,  After having the sender communication channel uncompress the zip file, each pdf file should be pushed to a directory on a file server, and the xml file should go through a message mapping.
    Is this possible to process all of the files without the use of ccBPM?
    Regards,
    Jim

    Hi Michal,
    Thank you for your response.  The example I provided is just one potential case.  In general, the zip file will always contain 1 xml file and 0-n PDFs, Word docs, or other types of documents.  Also, the first file in the zip may not always be the xml file, which is what I was trying to portray by my example.  Since I am not sure how many non-xml files will be included, I did not know if I could handle all of them directly, without ccBPM.
    At this point, I am leaning towards using a script preprocessor to uncompress the zip, then for each file found, push the xml file to an NFS channel which will process/map the xml, and push every other file type to another NFS channel to copy these documents to a predetermined directory on a predetermined server.
    What are your thoughts on this approach?
    Thanks and Regards,
    Jim

  • I'm a very small user - can I still get Dreamweaver without using the cloud?

    I have an existing site to show my daylily seedlings and introductions.  This is a small family part-time project, not a professional firm.  Our former web designer stopped doing her moonlight web-work this year as her college course load has increased.  Her work is still up.  I can probably find out the server information to modify the existing setup - I think I have it already, but haven't tried the access yet. 
    My problem is that, although I have adequate computer space to store almost any project, I can't justify paying infinite monthly Cloud fees.  Is there still a version of Dreamweaver I can get without having to pay forever for cloud storage?  If not, I'll just keep looking for a brand that will support my needs.

    Dreamweaver CS 6 is available as mentioned. Adobe Muse can create neat websites and is available for $15 month. If the website is simple enough it may be able to be maintained with a Text Editor and an ftp program. I keep certain sites up and running with BBEdit. The rest I use Dreaweaver. Dreamweaver CS 6 will be a good short term solution. I say short term, since Adobe doesn't guarentee that it will keep CS 6 apps running forever. Eventually, after some system upgrade (Windows 9, OS XI) CS 6 apps will be a thing of the past.
    There are many free or inexpensive programs that can be used to maintain a website. Recommendations depend upon your skill level and the platform you use and the server you plan to keep your website are running on.  Personally, I'd stay away from anything like WordPress unless you are ready to stay on top of what is going on with it. WordPress is VERY VERY popular and is a frequent target of attacks because is it so popular. WordPress security issues are fixed quickly. The issue is that many people do not keep the sofware up to date.

  • How could i get apps without using creditcard

    how could i get apps in my i phone?

    Read the information found in this support article: Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…

  • I had start over just like getting a new computer, one thing, i lost mail and iphoto, but my daughter has it on her's.  how can i get it without using the start disk, because i don't have one.

    how do i get back mail and iphoto?

    Mail should be there, have you looked in the Aplications folder?

  • Why am i getting hyperlinks without using a /a tags?

    Im using Dreamwever6 and im very new at this.
    I have code showing up as a link when i preview it but there is no anchor tag set for a link.  I've previewed in Safari, Fire Fox, and Chrome.  I've included the html below.  The lines that display incorectly are in bold.
    <!doctype html>
    <html>
              <head>
                  <title>Project Title</title>
        <body>
                        <div id="top">
                                  <div id="logo">
                          <img src="_img/ManchesterLogo.jpg" />
                </div>
                <div id="social-media">
                          <p>For Additional Info<br />Please call 555-555-0000</p>
                    <ul>
                              <li><a href="http://www.facebook.com" /><img src="#" /></li>
                        <li><a href="http://www.twitter.com" /><img src="#" /></li>
                        <li><a href="#" /><img src="#" /></li>
                        <li><a href="http://www.linkedin.com" /><img src="#" /></li>                  
                        <li><a href="http://www.yelp.com" /><img src="#" /></li>
                        <li><a href="http://www.youtube.com" /><img src="#" /></li>
                    </ul>
                </div>
                        </div>
            <div id="topnav">
                      <ul>
                          <li><a href="#" />Welcome</li>
                    <li><a href="#" />About</li>
                    <li><a href="#" />Products</li>
                    <li><a href="#" />Services</li>
                    <li><a href="#" />Gallery</li>
                    <li><a href="#" />Contact</li>
                </ul>
            </div>
            <div id="banner">
                      <img src="#" />
            </div>
            <div id="content-wrapper">
                                  <div id="content">
                                  <h1>This is a level one heading that displays as a hyperlink.</h1>
                    <p>This paragraph also showing as a hyperlink.</p>
                </div>
                <div id="rightside">
                </div>
                        </div>
            <div id="footer">
            </div>
              </body>
              </head>
    </html>

    You're about to have a palm to forehead, ah haaaaa moment.
    You didn't close any of your menu anchor <a> tags.
    Change this:
    <ul>
                    <li><a href="#" />Welcome</li>
                    <li><a href="#" />About</li>
                    <li><a href="#" />Products</li>
                    <li><a href="#" />Services</li>
                    <li><a href="#" />Gallery</li>
                    <li><a href="#" />Contact</li>
    </ul>
    To this:
    <ul>
                    <li><a href="#" />Welcome</a></li>
                    <li><a href="#" />About</a></li>
                    <li><a href="#" />Products</a></li>
                    <li><a href="#" />Services</a></li>
                    <li><a href="#" />Gallery</a></li>
                    <li><a href="#" />Contact</a></li>
    </ul>
    Nancy O.

  • How does my storage HDD get mounted without using fstab?

    Since a few days back I had some problems with booting up Arch, it said that the my storage HDD couldnt be checked cause it was already mounted, I couldnt figure out what was wrong. But if I removed the line from fstab I could boot up as normal.
    I also noticed that it gets mounted even though I removed the line from fstab. So how does my HDD get mounted? And how does it now that it should be mounted as "/media/HDD0"? What is going on? Im kinda freaked atm for not having any control over whats going on.
    Last edited by Hund (2011-06-13 21:43:57)

    Hund wrote:
    jasonwryan wrote:Do you have a udev rule to automount drives?
    I havent done anything with udev myself.
    Just to be sure, see if you anything in /etc/udev/rules.d/

  • Is there a way to get fonts without using a jailbreak?

    I would like to change the system font but the only way I've seen that its possible is with some kind of jailbreak. I don't the hacking ability of most people so if someone has an easy way out do tell!

    No.

  • Can I use ant's api without using javascript ?

    Can I use ant's api without using javascript and which tasks we cant do without javascript in ant's build file?
    eq:
    jar=project.createTask("jar");
    jar.setDestFile(new java.io.File(project.getProperty("lib")+"/myJarFile.jar"));
    jar.setBasedir(new java.io.File(project.getProperty("classes")));
    jar.setIncludes(project.getProperty("GenericDirStructure")+"/**");
    jar.setIncludes("META-INF/**");
    jar.perform();
    can I create above jar without using javascript i. e<script language="javascript"> in build.xml file.
    Thanks,
    Archan

    Archana144 wrote:
    hello georgemc
    How to use ant's api without javascript in build.xml file because it gives error if I tries to do something like
    project.createTak("echo").in build.xml..etc ..without including this in <script language="javascirpt">
    And I cant use <jar> task directly because ..I want to crete multiple jar files depending on some configuration done in properties files..so I m doing this jar creation in loop.
    Thanks,
    Archan
    Edited by: Archana144 on Aug 13, 2008 6:00 PMHave you read all the Ant documentation? The <script> task was only added in 1.7, before that, there was no using Javascript in build files

  • Drill down report without using heirarchies in OBIEE11g

    Hi,
    Can we create multiple column drill down report without using hierarchies in OBIEE11g?
    Kindly let me know the solution.
    Thank you!
    -Harshith

    Yes, It can be done, but for each drill level you will require one seperate report. Drilling can be achieved using OBIEE Report Navigation.
    For eg. If I have to create a drill report which starts from Year and goes to QTR and then to Month level. That means I have to create 3 reports.
    1. A year report which will have report data at year level (Consider Year, Product, Order_QTY and Order_Amt are the columns)
    2. A QTR report which will have report data at Qtr level. This report will have Year column in filter section as IS PROMPTED (Consider Qtr, Product, Order_QTY and Order_Amt are the columns).
    3. A Monthly report which will have report data at Month level. This report will have Year, Qtr column in filter section as IS PROMPTED (Consider Month, Product, Order_QTY and Order_Amt are the columns).
    Then we can go to Yearly report and put the OBIEE navigation on Year column and our target report will be QTR report. Similarly in Qtrly report put the OBIEE navigation on QTR column and our Target report will be Monthly report.
    This way you can impliment drilling without hierarchy.
    For step by step see below URL:
    http://www.askjohnobiee.com/2012/07/how-to-drill-through-guided-navigation.html
    Appriciate if you can mark Correct.
    Thanks,
    Kashi
    Edited by: K N Yadav on 4 Jun, 2013 10:27 PM

  • Urgent !- Drop down the list without using mouse and ALT+DOWN

    I'm working in Oracle Forms 10g. Is there any way I can drop down the list, the moment the list gets focused, without using the mouse and ALT+DOWN?
    Kindly let me know if you have a solution for this. Thanks in advance.

    Dear Uma Maheswari,
    You can use also the arrow keys to drop down the lists, but I don't think once you have the focus, you can drop down the list. If you get any solution to this kindly let me know.
    Regards.
    Senthil .A. Perumal.

Maybe you are looking for

  • Splash screen with progress bar and multiple jar files to load

    Hello, I have been looking to the new features in java 6 for splash screens. I haven't implemented this never before and i was wondering how i could do the following with java 1.5 or 6: I would like to see a splash screen with a progress bar that "gr

  • "required folder cannot be found" error in iTunes 11 with iphone 5

    I'm getting the "Attempting to copy to the disk "Macintosh HD" failed. The required folder cannot be found" error when I sync my iPhone with iTunes. I haven't split my iTunes media library or moved it to an external drive--everything's on the interna

  • JNDI Lookup of ConnectionFactory fails from inside Glassfish application

    This may very well end up being a glassfish specific question. I've got a stand-alone WAR using JSF, where I have a backing bean use some helper objects that will send a JMS message. When this WAR is running from inside of Glassfish, it fails to do t

  • Unable to insert messages in JMS QUEUE

    Hi All, I am facing an issue while inserting messages in JMS queue. The JMS Queue is on another weblogic server and now i created a bpel process which has a jms adapter to insert messages inthe jms queue.I am deploying the Bpel in my server which doe

  • Apple TV is great but what about the content?

    So I went to the Apple Store today ready with cash in hand from my tax refund to buy an Apple TV. However, I was sadly surprised by the content loaded on the Apple TV. Both the movies clips and tv shows clips were grainy and poor quality. So much so