see attach
College of Computing and Informatics
Project
Deadline: Day 04/12/2023 @ 23:59
[Total Mark is 14]
Student Details:
CRN:
Name:
ID:
Instructions:
• You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
• It is your responsibility to check and make sure that you have uploaded both the correct files.
• Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
or any kind of manipulation).
• Email submission will not be accepted.
• You are advised to make your work clear and well-presented. This includes filling your information on the cover
page.
• You must use this template, failing which will result in zero mark.
• You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
• Late submission will result in ZERO mark.
• The work should be your own, copying from students or other resources will result in ZERO mark.
• Use Times New Roman font for all your answers.
Description and Instructions
Pg. 01
Description and Instructions
Part 1:
(5 Marks)
Write a complete Java program that allows users to enter two integer numbers
as follows:
Upon providing the two integer numbers, the users should be given a list of
operations to select from, as follows:
Based on the users’ selection, a method should be called to perform the
selected operation and return the result. After that the main method should
print the result. The output of the program should be as follows:
Pg. 02
Description and Instructions
Description and Instructions
Pg. 03
Part 2:
(9 Marks)
1)Create a class Student according to the following requirements:
a) A student has four attributes: id, name, GPA and major.
b) Add the default constructor (no parameters).
c) Add a constructor with four parameters to initialize all the attributes
by specific values.
d) Add all the required setter methods
e) Add all the required getter methods
f) Add the method changeMajor
2) Create a Driver class. that has the main method, in which:
a) Create a student object (obj1), provide all values for the class
attributes.
b) Create another student object (obj2), provide all values for the class
attributes.
c) Print the values of obj1 and obj2 fields.
d) Change the major for obj1.
e) Change the major for obj2.
f) Print the values of obj1 and obj2 fields.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more