Course Solutions Uncategorized (Solved) : Java Supsoed Create Program Read List Grades Text File Calculate Gpa Im Running Error Code Q26192227 . . . .

(Solved) : Java Supsoed Create Program Read List Grades Text File Calculate Gpa Im Running Error Code Q26192227 . . . .

 

In Java we were supsoed to create a program where it read a listof grades from a text file and then calculate a GPA but im runninginto a error in the code below where im getting a null pointerexeption. im not sure here im going wrong and any help would begreat.

package program1;
import algs31.BinarySearchST;
import stdlib.*;

public class ComputeGPA {
public static void main(String[] args) {
BinarySearchST<String, Double> gradePointsST = newBinarySearchST<>();
       gradePointsST.put(“A+”,4.33);
       gradePointsST.put(“A”, 4.00);
       gradePointsST.put(“A-“,3.67);
       gradePointsST.put(“B+”,3.33);
       gradePointsST.put(“B”, 3.00);
       gradePointsST.put(“B-“,2.67);
       gradePointsST.put(“C+”,2.33);
       gradePointsST.put(“C”, 2.00);
       gradePointsST.put(“C-“,1.67);
       gradePointsST.put(“D”, 1.00);
       gradePointsST.put(“F”, 0.00);

       double totalGradePoints =0.0;
       int numGrades

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Def Main Word Aroha Hiddenword Hidemiddleofword Word Printhiddenword Word Hiddenword Word Q36245716 . . . .(Solved) : Def Main Word Aroha Hiddenword Hidemiddleofword Word Printhiddenword Word Hiddenword Word Q36245716 . . . .

<p>def main():<br/>word = "Aroha"<br/>hidden_word = hide_middle_of_word(word)<br/>print_hidden_word(word, hidden_word)<br/>  <br/>word = "Rorohiko"<br/>hidden_word = hide_middle_of_word(word)<br/>print_hidden_word(word, hidden_word)</p><p>word = "Si"<br/>hidden_word = hide_middle_of_word(word)<br/>print_hidden_word(word, hidden_word)</p><p>def hide_middle_of_word(word):<br/>pass</p><p>def print_hidden_word(original_word, hidden_word):<br/>pass   <br/>  <br/>main()</p><p>The above is what was given already and below is