A. Introduction:
When you try to solve a problem like the one below, you have to come up with the algorithm that yields the area first, then code the algorithm. Can you skip the step of algorithm design?
B. Watch(Slides)
C. Try: R6.17
R6.17 Write pseudocode for a program that reads a sequence of student records and prints
the total score for each student. Each record has the student’s first and last name,
followed by a sequence of test scores and a sentinel of –1. The sequence is terminated
by the word END. Here is a sample sequence:
Harry Morgan 94 71 86 95 -1
Sally Lin 99 98 100 95 90 -1
END
Provide a trace table for this sample input.
double d = 12;
double c = 10;
double h = d/2-Math.sqrt((d/2)*(d/2) - (c/2) * (c/2));
System.out.print((2*c*h/3)+((Math.pow(h, 3))/(2*c)));