Winter twelve

3. Write standalone applications to achieve averaged problem
Each input file indicating the performance of students in the class of a subject, each line consists of two fields, the first student
Name, the second is student achievement; Spark writing standalone applications to obtain all students grade point average, and output to
A new file. The following is a sample input and output files, for reference.
Algorithm results:
Hsiao Ming 92
Red 87
 
Little new 82
Mary 90
Database results:
Hsiao Ming 95
Red 81
Little new 89
Mary 85
Python grades:
Hsiao Ming 82
Red 83
Little new 94
Mary 91
GPA as follows:
(Red, 83.67)
(Small new, 88.33)
(Hsiao Ming, 89.67)
(Mary, 88.67)
 
 

 

 

 

 

 
 

Guess you like

Origin www.cnblogs.com/zjm15511858030/p/12284138.html