• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

neep help

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question"
determine the gross pay for each of three employee. the company pays "stright-time" for the first 40 hrs worked by each employee and pays "time-and-a-half" for all hours worked in excess of 40
hours.
employee Hours Hourly
Joe 39 12
Jane 40 35
Paula 45 45
should pass in one set of hours worked and the hourly rate, as command line parameters, then calculate the gross pay...
example
java Project1. 40 10
will produce the output: 400
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a class assignment to me ...
This should do it assuming integral data as inputs

Enjoy,
Manfred.
 
Neema Doma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, I work as ASP programmer and I had some small problem related with JAVA, it is not homework or assignment...
thanks a lot for your help
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see that your using the Dietel brothers' book.
reply
    Bookmark Topic Watch Topic
  • New Topic