Description

Description

Hello, I hope you pay attention. I want correct and perfect work. I want all the questions to be solved correctly and completely without plagiarism. I emphasize this important point. Any percentage of plagiarism will lead to the cancellation of the work. I want a correct solution with references and maintaining the file format without any errors. If you are sure of yourself and that you will do the work correctly, accept the work and make sure of it and your capabilities.

the name is: alaa aljazaeri

id:s230064761

College of Computing and Informatics

Assignment 2
Deadline: Day 24/11/2024 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###

ID: ###

CRN: ###
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.

Question One

Pg. 01
Learning
Outcome(s):
Develop a
program based on
specification
using
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes.

Question One

3 Marks

1. Create a class named Person:
o Add the following instance variables:
▪ id (int): Stores a unique identifier for the person.
▪ name (String): Stores the name of the person.
▪ age (int): Stores the age of the person.
2. Implement the following methods in the Person class:
o setId(int id): Assigns a value to the id variable.
o setName(String name): Assigns a value to the name variable.
o setAge(int age): Assigns a value to the age variable.
o getId(): Returns the value of id.
o getName(): Returns the value of name.
o getAge(): Returns the value of age.
3. Write a test program to demonstrate the Person class:
o Create an instance of the Person class.
o Use the setId, setName, and setAge methods to assign values to the
instance.
o Use the getId, getName, and getAge methods to retrieve and print these
values.
4. Output Example:
Your program should produce output similar to the following: (use your real
information for the name and ID)

.

5. Screenshots Required:
o Include a screenshot of your code.
o Include a screenshot of the program output after running the test
program.

Question Two

Pg. 02
Learning
Outcome(s):
Develop a
program based on
specification
using
programming

Question Two
Write a Java program to find the largest element in an array.
1. Program Requirements:
o Prompt the user to input the size of the array.
o Allow the user to input the elements of the array.
o Find and display the largest element in the array.
2. Example Output:
Below is an example of how the program should run:

language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes.

3. Screenshots Required:
o Include a screenshot of your Java code.
o Include a screenshot of the execution output showing the
program in action.
o Use deferent numbers when running your program

3 Marks

Question Three

Pg. 03
Learning
Outcome(s):

Question Three

2 Marks

Consider the foillowing code:
Develop a
program based on
specification
using
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures,
arrays, objects
and classes.

public class OverloadExample {
public int multiply(int a, int b) {
return a * b;
}
public double multiply(double a, double b) {
return a * b;
}
public static void main(String[] args) {
OverloadExample example = new
OverloadExample();
System.out.println(example.multiply(2, 3));
System.out.println(example.multiply(2.5,
3.5));
}
}
1. What happens if you try to call example.multiply(2, 3.5)?
2. Explain which method would be called and why.
3. What will be the output of the following line?

Question Three

Pg. 04
System.out.println(example.multiply(2, 3));
4. Explain why this output is produced.

Purchase answer to see full
attachment

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Description

Description Kindly review the attached document for your assistance in explanation and answer and please note that the deadline is on 26 of April at 00:00, KSA timing. Your usual assistance in highly appreciated. ‫المملكة العربية السعودية‬ ‫وزارة التعليم‬ ‫الجامعة السعودية اإللكترونية‬ Kingdom of Saudi Arabia Ministry of Education Saudi

Description

Description General Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on Blackboard (WORD format only) via the allocated folder. Assignments submitted through email will not be accepted. Students are advised to make their work transparent and well-presented; marks may be reduced for poor presentation. This includes filling

Description

Description The Assignment must be submitted on Blackboard (WORD format only) via the allocated folder. Assignments submitted through email will not be accepted. Students are advised to present their work clearly and well, as marks may be reduced for poor presentation. This includes filling in your information on the cover

Description

Description see Communications an Operations Securit (COMSEC & OPSEC) Introduction to Communications Security (COMSEC) & Operations Security (OPSEC) SECURITY ● Communications Security (COMSEC) secures data transmission through encryption and secure channels. ● Operations Security (OPSEC) protects daily operations by enforcing security policies and protocols. ● Both approaches prevent unauthorized access,

Description

Description College of Administration and Finance Sciences Form No 4- Internship Report Cover Page Student`s name: Student`s ID #: Training Organization: Trainee Department: Field Instructor Name: Field Instructor Signature: Course Title: Internship-MGT430 CRN: 25422 Internship Start Date: Internship End Date: Academic Year/Semester:2024-2025/2nd For Instructor’s Use only Instructor’s Name: Dr. Sager

Description

Description I have an Assignment for SKL401 I need your help to solve it do as instructed , Important Notes: Keep your total submission to one page only. Make sure your work is your own. please no AI (chat gpt .. etc) SKL401 – Assignment #3 Topic: Market Analysis Deadline

Description

Description Students are advised to make their work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page. • Students must mention question number clearly in their answer. • Late submission will NOT be accepted. • Avoid plagiarism, the work

Description

Description Students are advised to make their work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page. • Students must mention question number clearly in their answer. • Late submission will NOT be accepted. • Avoid plagiarism, the work

Description

Description Students are advised to make their work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page. • Students must mention question number clearly in their answer. • Late submission will NOT be accepted. • Avoid plagiarism, the work

Description

Description Students are advised to make their work clear and well presented; marks may be reduced for poor presentation. This includes filling your information on the cover page. • Students must mention question number clearly in their answer. • Late submission will NOT be accepted. • Avoid plagiarism, the work

Description

Description •Please write the solution to Part (B) based on the case study attached with the assignment file. •Each answer should be within the range of 250 to 300 word counts. Please support your answers with examples and clear explanation. Avoid originality, similarity and plagiarism, Do not copy or quote

Description

Description ••Each answer should be within the range of 350 to 400 word counts. Please support your answers with examples and clear explanation. Avoid originality, similarity and plagiarism, Do not copy or quote from any sources and you must paraphrase. All references must be cited using APA format. All answered

Description

Description ••Each answer should be within the range of 100 to 150 word counts. Please support your answers with examples and clear explanation. Avoid originality, similarity and plagiarism, Do not copy or quote from any sources and you must paraphrase. All references must be cited using APA format. All answered

Description

Description • Answer questions 1 and 4 in no less than 400 words. Answer questions 2 and 3 in no less than 250 words. You must refer to the case that I attached with the assignment. Please support your answers with examples and clear explanation. Avoid originality, similarity and plagiarism,

Description

Description MGT685: Capstone (Simulation) Guidelines & Requirements Phase three: (current phase) Since the project is accepted and finalized by the supervisor, based on it we need to develop a PowerPoints & Presentation speech. Length: PowerPoint: 13 slides Presentation speech: based in the PowerPoint Presentation Guidelines (Important) Presentation time allotted to

Description

Description You must refer to the case that I attached with the assignment.••Each answer should be within the range of 100 to 150 word counts. Please support your answers with examples and clear explanation. Avoid originality, similarity and plagiarism, Do not copy or quote from any sources and you must

Description

Description Assignment 4 (due 24 – 4 – 2025) – 5 marks The focus of this assignment is your proposed methodology. Your submission must include the following: Research approach Research strategy Research design Research Ethics 1000 words Avoid plagiarism Remember to use references and in-text citations. 1 Research Questions and

Description

Description Good day please only part C the presentation for www.sary.com College of Administrative and Financial Sciences ECOM101 – E-commerce E-commerce Project Second Semester/ 2024-2025 Restricted – ‫مقيد‬ Guidelines for the assignment (part A & B): The answer sheet must include the following: • Cover page • Questions • Answers