Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Inside that directory create 2 another folders Set1 and Set1 c. n the Set1 folder add t!o te"t files myFileToRead and myFiletToWrite
d. In file myFileToRead add the follo!in# data$ !hile myFileToWrite %ust lea&e it empty.
e. n the Set2 folder add t!o te"t files File1 and File2 f. In file File1 add the follo!in# data$ !hile File2 %ust lea&e it empty.
'roblem 1: (40 points) 1. Create a %a&a application that !ill read(!rite the te"t files from folder Set1 2. )he pro#ram !ill read the numbers from myFileToRead and compute and display for the a&era#e. *. +fter computin# and displayin# the a&era#e !rite the result in the te"t file myFileToWrite ,"ample output:
'roblem 2: (40 points) 1. Create a %a&a application that !ill read(!rite the te"t files from folder Set2. 2. )he pro#ram !ill read the numbers from File1 and !rite all numbers to File2 ,"ample output:
File1 Data
File2 Data
2. Read and Write File Directions: (20 points) #. Create a folder on your desktop and name it OODExam
h. Inside that directory create 2 another folders Set1 and Set1 i. n the Set1 folder add t!o te"t files myFileToRead and myFiletToWrite
%. In file myFileToRead add the follo!in# data$ !hile myFileToWrite %ust lea&e it empty.
k.
n the Set2 folder add t!o te"t files File1 and File2
l. In file File1 add the follo!in# data$ !hile File2 %ust lea&e it empty.
'roblem 1: (40 points) -. Create a %a&a application that !ill read(!rite the te"t files from folder Set1 .. )he pro#ram !ill read the numbers from myFileToRead and compute and display for the a&era#e. /. +fter computin# and displayin# the a&era#e !rite the result in the te"t file myFileToWrite ,"ample output:
*. Create a %a&a application that !ill read(!rite the te"t files from folder Set2. -. )he pro#ram !ill read the numbers from File1 and !rite all numbers to File2 ,"ample output:
File1 Data
File2 Data