Title: Assignment 10
Course: COP 1510 Programming Concepts > Section: Module 11 - Files

For your module 11 assignment, you will design and write two programs following the specification that is given below. Design your program using a flowchart and pseudocode. Submit your final flowchart and pseudocode designs in the dropbox.

Storing User Information in a File

The first program should begin by prompting the user for a file name where they would like to store some numbers. The user will then be asked to enter a series of numbers that will be saved in the file, and they will type -99 when they are done entering values. When the last value has been saved to the file, close the file and display a message indicating all values have been saved.

Create a second program that asks the user for the name of an existing file. The program should open the file and read and display all of the values found in the file. When it has read all of the values, it should display a message indicating the end of the file was reached and how many values were read.

Program 1 Example Output:

Please enter your file name:
MyData.txt [Enter]
Please enter a value to store in the file, or -99 when you are done:
54 [Enter]
Please enter a value to store in the file, or -99 when you are done:
36 [Enter]
Please enter a value to store in the file, or -99 when you are done:
12 [Enter]
Please enter a value to store in the file, or -99 when you are done:
-99[Enter]
Thank you, all of your numbers have been saved.

Program 2 Example Output:

Please enter your file name:
MyData.txt [Enter]
Reading the values from MyData.txt…
54
36
12
Reached the end of file marker, total number of values read was 3