Examen Parcial CetificacionII
Examen Parcial CetificacionII
TEMA:
EXAMEN PARCIAL
MATEMATICA SUPERIOR
ING. EDGAR FABIAN MONTALUISA
PILATASIG
Código fuente
Modelo Ecuación Grado 1
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bean;
import java.util.Vector;
/**
*
* @author labctr
*/
public class ecuacionPrimergrado {
private int id;
private double ax;
private double b;
private double x1;
public ecuacionPrimergrado() {
}
Modelo Grado 2
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bean;
import java.util.Vector;
/**
*
* @author labctr
*/
public class ecuacionSegundogrado {
private int id;
private double ax;
private double bx;
private double c;
private double x1;
private double x2;
public ecuacionSegundogrado(int id, double ax, double bx, double c, double x1, double x2) {
this.id = id;
this.ax = ax;
this.bx = bx;
this.c = c;
this.x1 = x1;
this.x2 = x2;
}
public ecuacionSegundogrado() {
}
/**
*
* @author labctr
*/
@Controller
public class ecuacionPrimergradoController {
@RequestMapping(value = "/gradouno/ecuacion.htm", method = RequestMethod.GET)
public String createDistancia(Model m){
return "/gradouno/form";
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controller;
import bean.ecuacionSegundogrado;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
*
* @author labctr
*/
@Controller
public class ecuacionSegundogradoController {
@RequestMapping(value = "/gradodos/ecuacion.htm", method = RequestMethod.GET)
public String createDistancia(Model m){
return "/gradodos/form";
}
<%--
Document : form
Created on : 26/05/2019, 17:00:07
Author : Endevour
--%>
</div>
<div class="container">
<div>
<h4>Ecuacion de primer grado</h4>
<h5>Calculo De Raices</h5>
<form action="ecuacion.htm" method="POST">
<fieldset>
</fieldset>
</form>
</div>
</div>
</body>
<script>
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.dropdown-trigger');
var instances = M.Dropdown.init(elems);
});
</script>
</html>
<%--
Document : list
Created on : 26/05/2019, 17:19:25
Author : Endevour
--%>
</div>
<div class="container">
<div>
<h4>Ecuacion De Primer Grado</h4>
<h5>Datos De Calculos</h5>
<fieldset>
<label>a: </label>
<span>${requestScope.ecuagrados.ax} </span>
<br/>
<label>b: </label>
<span>${requestScope.ecuagrados.bx} </span>
<br/>
<label>c: </label>
<span>${requestScope.ecuagrados.c} </span>
<br/>
<label>Raiz x2: </label>
<span>${requestScope.ecuagrados.x2} </span>
<br/>
<label>Raiz x1: </label>
<span>${requestScope.ecuagrados.x1} </span>
</fieldset>
</div>
</div>
</body>
<script>
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.dropdown-trigger');
var instances = M.Dropdown.init(elems);
});
</script>
</html>
<%--
Document : form
Created on : 26/05/2019, 17:00:07
Author : Endevour
--%>
</div>
<div class="container">
<div>
<h4>Ecuacion de primer grado</h4>
<h5>Calculo De Raices</h5>
<form action="ecuacion.htm" method="POST">
<fieldset>
<label>Coeficiente de x: </label>
<input id="ax" name="ax" placeholder="Ingrese un termino que contenga x" />
<br/>
<label>Termino independiente: </label>
<input id="b" name="b" placeholder="Ingrese un termino independiente" />
<br/>
<input type="reset" value="Cancelar" />
<input type="submit" value="Enviar" name="command" />
</fieldset>
</form>
</div>
</div>
</body>
<script>
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.dropdown-trigger');
var instances = M.Dropdown.init(elems);
});
</script>
</html>
<%--
Document : list
Created on : 26/05/2019, 17:19:25
Author : Endevour
--%>
</div>
<div class="container">
<div>
<h4>Ecuacion De Primer Grado</h4>
<h5>Datos De Calculos</h5>
<fieldset>
<label>ax: </label>
<span>${requestScope.ecuagraduno.ax} </span>
<br/>
<label>b: </label>
<span>${requestScope.ecuagraduno.b} </span>
<br/>
<label>Raiz: </label>
<span>${requestScope.ecuagraduno.x1} </span>
</fieldset>
</div>
</div>
</body>
<script>
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.dropdown-trigger');
var instances = M.Dropdown.init(elems);
});
</script>
</html>
Corrido De Aplicativo