السلام عليكم
يا ليت نتساعد في حل الاسايمنت الاول لأنني جديد تماما على المادة ولاسى توي أتعلمها
السؤال الاول :
Consider the BankAccount class, implement a new method called
halfBalance() that divides the current balance by half.
For example, in a BankAccount object with balance 100 SAR after the method call the balance becomes 50 SAR.
الثاني :
Using IDEs hide the details of the compilation process of Java programs. What are the commands that you have to carry out in order to turn a Java source code file into a running program?
الثالث :
In the 2 dimensional plane, a point is described by its two coordinates x
and y. It has the following operations:
A constructor allowing initialization of both coordinates
2- Accessors and Mutators methods to its coordinates
3-Translation of a point
Write a java class, called Point that corresponds to the definition of a point in the 2D plane.
الرابع :
Write pseudocode to calculate the income tax payable on any salary based on the tax scales shown below. The taxable salary is to be entered and the tax payable calculated.
Salary Tax
1-7000 SAR No Tax
7000 – 10000 SAR 100 SAR + 20% of salary
10000 SAR and over 200 SAR + 25% of salary