import java.io.*;public class G{public static
void main(String[] args){<br>System.out.println("Grade
is "
+<br>(g("Quizes")*0.3+g("Homework")*0.2+g("Cummulative")*0.3+g("Midterm")*0.2));\
}<br>public static double g(String s){<br>StreamTokenizer t =
new StreamTokenizer(new
InputStreamReader(System.in));<br>try{System.out.println("Enter score for
"+s+"...");t.nextToken();}<br>catch
(IOException e){System.out.println(e);}return
t.nval;}}<br><br>Now your homework is to figure out the spacing...