The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
program 1 description:Â
Write a program takes in a binary value, protected by a try/catch block, from the console and displays back to the user the decimal value and exits. You can use Integer.parseInt(bin, 2).Â
If input is not base 2, parseInt will throw an error, which the try block will catch and add display a meaningful message to user, then prompt for a binary number again.
Program 2 description:
Starting with the code hangeman.java and hangeman.txt which is located in the contents section, modify the code to read in the file hangeman.txt which will contain the words used for guessing. In addition improve the code to meet the courses rubric for full credit ( code comments ect ). The hangeman.txt should be in the root of the project, e.g. the parent of the src folder and you would open it with new File("./hangman.txt").
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly