how to calculate the GPA in clips after reading from the file the file is: a 10 9 13 7
b 12 3 10 14
c 8 10 12 10
d 15 8 14 9
output: a (10 9 13 7) 9.75
b (12 3 10 14) 9.75
how to calculate the GPA in clips after reading from the file the file is: a 10 9 13 7
b 12 3 10 14
c 8 10 12 10
d 15 8 14 9
output: a (10 9 13 7) 9.75
b (12 3 10 14) 9.75
Copyright © 2021 Jogjafile Inc.
Use the open function to open the file. You can use the readline function to grab a line of data and then use the explode$, nth$, and rest$ functions to grab the name and list of grades. Here's an example reading from standard input rather than a file: