- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
At the most primitive level, computers can perform a set of actions, also known as instructions. A collection of these instructions when put together can solve a problem. This collection is called a program and assembling such a collection is known as programming. The vocabulary of instructions is called assembly …
1. There is a stray apostrphe at the end of line 43. 2. I changed public class Bank -> public class Main 3. I moved public class Main to the top starting from line 2 4. In the switch statement you try to instantiate a new instance of "Bank" instead …
In main, you have not added empl1 or empl2 to teir departments. i.e. you have not said dept1.setEmployee(emp1); and dept2.setEmployee(emp2); Thus their total salaries in each department == 0 which means they are equal even though you have individually increased emplkyees salaries by differnt amounts.
It depends on when the correct value for var3 is known and by whom (i.e. which function). If it is known only by func14, there's no point in changing the code. If it is known before the cascade of functions is called you might make it global. Since you have …
The End.