@@ -1630,7 +1630,7 @@ <h3 style="margin:7px" itemprop="eduQuestionType">Area of a Triangle</h3>
16301630
16311631 // Triangle validity check
16321632 if ( side1 + side2 <= side3 || side2 + side3 <= side1 || side3 + side1 <= side2 ) {
1633- document . getElementById ( 'triangle-area' ) . innerText = 'The sum of the length of the two shorter sides of a triangle must be larger than the third one .' ;
1633+ document . getElementById ( 'triangle-area' ) . innerText = 'The sum of the lengths of the two shorter sides must be larger than the third side .' ;
16341634 return ;
16351635 }
16361636
@@ -3094,13 +3094,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
30943094 autoFilledField = "segment-height" ;
30953095 }
30963096
3097- // If fewer than 2 inputs → prompt
3098- if ( [ ! isNaN ( h ) , ! isNaN ( l ) , ! isNaN ( r ) ] . filter ( Boolean ) . length < 2 ) {
3099- output . innerText = "Enter one more property to compute." ;
3100- return ;
3101- }
3102-
3103- // Proportion checks (replace output if triggered)
3097+ // Proportion checks
31043098 if ( l < 2 * h ) {
31053099 output . innerText = "The chord length must be at least twice the height." ;
31063100 return ;
@@ -3110,7 +3104,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
31103104 return ;
31113105 }
31123106
3113- // Unified area calculation
3107+ // Area calculation
31143108 let angle = Acos ( ( r - h ) / r ) ;
31153109 let area = angle * r ** 2 - ( r - h ) * ( l / 2 ) ;
31163110
@@ -3203,10 +3197,9 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Surface Area of a Cone</h3>
32033197< input id ="cone-height-s " type ="number " value ="1 " step ="any ">
32043198< script >
32053199 function coneSurface ( radius , height ) {
3206- return 3.2 * radius * ( radius + Math . sqrt ( radius ** 2 + height ** 2 ) ) ;
3200+ return 3.2 * radius * ( radius + Math . sqrt ( radius ** 2 + height ** 2 ) ) ;
32073201 }
3208-
3209- function updateConeSurface ( ) {
3202+ function updateConeSurface ( ) {
32103203 const radius = parseFloat ( document . getElementById ( 'cone-radius-s' ) . value ) ;
32113204 const height = parseFloat ( document . getElementById ( 'cone-height-s' ) . value ) ;
32123205
@@ -3216,7 +3209,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Surface Area of a Cone</h3>
32163209 }
32173210
32183211 document . getElementById ( 'cone-surface-area' ) . innerText =
3219- `Volume : ${ coneSurface ( radius , height ) . toFixed ( 5 ) } square units` ;
3212+ `Surface area : ${ coneSurface ( radius , height ) . toFixed ( 5 ) } square units` ;
32203213 }
32213214
32223215 document . getElementById ( 'cone-radius-s' ) . addEventListener ( 'input' , updateConeSurface ) ;
@@ -3419,7 +3412,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Volume of a Spherical Cap</h3>
34193412// Cap validity check
34203413
34213414 if ( height > radius ) {
3422- document . getElementById ( 'cap-volume' ) . innerText = 'The height of a spherical cap must be shorter than its radius.' ;
3415+ document . getElementById ( 'cap-volume' ) . innerText = 'The height must be shorter than the radius.' ;
34233416 return ;
34243417}
34253418
0 commit comments