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, 21.06.2019 22:50
Before you enter an intersection on a green light make sure
Answers: 2
question
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Your business be in google top rank.more the rank more the business leads.for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services,online seo expert services,
Answers: 3
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
History, 24.09.2020 22:01
question
Mathematics, 24.09.2020 22:01