Answered step by step
Verified Expert Solution
Question
1 Approved Answer
***please help! READ the grading criteria *** Java language......java.file output HW5: Weekly Timesheet CSS 161 Fundamentals of Computing By: Hansel Ong Summary In HW3, you
***please help! READ the grading criteria***
Java language......java.file output
HW5: Weekly Timesheet CSS 161 Fundamentals of Computing By: Hansel Ong Summary In HW3, you created a program that allows the user to enter time worked on a week-by-week basis Such a system calculated any hours worked over 40 hours a week as overtime. However, this means that an employee could work 12 or 20 hours once a week, 4 hours the rest of the week, and not be paid overtime at all. Let's fix this problem in this homework. For simplification, let's limit the number of weeks the user can enter to two weeks maximum. Note also that any hours worked in a day beyond 8 hours should be regarded as overtime hours. Estimated Work Needed This assignment took me about 30-45 minutes to write (not including challenges, but including testing, commenting, and cleanup) in less than 200 lines of code In other words, you should expect to spend between 135 to 450 minutes working on this assignment. If you've spent more than 7.5 hours working on this assignment, then you are likely struggling with loops and/or arrays and should re-read the lecture slides and attempt the exercises within seek help from your fellow classmates, myself, your lab instructor, QSC tutor as well as online resources. Skills Expected All the skills from previous Assignment(s) Arrays File I/O Assignment Description Write a program that does the following Provide the following "main menu" to the user (Create a method for each of the choices): o (1 point) Enter/Edit Timesheet o (1 point) Display Timesheet o (1 point) Print Paystub (End Program) o (1 point) Keep presenting this menu to the user until user asks to print a paystub For "Enter/Edit Timesheet" o (1 point) Ask the user which week the user would like to edit (1 or 2) (1 point) Return to "main menu" if user chooses anything other than 1 or 2 o (2 points) Display each day of the week (M, Tu, W and the number of hours worked for each day (display 0 by default until user has entered a value) (2 point) Allow the user to edit hours for specific days of the week (1 point) Return to "main menu" if user enters an invalid day of the week or invalid hours of the day
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started