c# 写一个程序来计算雇员一周的工资,它根据每小时的薪水和工作的小时数来计算.类wages
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/10/03 19:22:12
c# 写一个程序来计算雇员一周的工资,它根据每小时的薪水和工作的小时数来计算.类wages
public class wages
{
int money;
int hour;
public wages()
{
money=0;
hour=0;
}
public int weekmoney() {
return money*hour*5 //计算周薪
}
public int money
{
get {return money;}
set {money=value;}
}
public int hour
{
get {return hour}
set {hour=value;}
}
}
主程序调用
wages tom=new wages();
tom.money=30;
tom.hour=8;
writeline(tom.weekmoney().tostring());
{
int money;
int hour;
public wages()
{
money=0;
hour=0;
}
public int weekmoney() {
return money*hour*5 //计算周薪
}
public int money
{
get {return money;}
set {money=value;}
}
public int hour
{
get {return hour}
set {hour=value;}
}
}
主程序调用
wages tom=new wages();
tom.money=30;
tom.hour=8;
writeline(tom.weekmoney().tostring());
c# 写一个程序来计算雇员一周的工资,它根据每小时的薪水和工作的小时数来计算.类wages
编写一个程序 提示用户从键盘输入一个星期的薪水和工作时数,它们均为浮点数,然后计算并输出每个小时的平均薪水.输出格式如下
C语言.编写程序,根据用户输入的x和y值来计算xy的值.要求编写power(x,y)函数,来实
C语言如何利用子函数来编写一个程序、目的是计算球体的体积、、
如何计算他们每小时的工资
任意输入十个数,计算所有正数的和,负数的和以及十个数的和,怎么写这个程序?用循环语句来解答 不用数组
任意输入十个数,计算所有正数的和,负数的和以及十个数的和,怎么写这个程序?用循环语句来解答
(1)速算扣除数怎么算来的,按2012年工资 个人所得税计算.
用C语言写一段,可以计算任意两个输入数的和的程序
我更希望你能根据我的背景、工作经验和工作的积极性,来决定应付给我的薪水.
如何根据过热蒸汽的熵值和压力来计算它的焓值?
最低小时工资按照每小时11.5元是怎么计算的