我想不出如何让年薪在代码的末尾打印出来。package AverageSalary;
//private variables for Employee Name and Monthly Salary. private double monthlySalary;
// Constructor that initializes name a
如果输入负数,则需要设置加班时数为0,如果加班时数大于20,则设置为20。overtime = TextWindow.ReadNumber()TextWindow.WriteLine("Invalid hours. Hours must be between 0 and 20")我相信我做错了,但我不知道如何修复它。