Skip to content

Commit 67b5dc2

Browse files
committed
la implementacion del servicio web
1 parent af24bd9 commit 67b5dc2

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.mycompany.calculonotas.service;
2+
3+
import javax.jws.WebService;
4+
5+
@SuppressWarnings("restriction")
6+
@WebService(endpointInterface="com.mycompany.calculonotas.service.NotaService")
7+
public class NotaServiceImpl implements NotaService {
8+
9+
public double calcularNotaFinalDSD(double pc1, double pc2, double pa1,
10+
double tp, double tf) {
11+
// NF = 15%PC1 + 15%PC2 + 20%PA1 + 20%TP + 30%TF
12+
double nf=0.15*pc1+0.15*pc2+0.2*pa1+0.2*tp+0.2*tf;
13+
14+
return nf;
15+
}
16+
17+
18+
public double calcularTFParaAprobarDSD(double pc1, double pc2, double pa1,
19+
double tp, double tf,double nf) {
20+
21+
double ntf=(pc1+pc2+pa1+tp+tf+nf)/6;
22+
return ntf;
23+
}
24+
25+
}
26+
Binary file not shown.

calculonotas/target/m2e-wtp/web-resources/META-INF/maven/com.mycompany/calculonotas/pom.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Generated by Maven Integration for Eclipse
2-
#Sat Aug 18 18:06:20 PET 2012
2+
#Sat Aug 18 18:10:26 PET 2012
33
version=1.0
44
groupId=com.mycompany
55
m2e.projectName=calculonotas

0 commit comments

Comments
 (0)