interface Interface1 { public int method1(); public int method2(); } public class Salary implements Interface1 { public static void main(String args[]) { int sa[]=Integer.parseInt(arg[0]); float pf,hra,da,tax,net; public int method1() { System.out.println("salary="+sa); try{ if(sa>250000) { pf=sa*5/100; hra=sa*10/100; da=sa*8/100; tax=sa*10/100; net=sa+tax; System.out.println("Net salary of an employee"+net); } } catch(Exception e) { System.out.println("I/O error"); } } public int method2() { System.out.println("salary="+sa); if(sa>500000) { pf=sa*5/100; hra=sa*10/100; da=sa*8/100; tax=sa*20/100; net=sa+tax; System.out.println("Net salary of an employee"+net); } else { System.out.println("No deduction"); } } Salary s=new Salary(); s.method1(); s.method2(); } } **I'm getting 4 errors in this program....and they are** line no.12 : illegal start of expression …

Member Avatar
Member Avatar
+0 forum 7

In case my recent post about the [URL="http://www.daniweb.com/blogs/entry3011.html"]stress levels of IT workers[/URL] made you want to start looking for a new job, the least I can do is offer you some tips. Here are three things you need to do right now: [B]Get a sense of the market[/B] - Make sure you have your finger on the pulse of the IT industry, especially if you haven't been job-hunting in many years. You'd be surprised at how much things have changed. CIO.com took a look recently at [URL="http://www.cio.com/article/444626/_Secure_IT_Jobs_"]16 jobs in IT[/URL] that aren't going away anytime soon. From information security experts …

Member Avatar
Member Avatar
+0 forum 2

I am mainly into system dev, writing kernels and kinda just building everything from the ground up... But I also like game dev and is interisted in the whole concept. So I am going to make this easy, seing as a lot of things can change the output. A programmer having 5+ years experience in C++ programming, in the system and also game department... more or less what will they make? Yes I know that companies will have differing salaries but just more or less. And then the other thing... Can I do both and be successfull in both?

Member Avatar
Member Avatar
+0 forum 2

IM BEGGING YOU TO PLEASE HELP ME,IM NOT REALLY FAMILIAR IN PROGRAMMING BUT I NEED TO DO THIS BECAUSE IT'S OUR DEFENSE NEXT WEEK AND I NEED TO CREATE A PROGRAM IN DEVC++ THAT WILL GET THE EMPLOYEE SALARY AND DATA,I KNOW SOME OFYOU GUYS CAN HELP ME CREATE A WONDERFUL PROGRAM, SOMELIKE WITH THE LOG IN DATA AND SOME GOTO,I REALLY DONT KNOW WHAT TO DO SO IM BEGGING YOU TO HELP ME,PLEASE T_T SORRY FOR BAD ENGLISH,.

Member Avatar
Member Avatar
-3 forum 10

We are atsked to create a net salary calculator or something that computes the net salary. I used three radio button in which if it is selected, it has corresponding solution for each selection. The three radio button are probationary, regular and permanent.......here is the code Private Sub Command1_Click() Dim a As Long If Option1.value = true Then textbox2.text = val(((a*1)*12)+40000-((a*1)*12)) ElseIf Option2.value = true Then textbox2.text = val(((a*1.15)*12)+40000-((a*1.15)*12)) ElseIf Option3.value = true Then textbox2.text = val(((a*1.25)*12)+40000-((a*1.25)*12)) textbox1 = a End If End Sub I will attach the picture of how it should look like....... now the question is I …

Member Avatar
Member Avatar
+0 forum 6

Hi, I have seen in couple of places the code where ToString() method has been overriden. Like : class Employee : IComparable<Employee> { public int Salary { get; set; } public string Name { get; set; } public int CompareTo(Employee other) { if (this.Salary == other.Salary) { return this.Name.CompareTo(other.Name); } return other.Salary.CompareTo(this.Salary); } public override string ToString() { // String representation. return this.Salary.ToString() + "," + this.Name; } } What is the need of overriding. I have seen if we dont override we do not get the value instead we get the object only. Why so ? Plz reply if …

Member Avatar
Member Avatar
+0 forum 8

It's here! No, not winter, the 2006 Certification Magazine results are in. Last year I wrote a [URL="http://www.daniweb.com/blogs/entry461.html"]similar article[/URL] regarding these results, and the top spots were all 'System Administration' certifications. This year it is quite a bit different, the sought after CCIE has actually fallen from the top 5, to number 6 on the list of 'Top Certifications'. One of the things that Certification Magazine chose to make prominent this year, is the number of people who did not receive any certifications during the last year. While over 80% of people who participated in this survey, stated they would …

Member Avatar
Member Avatar
+0 forum 1

The End.