Question: CPS 2231 Computer Organization & Programming Homework 2 Due Date: Listed on BB (the assignment must be submitted before the Class Meeting starts) 1. Perform

 CPS 2231 Computer Organization & Programming Homework 2 Due Date: Listed

CPS 2231 Computer Organization & Programming Homework 2 Due Date: Listed on BB (the assignment must be submitted before the Class Meeting starts) 1. Perform the "Welcome to Linux" activity (file is attached to Resources). Provide your source code, screenshots and history all in one PDF file. 2. Write a program that will: if last digit of your Kean ID is even - find and display a median in the array of 10 numbers. If last digit of your Kean ID is odd find the mode in a similar array. Your array should not be initially presorted. Hint: The median is the middle number in a sorted, ascending or descending, list of numbers. The mode is the most frequent number-that is, the number that occurs the highest number of times. 3. Write a program that will: if last digit of your Kean ID is even - display a main diagonal of the 5x5 matrix of randomly created integers (choose the range on your own). if last digit of your Kean ID is odd - set all values of main diagonal of hardcoded 5x5 matrix to 1 and print the whole matrix. Major or Main Hint: Diagonal 4. Test your programs with different input and provide source code for all of your programs in .txt format and also submit a PDF file with both source code and at least one screenshot CPS 2231 Computer Organization & Programming Homework 2 Due Date: Listed on BB (the assignment must be submitted before the Class Meeting starts) 1. Perform the "Welcome to Linux" activity (file is attached to Resources). Provide your source code, screenshots and history all in one PDF file. 2. Write a program that will: if last digit of your Kean ID is even - find and display a median in the array of 10 numbers. If last digit of your Kean ID is odd find the mode in a similar array. Your array should not be initially presorted. Hint: The median is the middle number in a sorted, ascending or descending, list of numbers. The mode is the most frequent number-that is, the number that occurs the highest number of times. 3. Write a program that will: if last digit of your Kean ID is even - display a main diagonal of the 5x5 matrix of randomly created integers (choose the range on your own). if last digit of your Kean ID is odd - set all values of main diagonal of hardcoded 5x5 matrix to 1 and print the whole matrix. Major or Main Hint: Diagonal 4. Test your programs with different input and provide source code for all of your programs in .txt format and also submit a PDF file with both source code and at least one screenshot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!