The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
HelloÂ
I have an assignment in IT 401 in Java language so please I need your help to solve it but please I would like you to give me all details to know how the answers come .Â
Â
Â
Â
College of Computing and Informatics IT401
Business Computer Languages Assignment #1
Deadline: Day 09/03/2017 @ 23:59
[Total Mark for this Assignment is 6 points]
Student Details:
Name: ### ID: ### CRN: ###
Instructions:
This Assignment must be submitted on Blackboard via the allocated folder.
Email submission will not be accepted.
You are advised to make your work clear and well-presented, marks may be reduced for poor
presentation.
You MUST show all your work.
Late submission will result in ZERO marks being awarded.
Identical copy from students or other resources will result in ZERO marks for all involved
students.
Convert this Assignment to PDF just before submission. Question FiveQuestion Five Pg. 1
Learning
Outcome(s):
Ch. (2). Question One 0.75 Marks Find and fix the errors in the following code segments: Learn about
variables 1.1 (0.25 marks)
System.out.println(Hello, World!); Understand the
concepts of
classes and 1.2 (0.25 marks)
double average ;
average=66Z;
System.out.println(average*2*2); 1.3 (0.25 marks)
BankAccount x = new BankAccount; Pg. 2
Learning
Outcome(s):
Ch. (3)
Implement
simple methods Question FiveQuestion Five Question Two
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. 1.25 Marks Pg. 3
Learning
Outcome(s):
Ch. (1)
Compile and run
your first Java
program Question FiveQuestion Five Question Three
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? 1 Marks Pg. 4
Learning
Outcome(s):
Ch. (3)
Become familiar
with the process
of implementing
classes Question FiveQuestion Five Question Four
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. 1.5 Marks Question FiveQuestion Five Pg. 5
Learning
Outcome(s):
Ch.(1)
Write Question Five
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. pseudocode for
simple Salary algorithms Tax 1-7000 SAR No Tax 7000 – 10000 SAR 100 SAR + 20% of salary 10000 SAR and over 200 SAR + 25% of salary 1.5 Marks