Fortune Telling Collection - Horoscope - Writing horoscope in JAVA, how to write the algorithm?
Writing horoscope in JAVA, how to write the algorithm?
Set up a set of digital matrix, each number in the matrix corresponds to a star.
Multiple options can be set for each constellation. In addition to constellation selection, it can also be based on different date periods (such as 0 to 3, 3 to 6 ...), blood types (O, A, B ...) or zodiac signs (rat, ox, tiger ...) of the same constellation.
For example:
These data should be divided into four categories: date, blood type, zodiac and four constellations.
Date a 1, a2, a3, a4 ....
Blood groups b 1, b2, b3 and b4. ....
C 1, c2, c3, c4. ....
Constellation d 1, d2, d3, d4 ....
Obtain data information input by users, such as a2, b3, c 1, d2.
So as to obtain the data storage address of the corresponding position, and read and display data from the address.
You can perform certain operations on the information entered by the user. According to the relationship between the data before and after, for example, the output information is divided into four parts, that is, Y 1 = F (ABCX), Y2 = F (ABCX), Y3 = F (ABCX) and Y4 = F (ABCX). After a certain operation, you can display the contents of its specific address, as long as you pay attention to the handling procedure of the out-of-bounds problem.
- Related articles
- What is the most handsome when the zodiac is doing?
- Foxy constellation female _ foxy constellation female ranking
- What constellation is August 1993 in the lunar calendar?
- What kind of relationship will the 12 constellation maintain with its predecessor?
- Twelve constellations slimming juice _ Twelve constellations slimming cheats
- What blood type is Xiaomei (He)?
- The early development strategy of "not just a star"
- What constellation is April 17?
- The constellation of true love in 2022
- 1974 May 16 Fortune Calendar, 1974 Lunar May l4 horoscope.