Skip to content
Maennche Logo
  • Home
  • Expertise
    • AI Services
    • Marketing
    • Software Development
  • Blog
  • Solution Maps
    • C++ Solution Map
    • Java Solution Map
    • Python Solution Map
    • Visual Basic Solution Map
  • FAQ
  • Contact
  • Log In

Posts Tagged ‘21020’

Assume the input data is structured as follows: first there is a non-negative integer specifying the number of employee timesheets to be read in. This is followed by data for each of the employees. The first number for each employee is an integer that specifies their pay per hour in cents. Following this are 5 integers, the number of hours they worked on each of the days of the workweek. Given this data, and given that an int variable total has been declared, write a loop and any necessary code that reads the data and stores the total payroll of all employees in total. Note that you will have to add up the numbers worked by each employee and multiply that by that particular employee’s pay rate to get the employee’s pay for the week– and sum those values into total. ASSUME the availability of a variable, stdin, that references a Scanner object associated with standard input.

By Matthew Maennche | June 1, 2014 | 0
Java

LANGUAGE: JAVA CHALLENGE: Assume the input data is structured as follows: first there is a non-negative integer specifying the number of employee timesheets to be read in. This is followed by data for each of the employees. The first number for each employee is an integer that specifies their pay per hour in cents. Following this…

Read More

Search

Categories

  • Business
  • Small Business Marketing
  • Classic ASP
  • Content Management
  • CRM’s
  • FPDF
  • HTML
  • Javascript
  • PHP
  • BuddyPress
  • WordPress
  • SQL

Members

  • Account
  • Terms of Use
  • Privacy Policy

Additional Resources

Account

Frequently Asked Questions

Privacy Policy

Terms and Conditions

Matthew Maennche logo icon

Get In Touch!

1216 E. Kenosha St Suite 273, Broken Arrow, OK 74012

(918) 352-6109

© 2017 - 2025 Maennche Software Development. All Rights Reserved.

Scroll To Top