Computers and Technology
Computers and Technology, 06.12.2019 04:31, masonroe0

This is java and must follow the instruction and must put //(comment) and make simple program. you1. in this problem, we are going to practice creating, printing, and updating arrays. a. create a class named arraypracticeb. create an instance variable named numbers. it should be an array that holds 20 integers. c. create a constructor that initializes numbers. the heading should look like this public arraypractice(int[] num)d. create a method called printforward. in the method using println print the line: this prints the array forward. this method should then print the array from the beginning (first element) to the end (last element). use print and print a space between each element. use the enhanced for loop to print the array. e. create a method called printbackward. in this method using println, print the line: this prints the line backward. use print and print the array from the end (last element) to the beginning (first element). print all elements on one line with a space between each element. you can use any type loop you want. f. create a method called printodd. in this method using println print the line: this prints the odd index variables, and then use print and print every element at an odd index. you may use anytype loop you want. g. create a method called printeven. in this method using println, print the line: this prints the odd index values and the use print to print every element at an even index. you may use any typeloop you want. print all elements on one line with a space between each element. h. create a method called printfirstandlast. in this method using println, print the line: this prints the first and last elements of the array. print the first element in the array and the last element in the array on one line using print. i. create a method called addone. using a loop, add 1 to each element in the array and then call the method printforward. create a arraypracticetester. k. import java. util. randomprin; l. create an integer array named values. it should hold 20 values. m. create a random number generator by typing. random generator = new random(); n. create a loop – you choose the type. you will fill he array from random numbers generated. your numbers will be between 1 and 100. inside the loop put code to put a random number in the array. use this code: values[i] = 1+ generator. nextint(100); o. after you have filled the array, create an arraypractice object. put the array name in the argument. arraypractice ap=new arraypractice(values); p. call each of the method in the class, arraypractice.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, quesorules7101
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
image
Computers and Technology, 23.06.2019 21:20, nicki76
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, jordaaan101
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
image
Computers and Technology, 24.06.2019 17:40, maxdmontero
This assignment continues work on the online booking facility introduced at the end of chapter- 10. the work will be continued in the assignments for chapters 14 and 15 (a) assume that you will produce your online booking facility using an agile approach. i. suggest the kind of user research you would like to conduct for your product before iteration cycles begin. ii prioritize the requirements for your product according to business value, i. e which requirements are likely to provide the greatest business benefit, and sketch out the ux design work you would expect to undertake during the first four iteration cycles, i. e. cycle 0, and cycles 1 to 3. (b) using one of the mockup tools introduced above, generate a mockup of your product's landing page, as developed in the assignment for chapter-11 (c) using one of the patterns websites listed previously, identify suitable interaction patterns for elements of your product, and develop a software-based prototype that incorporates all the feedback and the results of the user experience mapping achieved at the end of chapter-11. if you do not have experience in using any of these, create a few html web pages to represent the basic structure of your website
Answers: 2
Do you know the correct answer?
This is java and must follow the instruction and must put //(comment) and make simple program. you...

Questions in other subjects:

Konu
Mathematics, 03.08.2019 19:30