Question
WITH PICTURES PLEASE Q1- In the 2 dimensional plane, a point is described by its two coordinates x and y. It has the following operations:
WITH PICTURES PLEASE
Q1- 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.
Q2- 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 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started