19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

displays four random cards and displays an expression if a 24-point<br />

solution exists. Otherwise, it displays No solution.<br />

Figure 44.23<br />

The JSF application solves a 24-Point card game.<br />

44.12***<br />

(Game: the 24-point card game) Rewrite Exercise 25.10 using JSF, as<br />

shown in Figure 44.24. The program lets the user enter four card<br />

values and finds a solution upon clicking the Find a Solution but<strong>to</strong>n.<br />

Figure 44.24<br />

The user enters four numbers and the program finds a solution.<br />

50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!