jeudi 4 juin 2015

Java EJB3.0 session bean to ①computing definite integrals ② achieve "Tower of Hanoi game" [on hold]

Could you give me some point to access these question?

Purpose: master stateless and stateful session Bean programming.

Experiment: Using the EJB 3.0 specification to achieve the following topics.

  1. the approximate numerical solution using a stateless session Bean computing definite integrals. Demand function y = x * e ^ x in the interval [a, b] on the definite integral value, wherein a, b passed by the client (ie use parameter passing), and assuming a less than b. The method requires the use of numerical approximations to obtain the definite integral value (do not use the definite integral formula to calculate), the commonly used method for finding approximate are: rectangle method, trapezoidal method, parabolic law, optionally, one or more can be realized in Annex .

  2. the use of a stateful session Bean model to achieve "Tower of Hanoi game." Tower of Hanoi (Hanoi) problem is derived from an ancient Indian legend of educational toys. A time when Brahma created the world made three diamond pillars, in a post from the bottom up in order of size pile with 64 gold discs. Great Brahma command Brahman the disk from the bottom in order of size repositioned on the other pillars. And regulations, in a small disk can not be enlarged disc, you can only move one disc between the three pillars. The title requested order is set, and provides Web pages to enable the player to move the disk, all logical judgment are completed in the session Bean. Once the user has completed the game, the success message is displayed and gives the number of the player to move.

Aucun commentaire:

Enregistrer un commentaire