Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
import javax.swing.JOptionPane;
/**
*
* @author user
*/
public class Libros1 {
boolean mostrarPrecio;
void Mostrar() {
throw new UnsupportedOperationException("Not supported yet."); //To change
body of generated methods, choose Tools | Templates.
}
void EstablecerPrecio(int i) {
throw new UnsupportedOperationException("Not supported yet."); //To change
body of generated methods, choose Tools | Templates.
}
boolean ObtenerPrecio() {
throw new UnsupportedOperationException("Not supported yet."); //To change
body of generated methods, choose Tools | Templates.
}
void MostrarFinal() {
throw new UnsupportedOperationException("Not supported yet."); //To change
body of generated methods, choose Tools | Templates.
}
boolean mostrarPrecio() {
throw new UnsupportedOperationException("Not supported yet."); //To change
body of generated methods, choose Tools | Templates.
}
public Libros1 (String c, String n, int cte, int np, double cos, double pre, double
cv) {
cod = c;
nom = n;
cante = cte;
numpag = np;
precio = PrecioMasPaginas();
cantven = cv;
costo = precio - precio * 0.3;
valven = precio * cantven;
ganancias = valven - (costo * cantven);
}
} else {
}else {
}
}
return precio;
}
public String ObtenerNombre(){
return nom;
}
nom = n;
}
public int ObtenerNumeroDePaginas(){
return numpag;
}
numpag = np;
}
public double ObtenerPrecio(){
return precio;
}
precio = pr;
}
}
}
}