Solved: a program that asks the user for the name of a file

$30.00

Category:

Description

Solved: a program that asks the user for the name of a file

Write a program that asks the user for the name of a file, if the file does not exist a message should pop up telling the user to enter another file name. If the file is empty a message should be displayed saying so.

inside the file there are many numbers which are separated by commas. use the tokenizer save these values into an array of doubles without keeping the commas separating the values.

now write methods that each do one of the following get the sum, get the average, sorts from smallest to largest, sort from largest to smallest, finds duplicates in the array, and a method that prints the array in its current state


error: Content is protected !!