How to get the highest grade?

Hello! How u get the highest occurence grade? lets say if Mr A score 85 for his test, u get an 'A'. Mr 'B' score 95, he also get an 'A'. And lastly, Mr C score '25' which is 'F'. So i have to get out 'A' as it is the highest occurence grade. But no matter what I try, I just can't get it right. Hopefully, someone here can help..

Hopefully he will come back.
You folks who answered him performed a dis-service.
Its not up to you to decide "how" a person is to
learn java, just answer the question, instead the kid
got a dressing down.
If you answer his question, there are only 2 outcomes
possible:
1.he will make an effort to understand the code, he
will learn.
2.he will simply copy the code, not learn & will fail
his mid-term
He should be treated like an adult, he knows the
consequences if he doesnt make the attempt to
undertand the answer... he will fail his course. Kid,
post your email address... i will give you as much
help as i can, its up to you what u do with it. k? I
would like to help u. hi and very sorrrrrrrrrrrrrrrrrrrrrrrrrrrrrry for bieng rude but the thing was that the prob was very easy and seemed to be of the type of a homework ...... on the other hand i should be appreciated atleast i gave the idea of a solution . and i persnally dont think that anymore spoonfeeding should be done to a person learning java
moreover that person should learn to think big coz its all a game of big ideas

Similar Messages

  • How to get the highest point of the taskbar

    I would like to show a JWindow just above taskbar.
    How can I get the highest point of the taskbar? Is there a way like System.getProperty("os.taskbarHeight") ?
    In MS windows the taskbar has standard height but in KDE the taskbar has variable height (I am not sure about Gnome). Moreover the taskbar sometimes is hidden. How Do I get if it is hidden or not?
    Thank you in advance.

    You would use the "Screen Bounds" and "ScreenSize" info to calculate what you want:
    import java.awt.*;
    import javax.swing.*;
    public class FrameInfo
        public static void main(String[] args)
            String laf = "javax.swing.plaf.metal.MetalLookAndFeel";
    //        laf = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
    //        laf = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
            try { UIManager.setLookAndFeel( laf ); }
            catch (Exception e) { System.out.println(e); }
            GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
            Rectangle bounds = env.getMaximumWindowBounds();
            System.out.println("Screen Bounds: " + bounds );
            GraphicsDevice screen = env.getDefaultScreenDevice();
            GraphicsConfiguration config = screen.getDefaultConfiguration();
            System.out.println("Screen Size  : " + config.getBounds());
            JFrame frame = new JFrame("Frame Info");
            frame.setSize(200, 200);
            frame.setVisible( true );
            System.out.println("Frame Size   : " + frame.getSize() );
            System.out.println("Frame Insets : " + frame.getInsets() );
            System.out.println("Content Size : " + frame.getContentPane().getSize() );
    }

  • How to get the Minum Grade level from the view cluster table V_T710CL_B

    Hi Guys,
    I want to fetch the Minum Grade level from the view cluster table V_T710CL_B
    kindly help me
    Regards
    Rusidar.

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • How to get the highest CPU performance in Maverick

    I am currently doing many analyses in parallel using 10.9.2 on a 2013 MPB and came accross a problem that costs me a lot of time. I started another discussion yesterday, there it was not sure whether it is a software problem or operating system problem. Here I present my experience that makes me sure that it is an operating system related problem. Let me note also that otherwise I am very happy about 10.9's performance.
    I noticed that Maverick is controlling the priority of the processes running my analyses, these processes being slowed down it costs me considerable amount of time. I would like to know how to boost the CPU performance of my computer and finish these analyses as soon as possible.
    In a normal situation these process takes up about 90-100% of the CPU load, fans are turning full speed and this is good. I noticed the problem, when I log in as another user without logging out from the account where the analyses are running, leaving the processes on the background, and then coming back to the analysis account, I notice that the processes are slowed down. If I had 5 analysis procecesses, only 1 of them is working full speed. And the remaining 4 never come back to full speed as they were before I logged out.
    Maverick has complex complex mechanisms wrt power management and efficiency, and I am doubting that it changes the priority of these processes considering a normal user profile. However my aim is to get most of my computer
    My question is how could I boost the performance of this computer without letting the operating system slowing down processes that are not supposed to be slowed down....

    I completely agree with your explanations. And previously I used different versions of Unix operating systems.
    Here on maverick, I tried "renice", using first 0 and then -20 as the priority number, but it had no impact!
    The exact command I used is the follwoing
    sudo renice -20 -p 8149
    where 8149 is the process id. This had absolutely no effect at all...
    I also tried to slow down the single analysis process which is somehow running at full speed, this didn't work neither.
    What is puzlling me right now, I cannot get back my analysis processes to a higher priority even after coming back to the account where these analyses are running... Basically there is nothing else running behind... The other account is loged out... Before I switched accounts these processes were running at full speed and the fans were noisy. Right now, it is all silent and of course the only alternative I have is to restart the analyses from scratch again, hoping that Mavericks will give them full power next time.
    here is the info:
    Hardware Information:
              MacBook Pro (Retina, 15-inch, Late 2013)
              MacBook Pro - model: MacBookPro11,3
              1 2.3 GHz Intel Core i7 CPU: 4 cores
              16 GB RAM
    Video Information:
              Intel Iris Pro - VRAM: 1024 MB
              NVIDIA GeForce GT 750M - VRAM: 2048 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 22:53:14
    Disk Information:
              APPLE SSD SM0512F disk0 : (500.28 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 499.42 GB (245.67 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
              Western Digital My Passport 0748 2 TB
                        feargen2 (disk3s1) /Volumes/feargen2: 2 TB (1.16 TB free)
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Western Digital My Passport 0748 2 TB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        disk1s2 (disk1s2) <not mounted>: 2 TB
                        Boot OS X (disk1s3) <not mounted>: 134.2 MB
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
                        Apple Inc. Thunderbolt to Gigabit Ethernet Adapter
    Configuration files:
              /etc/hosts - Count: 61
    Kernel Extensions:
              com.nvidia.CUDA          (1.1.0)
    Startup Items:
              CUDA: Path: /System/Library/StartupItems/CUDA
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.google.keystone.daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] org.macosforge.xquartz.privileged_startx.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.google.keystone.agent.plist 3rd-Party support link
              [System] com.nvidia.CUDASoftwareUpdate.plist 3rd-Party support link
              [System] jp.co.canon.CUPSPS2.BG.plist 3rd-Party support link
              [System] org.macosforge.xquartz.startx.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              Degrees
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 12.0.0.44 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              Flash Player: Version: 12.0.0.44 - SDK 10.6 Outdated! Update
              Default Browser: Version: 537 - SDK 10.9
              o1dbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 3rd-Party support link
              googletalkbrowserplugin: Version: 5.2.4.18058 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
    Safari Extensions:
              feedly: Version: 16.0.521
              autocomplete: Version: 1.0
              clea.nr Videos: Version: 5.0
              Zotero Connector: Version: 4.0.8
              AdBlock: Version: 2.6.18
              Alexa Site Info: Version: 1.0
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes:
              CUDA Preferences  3rd-Party support link
              Flash Player  3rd-Party support link
    Old Applications:
              None
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: NO - Auto backup turned off
              Volumes being backed up:
                        Macintosh HD: Disk size: 465.12 GB Disk used: 236.32 GB
                        feargen2: Disk size: 2  Disk used: 783.46 GB
              Destinations:
                        My Passport [Local] (Last used)
                        Total size: 2 
                        Total number of backups: 18
                        Oldest backup: 2014-01-07 08:48:12 +0000
                        Last backup: 2014-03-31 14:16:50 +0000
                        Size of backup disk: Too small
                                  Backup size 2  < (Disk used 1019.78 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   5%          WindowServer
                   2%          mds
                   2%          Terminal
                   1%          Activity Monitor
                   0%          EtreCheck
    Top Processes by Memory:
              705 MB          MATLAB_maci64
              541 MB          Safari
              475 MB          WindowServer
              262 MB          mds_stores
              197 MB          Finder
    Virtual Memory Information:
              123 MB          Free RAM
              7.12 GB          Active RAM
              7.00 GB          Inactive RAM
              1.48 GB          Wired RAM
              117.39 GB          Page-ins
              52 MB          Page-outs

  • How to get the organization structures of a compnay code (BUKRS)?

    Hi Friends,
    I have a requirement to get the organization structures of a compnay code (BUKRS), such as Controlling area, Credit control area, Plant, Sales Organization, Purch. Organization, Personnel area.
    How can I get them, I only know the compnay code table is T001, but how to get the organization structures  of a compnay code (BUKRS) into a internal table?
    Thanks a lot!

    Hi,
    A lot of table will be involved for the same.
    The company code is the highest unit and all other things are assigned to it.
    Check the settings in SPRO as to how the maintainance is done.
    From here you will get the maintainance view details if you do F1 help on each field.
    From this view you can get the relevant tables.
    For eg.
    Go to SPRO>Controlling>Organization-->Maintain Controlling Area
    Here you will find the assignment of controlling area to the company code.
    The maintainance view is V_TKA02 and the tables involved are TKA02, TKA01, T001
    In this way you can find the relevant tables.
    Regards,
    Ankur Parab

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to get the table of value field? and can we expand the technical limits

    Dear
    I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
    And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
    We have a note for R.4.x Please see below:
    OSS note 160892
    You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
    The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
    To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
    David Sun
    Regards!

    how to extend the limit of value numbers? please see the original question.

  • I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    You can connect the iPad to your Mac's iTunes and do File > Devices > Transfer Purchases, that should copy it over to the Movies part of your library.
    Depending upon what country that you are in, and whether the film studio allows it, you might also be able to re-download it on your Mac via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page.

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • How to get the value from databank

    Hi,
    How to get the value from databank? and how to set the same value to visual script object?
    thanks,
    ra

    Hi,
    You can use GetDatabankValue(HeaderName, Value) to get the value from databank and SetDataBankValue(HeaderName, Value) to set the value to databank.
    You can refer to the API Reference to see list of associated functions and techniques we can use with related to Data Bank.
    This is the for OFT but if you are using Open Script then you have direct access for getting the databank value but when it comes to setting a value you have to use File operation and write you own methods to do the set operation.
    Thanks
    Edited by: Openscript User 100 on Nov 13, 2009 7:01 AM

  • How to get the value from the readonly field?????

    Hi All,
    I have a readonly field in JSF. in action class i want to get the value of that field.
    How to get the readonly field value???
    i am getting null if the field is readonly.
    i am getting value if the field is not readonly.

    I might have a problem similar to yours. Refer to the post I made entitled "Readonly and Disabled Fields Losing State Between Submits".

  • How to get the value from Advanced table

    Hi,
    In the Advanced table have 2 LOV fields, I need LOV field value dynamically in the controller to validate the save button, if iam not selected any value in lov save button will not allow to save the data. In the table i am using 'Add another row'. How to get the lov field value in the process form request??? and how to do this requirement
    Thanks
    Naresh

    1. You can specify required property on LOV field to "yes". For events where you wish to disable the client side validations, set the property disable client side validation to "true".
    2. If above behavior is not what you are looking for, then you need to handle in AM and not CO.
    a. Call an AM method from CO.
    b. In that AM method, get handle of VO.
    c. Iterate the VO Rows and check for your validation rules.
    -Prince
    http://www.princekapoor82.blogspot.com

  • How to get the values from html:select? tag..?

    i tried with this, but its not working...
    <html:select styleClass="text" name="querydefs" property="shortcut"
                 onchange="retrieveOptions()" styleId="firstBox" indexed="true">
    <html:options collection="advanced.choices" property="shortcut" labelProperty="label" />
    </html:select>
                        <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>

    <td align="left" class="rowcolor1">
                        <script language="javascript" type="text/javascript">
                              function retrieveOptions(){
                             var sel = document.querydefs.options;
                             var selectedOption = sel[sel.selectedIndex].value;
                             document.write(selectedOption);
                           </script>This java script is not working at all..its not printing anything in document.write();
    This is code..
    <td class="rowcolor1" width="20%">
    <html:select styleClass="text" name="querydefs" property="shortcut"
                             onchange="retrieveSecondOptions()" styleId="firstBox"
                             indexed="true">
                             <html:options collection="advanced.choices" property="shortcut"
                                  labelProperty="label"  />
                        </html:select>i tried with this also. but no use..i'm not the getting the seleced option...
    function retrieveOptions(){
    firstBox = document.getElementById('firstBox');
                             if(firstBox.selectedIndex==0){
          return;
        selectedOption = firstBox.options[firstBox.selectedIndex].value;
    }actually , how to get the values from <html:select> ...?
    my idea is to know which value is selected from the combo box(<html:select> ) if that value is equal some string i have enable a hyperlink to open a popup window

  • How to get the values from fileds

    Dear All,
    Good Afternoon,
    I want to set the 0 value to the fields at the time of page loading.
    For this,
    i tried the following ways
    pageContext.putParameter("fieldid",0);
    and
    OAMessageTextInputBean bean1=(OAMessageTextInputBean) webBean.findChildRecurssive("fieldid");
    bean1.setValue(pageContext,0)
    for getting the values i used
    String id=pageContext.getParameter("fieldid");
    but i returns null values only while it has 0 value.
    how can get the 0 value from that field

    Hi,
    In order to set values you should use:
    OAMessageTextInputBean bean1=(OAMessageTextInputBean) webBean.findChildRecurssive("fieldid");
    if(bean1!=null)
    bean1.setText("0");
    and in order to grab the values from the fields
    String id=(String)pageContext.getParameter("fieldid");
    Thanks,
    Gaurav

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

Maybe you are looking for