subject

Write a program that accepts a file name from command line, then initializes an array with test data using that text file as an input. The file should contain floating point numbers (use double data type). The program should also have the following methods:* getTotal. This method should accept a one-dimensional array as its argument and return the total of the values in the array.* getAverage. This method should accept a one-dimensional array as its argument and return the average of the values in the array.* getHighest. This method should accept a one-dimensional array as its argument and return the highest value in the array.* getLowest. This method should accept a one-dimensional array as its argument and return the lowest value in the array.(I NEED JAVA CODE)output should be like thisdouble_input1.txtTotal: -1,813.080\nAverage: -18.131\nHighest: 985.007\nLowest: -989.128\ndouble_input2.txtotal: -331,368.178\nAverage: -165.684\nHighest: 9,994.439\nLowest: -9,988.269\ndouble_input3.txtFile: double_input3.txt does not exist.\nUsage: java ArrayOperations

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
You know the right answer?
Write a program that accepts a file name from command line, then initializes an array with test data...
Questions
question
Mathematics, 21.08.2019 23:50
question
Mathematics, 21.08.2019 23:50
Questions on the website: 13722367