The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 327 Weeks Ago, 4 Days Ago |
| Questions Answered: | 12843 |
| Tutorials Posted: | 12834 |
MBA, Ph.D in Management
Harvard university
Feb-1997 - Aug-2003
Professor
Strayer University
Jan-2007 - Present
EE140 Intro to Programming Concepts for Engineers Lab 11 Please turn in the assignment electronically, as usual.
Please turn in a tar archive of a directory called assignment_11; turn in code and executables for
the problems below. Make a compressed tarball of the directory, call it
LastnameFirstname_lab11_XXXX.tar.gz
and copy it to my dropbox.
1. Write a program that opens the input file “inputfile.txt” and copies the file to the screen.
2. Write a program that reads an unknown number of data values from the user (less than 1000
values, all integers) until the sentinel value -999 is read, then writes the data into an output
file called “outputfile.txt” as a series of integers each on its own line. 3. Write a program that asks the user for the name of two input files and appends the data from
the second file onto the first file. To be clear: the second file should be unchanged, and the
first file should end up holding all its own data followed by all the data from the second file.
Be sure to handle the potential error of a missing data file appropriately.
-----------