请求工资计划的帮助。 [英] Requesting help for payroll program.
本文介绍了请求工资计划的帮助。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试修改以下程序,以便它使用一个类来存储
并检索员工的姓名,每小时费率和
的数量。
小时工作。使用构造函数初始化员工信息,
以及该类中的方法来计算每周工资。似乎我读到的越多,我就越困惑。任何帮助都会有很大帮助。
这是我最新的代码...
I''m trying to modify the following program so that it uses a class to store
and retrieve the employee''s name, the hourly rate, and the number of
hours worked. Use a constructor to initialize the employee information,
and a method within that class to calculate the weekly pay. It seems that the more I read into this, the more confused I get. Any help will be greatly apreciated.
Here is my latest code...
展开 | 选择 | 换行 | 行号
推荐答案
看来问题是什么,EmployeeData类似乎做了你要求的所有事情....
我假设你需要帮助程序的主体,但是请你指出你遇到的问题....
What appears to be the problem, the EmployeeData class seems to do everything you have asked....
I assume you need help with the main body of the program, but could you please specify what is the problem you are having....
我想我们可能在同一个班级...我想要计算这些东西也是......我会尽力帮助你他们......
I think we might be in the same class... I am trying to figure these things out too... I will try to help you as I get them...
要存储雇主的数据,你需要一个ArrayList而不是一个字符串。
To store the Employers''s data, you neen an ArrayList not a String.
展开 | 选择 | Wrap | 行号
这篇关于请求工资计划的帮助。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文