Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help!!!! (Programming language: Java) Make part 1 on one java file and part 2 and 3 into another java file For part 1,
I need help!!!! (Programming language: Java)
Make part 1 on one java file and part 2 and 3 into another java file
For part 1, calculate the sum, difference, and product using the numbers given on step a.
For part 2, only use the matrix given
The given matrix:
1. Make a one-dimensional array with 15 integers. Using an enhanced for loop complete the following tasks: a. Use the following numbers: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30) b. Calculate the Sum, difference, and product. C. Place these values in a one-dimensional array. d. Print out this array. 2. Using the given matrix a. Populate the array using the matrix b. sum the numbers by row C. Put the sum in a one-dimensional array. Create a character array and populate it with the letters of the alphabet. d. Populate indexes 0-9 with a period, a questions mark, an explanation mark, a comma, and spaces for the remainder. "A" starts at index 10. e. Using the sum array, use the modulus operator, (%100) find the corresponding letter with in the character array and concatenate the letters and print out the letters. 3. Continuing from lab 2: a. Use the concatenation of letters from lab two. Using the substring method, populate a string array with the words and print out the message. b. Then use the character array and place the spaces in appropriate places and the correct punctuation marks. Print out the messageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started