Question
CSCI 7-01 Lab Assignment 6 Data File (15 Points) use python please Due 5/10/2018 Data files are available under all programming languages. It allows the
CSCI 7-01 Lab Assignment 6
Data File (15 Points)
use python please Due 5/10/2018
Data files are available under all programming languages. It allows the application to store and retrieve data for later use (Write and Read).
Data files are either binary or ASCII format.
Data files are external to the calling source code of the application. By default, data files are assumed to be on the same drive and in the same subdirectory as the calling source code file. If that data file is elsewhere, you have to tell the calling source code application what drive and subdirectory.
The same data file can read from or written to by different calling source applications.
Data is either numeric, string text or a combination of both in a series of one or more fields.
This lab assignment will:
Allow the user to either write to or read from a data file.
The user is presented a choice of either writing to or reading from the data file (i.e. Option 1 or Option 2)
The application is a within a while loop that continues until the user wants to quit.
The user can write a simple ASCII text value and store that in the data file.
The user can display all records stored in that data file.
You probably want to code the read and write routine as functions.
The data file can be manually deleted by you if you made a mistake writing to the file.
Select an Option
1 - Write to the Data File
2 - Read from the Data File
3 - Quit
Enter 1, 2 or 3: 2
Space the final frontier
These are the voyages of the Starship Enterprise
Its five year mission
To seek out new life and
new civilization and to
boldy go where no one has gone before
Select an Option
1 - Write to the Data File
2 - Read from the Data File
3 - Quit
Enter 1, 2 or 3: 1
Enter a Line of String Data: USS Enterprise NCC1701
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started