Please help me find out my code..I am using msg ACCept and Reject

Please anyone help me...
I am using MSG ACCEPT and REJECT...
but my code when I execute it...it keep show out MSG REJECT...
Please help me...Thanks a lot....
public class Addmission
public static void main(String[] args) throws Exception
char Message;
double GPA = 3.0;
int ATS = 60;
int ATScore = 80;
System.out.println("Enter your Grade Point Average");
GPA = (char)System.in.read();
System.out.println("Enter your Addmission Test Score");
ATS =(char)System.in.read();
System.in.read(); System.in.read();
     if(GPA >= 3.0 && ATS == 60)
System.out.println("Accept");
if(GPA <= 3.0 && ATScore == 80)
System.out.println("Accept");
else
System.out.println("Reject");

I need to do like... but my code doens't show msg "Accept" it keep going to show "REJECT"
Could anyone help me out?
Print the msg "Accept" if the student has any of the following:
* A grade point average of 3.0 or above and admission test score of at least 60
* A grade point average of below 3.0 and an admission test score of at least 80.If the student doesn't meet either of the qualification criteria, print "Reject"
public class Addmission
public static void main(String[] args) throws Exception
char Message;
double GPA = 3.0;
int ATS = 60;
int ATScore = 80;
System.out.println("Enter your Grade Point Average");
GPA = (char)System.in.read();
System.out.println("Enter your Addmission Test Score");
ATS =(char)System.in.read();
System.in.read(); System.in.read();
if(GPA >= 3.0 && ATS == 60)
System.out.println("Accept");
if(GPA <= 3.0 && ATScore == 80)
System.out.println("Accept");
else
System.out.println("Reject");

Similar Messages

  • HT1933 I make a purhase on March 6 at 11:33 Order number MHOXX3TK9J for $1.99 and my credit card was charged $20.00 can you please help me find out why this happened

    I made a purchase on itunes on March 6 at 11:33 order umber MHOXX3TK9J for 1.99 and my credit card was charged $20.00 please help me find out why this happened.

    Contact iTunes support at the link below.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • Please help to find out asmlib kernel driver ?

    Hello everyone, please help to find out correct asmlib kernel driver ?
    rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el5.x86_64
    My kernel version is:
    uname -a
    Linux 2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Thank you.

    user12144220 wrote:
    Hello everyone, please help to find out correct asmlib kernel driver ?
    rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
    error: Failed dependencies:
    oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.4-1.el5.x86_64
    My kernel version is:
    uname -a
    Linux 2.6.18-238.el5xen #1 SMP Tue Jan 4 16:15:36 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Thank you.uname -rm
    you can find the exact oracleasmlib for your version
    eg:- my system Intel IA64 Architecture
    Library and Tools
    * oracleasm-support-2.1.7-1.el5.ia64.rpm
    * oracleasmlib-2.0.4-1.el5.ia64.rpm
    and then search(control +F) for  2.6.18-238.el5
    refer this link:-http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

  • How to find out what are the interfaces used for Job and Job Codes

    HI All,
    I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
    Thanks In Advance
    Sunny

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • Hi, please help me. Bought lightroom license but was using the free and the mode of revelation is still blocked, already desistalei and installed again on my PC but the revelation mode remains disabled. What should I do? Tks

    Hi, please help me. Bought lightroom license but was using the free and the mode of revelation is still blocked, already desistalei and installed again on my PC but the revelation mode remains disabled. What should I do? Tks

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • Can you please help me figure out what filter(s) to use to recreate this picture?

    Hi Everyone!
    I'm a student and not an expert in Photoshop. I'm trying to work over in After Effects using a Photoshop edited picture I was given (not separated in layers). However in order to give the image more movement I would like to recreate the picture, but have failed in figuring out which filters to use. Can you please help a student out? I would greatly appreciate it.!! (The first picture is the original, and the second one is the one I am trying to recreate) Thanks !

    Thanks for sharing that piece of information.  I was only aware of creating posterized effects in Illustrator, though the
    re is a posterize filter in Photoshop too.  I'm learning as I post so bear with me.  I find that providing a helping hand can't hurt unless you're way off base.  In this case I guess I should have provided my suggestion as an alternative rather than stating that it could only be best done in AI.
    -markerline

  • Need help to find out the navigational attribute where used list ?

    HI all ,
    i have a 0BATCH_0PLANT  navigational attribute ,  i want to find out  , where it has been used in the all the queries  .
    Thanks ,

    Nav-attribute will also be see as a attribute in the system search for it and click on where used list of it.
    Search for the Info object 0BATCH_0PLANT. double click on it -- click on the where used list of the nav-attribute.
    It will display all the dependent objects where its used.
    With this you can get the IC,DSO,MP names where this object is used. next with the help of those MP,IC and DSO you can get the list of queries.

  • My restrictions are on and I didn't turn them on.  The code is not the one I use to unlock my ipad.  How can I find out the code to turn off my restrictions and why did it turn on?

    My restrictions are turned on. I didn't turn them on.  The only code I've used on my ipad is to unlock it and that code won't work on my restrictions.  How do I turn off restrictions and prevent them being turned on again?

    The only option is to wipe the device clean and restore it to factory settings.  Hope you have a backup.
    Follow the instructions in  iOS: How to back up your data and set up your device as a new device http://support.apple.com/kb/HT4137 to restore the device to factory settings.
    Once you have setup the device as a new one, you can then sync it back with your iTunes account and all your music, apps, contacts and any other content sync'ed with iTunes will be loaded on the device. Any content that is stored only on the device and not sync'ed with iTunes, like app logins or data, will be lost during this process. Be forewarned that this is a long process and can take a couple of hours or more to complete. This can be painful, but it is necessarily so to prevent users from working around the security settings. After the restore is complete, you can setup a new Restrictions passcode. Make a note of the passcode to avoid this situation in future.
     Cheers, Tom

  • How to find out the web/app server used by OBIEE and OBIEE HomePath (Urgent

    Hi All ,
    I have two questions
    1) I wanted to know the OBIEE home path if it is installed on the some other machine (Client's Machine).
    I wanted to update the .css files present on the machine, but before updating the file i should know the home path, to reach the desired .css file and update accordingly. I dont know where they have installed OBIEE.By default OBIEE home is (c:\) but if the user has selected some other drive then, how we can find the OBIEE Home path?
    I have the access to the machine.
    2) The path of the CSS files depends on the web server used by OBIEE.
    When IIS web server is used, the CSS files in OracleBI_HOME\web\app\res directory
    when OC4J is used, the CSS files in OracleBI_HOME\oc4j_bi\j2ee\home\applications\analytics\analytics\res
    so inorder to update i must know which server is being used.
    Is there any way to find out which web application server is installed on the clients machine?
    Thanks in advance.!!!!!

    Please see responses to your first posting here: OBI EE Home Path

  • I can't remember my secret questions answer and I am so confused I tried all the ways but it's not Woking can anyone please help to find out how

    I really appreciate your help, it's really urgent need?

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'. Please be patient waiting for the return
              phone call. It will come in time depending on how heavily the servers are being hit.
         2.  Call Apple Support in your country: Customer Service: Contacting Apple for support or
              Apple ID- Contacting Apple for help with Apple ID account security. Ask to speak to
              Account Security.
         3.  Rescue email address and how to reset Apple ID security questions.
    How to Manage your Apple ID: Manage My Apple ID

  • TS2446 please help to find out this issue sorted out ..

    i did all this changes .. and i followed all the istructions , but i still have the same problem when i click to buy any new item from itune store .. etc
    i got a message " your apple ID has been disabled , please contact iTune support .
    hope to hear from you to sort out this issue as soon as possible .  thanks

    These are user-to-user forums, you can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Please Help to find out my Stolen Iphone

    Hi i Lost my Iphone 1 day ago before I installed Find my Iphone now I`m trying to find my Iphone by Find my Iphone it aways "off"
    Here`s my Serial number: 67******A4S please tell me what to do? please reply ASAP.
    <Edited By Host>

    You should not post your serial number and I've asked the Hosts to remove it.
    You can't locate your phone if you did not enable the 'Find My Phone' app. In addition the phone would have to be on, not wiped, and able to connect to a network. The serial number will not enable you to locate your phone.

  • PLEASE HELP CANT FIND OUT!!!!!!!!!!!!!(ipod video)

    can i put stuff on my ipod from a different computer. Like i have one pc where i put all my music on. But i want to put dvds that i own on it to. So my other pc has a dvd drive. is there some way i can make this work?

    See if this helps;
    http://docs.info.apple.com/article.html?artnum=61675
    Cheers!
    -Bryan

  • Can someone please help me find out my security question answers ?

    I can not remember the answers to my security questions and I go to send the answers to my email and it does not work

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (93436)

  • Please help to find out whether a file was changed

    Dear all,
    I have a directory with different files, each file can be changed, how can I trigger the changes in a file and promt the user to update the document.
    Something like out sync.
    I think it could be a thred, which check the size of the file each five seconds for example. But I have seen programms, which did it immediately, as the used a hook or something like that, without any delay.
    What is the common approach in java for this case?
    Thanks in advance.

    If I will use this method, should I put it in thread?
    Or there is a better method to check for changes?Using multithreading or not has nothing to do with "checking whether a file has been modified." You need to break down your problem into small, independent pieces.
    * You want to know if a file has been modified. We briefly discussed that.
    * You want to perform some task every five seconds. This has NOTHING to do with the above. You perform a periodic task using java.util.Timer and TimerTask.
    Since those two things are completely independent of each other, get each one working on its own, without regard for the other. THEN, and only then, combine them into "check for file modification every 5 seconds."

Maybe you are looking for

  • Transport of SQ query with T-code

    I design one SQ01 query which uses infoset. how to assign T-code through SE93, which option to choose? can I choose program and screen (dialog), if it is working in dev, can it work well in production after transport, which should be paid attention

  • Specified module can not be found ... CS4

    I have been using the CS4 trial for just over 2 wks now and all of a sudden I am getting this error. The specified module could not be found. C:\Program Files\Common File\Adobe\Adobe Version Cue CS4\Client\4.0.1\Version Cue.DLL When I open a picture

  • Podcasts deleted

    I have the new iTunes 12. I have no idea why, but a lot of my podcasts just got deleted when I plugged the iPod into the computer. I use Windows and I have Unplayed/My Episodes and Saved showing on the bottom? Can anyone please help me restore them?

  • Problem with PM8PM-IL and the CPU fan

    Hello everybody i am spanish my apologies for my english xD I have a motherboard MSI PM8PM-IL (MS-7222), official intel fan with four connectors,the fan support PWM but the motherboard doesnt control the rpm of the fan and I have 3668 rpm 53 °C  (127

  • How do I switch from iPhone 5c to bluetooth earphone

    I have paired my Motorola Bluetooth earphone to my new iPhone 5c. How do I switch from phone to bluetooth during a phone call ?