永发信息网

关于C#的!

答案:1  悬赏:10  手机版
解决时间 2021-05-11 00:24

    1. In Visual Studio 2008 Create a new C# Windows Console Application named Lab06.
    2. Add a new Class to your project named Payroll with the attributes and methods modeled in your UML.
    3. From Main() prompt the user for the four values required for a Payroll object and take their input from the keyboard.
    4. Instantiate that object using the two parameter constructor and setting the values of hoursWorked and payRate using your setters.
    5. Report the gross pay of the employee.
    6. Overload your getGrossPay() method with a getGrossPay() with one parameter which is a hardship pay boolean. If that parameter is TRUE, multiply the calculated grossPay value you return by 1.25 (make it 25% more). If the parameter is FALSE, don’t apply any increase – just return the calculated grossPay.
    7. Add that getGrossPay(bool) to your UML.
    8. Develop a second Payroll object in Main() and use your getGrossPay(bool) method to calculate this employees gross pay (you’ll need to prompt the user again for name, employeeID, hoursWorked and payRate.)

First – clean up that program adding static methods to program.cs to make it simpler and more modular.

    1. Make it continue to prompt for employees until the user indicates he has no more. You could save the employees in an ArrayList.
    2. After the user indicates he has finished, report the number of employees and the total payroll.
    3. Now can you take that ArrayList of employees and prompt the user for hoursWorked for a second week. You won’t need to change employeeName, employeeID or payRate.
最佳答案

大哥,你这是干嘛呀,搞这么多英文

我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
爸爸快生日啦,送什么礼物呢?
背景音乐添加进去了,但是播放器不播,怎么回
谁邀请我加入一下班级 我想玩QQ餐厅 校友的噢
丝路英雄怎么打比自己声望低5倍的
拳皇八神~鬼步怎么操作
七小罗汉在线观看 56 土豆 优酷 电影七小罗汉
谁知道血小板减少症的食疗方法吗?
怎样删除所提交过的问问
天下共有几个则所
小芳家进行装修,她在材料市场选中了一种漂亮
口袋妖怪心金魂银 死机问题?
CPU解析程序代码,是进程分析还是进程串析。
请问湛江幼师师范学校好吗?
寻韩文歌曲网站,纯韩文的那种
MP4的帧数一般为多少?比特率为多少?分辨率
推荐资讯
找回已删好友
1、如图所示,AB为斜面,BC为水平面,从A点以水
股神请进!
盯着电脑发呆.很无聊又舍不得睡觉.是在想你吗
为什么我在网上看所有视屏都没声音,要调一下
改为双重否定句 犯了错误就不敢向老师、同学
谁有《抱朴子》完整的
怎样看DNF最高号在哪区
人眼可以观察到溶解平衡吗?
现在已经22了,再去读成人高考,会不会太晚了
日子会越来越好的句子,形容生活美好古诗词
如何进行余额查询
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?