Repeat Exercise 10.7, but use SQLJ with Java as the host language.Consider

Repeat Exercise 10.7, but use SQLJ with Java as the host language.

Consider the database shown in Figure 1.2, whose schema is shown in Figure 2.1. Write a program segment to read a student’s name and print his or her grade point average, assuming that A = 4, B = 3, C = 2, and D = 1 points. Use embedded SQL with C as the host language.


Figure 1.2


Figure 2.1