aspose file tools*
The moose likes Beginning Java and the fly likes Beginning Java program help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Beginning Java program help" Watch "Beginning Java program help" New topic
Author

Beginning Java program help

ceaser tefutor
Greenhorn

Joined: Jan 05, 2013
Posts: 2
Help me with these:
Write a java program to assign values to hours and salary based on the following
if hours1-3 comission would be 20% of salary.
If 4-6 hours comission would be 30% of salary
IF 7-9 hours comission would be 50% of salary
if 10 above hours commission would be 55% of salary
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39396
    
  28
Welcome to the Ranch

We do not simply hand out such answers. Please tell us what you have done so far.
Marjorie Gyles
Ranch Hand

Joined: Nov 03, 2012
Posts: 42

As one beginner to another, you already have most of what you are looking for when you typed up your message. Just put it into code now. Just add >= instead of a range of numbers. Good luck.
ceaser tefutor
Greenhorn

Joined: Jan 05, 2013
Posts: 2
Please i am new to java programing. My lecturere gave me this as an assignment please help me with this program.
Write a java program to assign values to hours and salary based on the following
if hours <=3 comission would be 20% of salary.
If hours <=6 comission would be 30% of salary
IF hours <=9 comission would be 50% of salary
if hours >=10 commission would be 55% of salary
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8008
    
  22

ceaser tefutor wrote:Please i am new to java programing. My lecturere gave me this as an assignment please help me with this program.
Write a java program to assign values to hours and salary based on the following...

Simply repeating the question does not alter the situation.

This site is NotACodeMill (←click) - which is to say that we do NOT simply hand out answers - and anyone who does so is liable to find their post removed.

If you would care to explain in detail where you are having problems, I'm sure people will be happy to help you; but you need to ShowSomeEffort (←click) first. We will not do the work for you.

My suggestion: Read the HowToAskQuestionsOnJavaRanch page, and then come back with a new question.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Rajdeep Biswas
Ranch Hand

Joined: Mar 26, 2012
Posts: 186

Welcome ceaser tefutor. Tell us what you have done so far so that we can push you where you are stuck! The pseudocode has already been written by you, just you need to put in some syntactical constructs and expresssions and you have the code.


The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginning Java program help