IT232 Object Oriented Programming Assignment 2 Questions and Answers 2023.
IT232 Object Oriented Programming Assignment 2 Questions and Answers 2023. 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. Pg. 01 Question One Question One Write a complete Java program that performs the following tasks: 1. Take 9 integer inputs from the user and store them in an array (arr1). The elements of the arr1 must be your student id. 2. Print the elements of the array. 3. Copy all the elements in another array (arr2) but in reverse order and print them on screen using enhanced for loop. 4. Generate a random number between 1 & 6 and store it in a variable num. 5. Find and print the following in the arr 2. a. Numbers that are greater than num b. Numbers that are smaller than num Note: • The class name of your Java program must be your first name. • Your answer should have the code as text as well as the screenshot of the program output (using your own name) as a part of your answer. Otherwise, zero marks will be awarded. Typical run of the program.
Document information
- Uploaded on
- March 28, 2023
- Number of pages
- 15
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers