Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beginning Java program help

 
ceaser tefutor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49755
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10494
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rajdeep Biswas
Ranch Hand
Posts: 221
1
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic