Results 1 to 5 of 5
  1. #1
    engr.rammus is offline Member
    Join Date
    Sep 2014
    Posts
    3
    Rep Power
    0

    Exclamation Help Me Guys my Idols..

    How can i write a java program that simulate a simple calculator that performs the basic arithmetic operations of JAVA. (JOption Pane and Repeat control structure)
    Example : Addition, Subtraction, Multiplication, Division.
    The program will prompt to input two floating point numbers and a character that represents the operations presented above. In the event that the operator input is valid, prompt the user to input the operator again.
    Sample Output :

    First number 7
    Second number 4
    Menu
    <+> Addition
    <-> Subtraction
    <*> Mutiplication
    </> Division

    Enter Choice: * <enter>
    The answer is 28.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Help Me Guys my Idols..

    How can i write a java program that
    The steps would be:
    create a design for the program with all the steps it needs to do
    work through the steps one at a time:
    write the code for a step with an editor
    compile
    test
    fix bugs
    repeat
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Help Me Guys my Idols..

    How? Well you would learn the appropriate amount of Java (language and standard API) and apply that knowledge. Its the same for all other aspects of life. First you learn, then you do.

    So what do you know already? What -specifically- are you stuck on? You can't come here, post your homework description and then ask "how do I build this application", you have to do effort yourself first. Do you at least know how to create, compile and run a Hello World application in Java?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    engr.rammus is offline Member
    Join Date
    Sep 2014
    Posts
    3
    Rep Power
    0

    Default Re: Help Me Guys my Idols..

    Quote Originally Posted by gimbal2 View Post
    How? Well you would learn the appropriate amount of Java (language and standard API) and apply that knowledge. Its the same for all other aspects of life. First you learn, then you do.

    So what do you know already? What -specifically- are you stuck on? You can't come here, post your homework description and then ask "how do I build this application", you have to do effort yourself first. Do you at least know how to create, compile and run a Hello World application in Java?
    yeah i just cant understand java so well unlike c++..

  5. #5
    engr.rammus is offline Member
    Join Date
    Sep 2014
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Help guys
    By Taher in forum New To Java
    Replies: 3
    Last Post: 08-03-2010, 03:44 PM
  2. Hi guys,
    By dhana.munjeti@gmail.com in forum New To Java
    Replies: 2
    Last Post: 05-20-2010, 10:47 AM
  3. hi guys i am new here help me
    By funkygarzon in forum New To Java
    Replies: 5
    Last Post: 04-26-2010, 10:05 PM
  4. Hi guys
    By malique in forum Introductions
    Replies: 2
    Last Post: 03-02-2010, 01:51 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •