• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help with Function Operate

 
Mimi Sini
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can someone help me out with the ex. below. I don't know where to even begin. Any help would be appreciated. Thanks.


Complete the function �operate� such that when the user enters decimal numbers in the first two textboxes, checks one of the radio buttons, and clicks on - button it accomplishes the following:
If the + radio button is checked displays the addition of the two numbers in the third textbox.
If the - radio button is checked displays the subtraction of the two numbers in the third textbox.
If the * radio button is checked displays the product of the two numbers in the third textbox.
If the / radio button is checked displays the division of the two numbers in the third textbox.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mimi Sini:
Can someone help me out with the ex. below.

What is an "ex."? Please use real words when posting to the forums. Abbreviations such as "ex." in place of whatever it's supposed to mean only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a homework assignment?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Is this a homework assignment?


Yes, just like Mimi's other posts.

Eric
 
Mimi Sini
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is a hw (homework) assignment and is it really that hard to figure out what ex. stands for?
Bear, the few posts that I've previously posted and yes Eric - all hw (homework) assignments - asking for help, you have responded back with a very unhelpful bad attitude. Do not assume that everyone should be as great at java as you are. I originally signed up to this forum for help and yes, some people have been really helpful. Now can you provide me with a link on how to cancel my account on here?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The guidelines are there to help you get the most out of the forums, as well as to help others benefit from the postings. Using arcane abbreviations that will confound people and automated language translators is discouraged for these purposes.

With regards to homework, please read this for more information.

You will gladly get help with your homework and other problems. But you've got to do more than simply state the problem and expect others to do your work for you.
 
Mimi Sini
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have never expected for my homework to be done for me, I have only asked for help. Thank you for your time.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm glad to give it. Here's some help with getting help:

Look at your first post. You list the problem statement and some code.

What you don't do is to tell us what part of the code isn't working, or what you expect it to do, or what it's doing that you don't expect, or what part has you flummoxed, or what concepts you need some help on.

Rather, as posted, the post comes across as "please finish this for me". And JavaRanch is not a "finish this for me" kind of place.

Do you see the issue?

People here, Eric and myself included, are more than glad to help you learn what you need in order to get your stuff done. But you need to put in some effort yourself. And that includes posting good, well-formed questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic