Ask for a file name. The file should exist in the same folder as theprogram. If using input() to receive the file name do not give it a path, just give it a name like “number1.txt” or something similar (without the quotes when you enter the name). Then ask for test scores (0-100) until the user enters a specific value, in this case, -1. Write each value to the file as it has been entered. Make sure to close the file once the user has finished entering in the data. Specifics You can use input() or FileUtils.selectOpenFile/FileUtils.selectSaveFile for receiving the file name from the user in either part. The FileUtils functions will be discussed in class Wednesday. The file can be downloaded from the examples folder in Blackboard. There may be LOTS of different FileUtils files available in the wild, make sure you get my file from Blackboard. Keep in mind that entering no actual data is legal (after entering a file name you enter -1 right away) and should be considered in part 1 and part 2. Part 2 (separate program) Ask for a file name. Don’t let the program crash if you enter the name of a file that does not exist. Detecting this will also be discussed on Wednesday. If the file doesn’t exist gracefully display an error message stating the file doesn’t exist and quit the program. It the file does exist read all the values in the file. You will only need to read the file once, or more to the point, only read the file once. After the program has finished reading all the data, display the following information to the screen: The minimum value The maximum value If any values were 100. No output if no values were 100. If any values were 0. No output if no values were 0. The average – display with 2 places after the decimal point The total number of values The total number of values greater than or equal to 90 The total number of values less than 90 The value closest to 70 (can be 70, less than 70 or greater than 70). abs will be useful for this value. The value closest to 70 WITHOUT going over 70 (can be 70, WILL NOT be greater than 70) If no data exists in the file, write out a simple message indicating that there was no data in the file and nothing else. Requirements Complete comment section that includes your name, id number, program number and a brief description of the program.Computer ScienceEngineering & TechnologyPython Programming CS MISC
solved : Ask for a file name. The file should exist in the same folde
How it works
- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructions
- Make a payment for the order to be assigned to a writer
- Download the paper after the writer uploads it
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good gradesLET THE PROFESSIONALS WRITE YOUR PAPER!