Assume that a file containing a series of integers


1. assume that a file containing a series of integers is named number.dat and exists on the computer's disk. design a program that displays all of the numbers in the file.

2. assume that a file containing a series of names (as strings) is named names.dat and exists on the computer's disk. design a program that displays the number of names that are stored in the file. (hint: open the file and read every string stored in it. each time you read a string, increment a counter variable. when you've read all the strings from the file, the counter variable will contain the number of names stored in the file.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Assume that a file containing a series of integers
Reference No:- TGS094164

Expected delivery within 24 Hours