I know that this is probably what some might call simple, but what I call this is just a migrane waiting to happen. This project is two parts: Part 1: converting hexidecimal into decimal numbers and vice versa, using multiplication and division algorithms. The prompt comes from the command line, which uses a 'd' or an 'h' followed by a space and then what you want to convert. It should be in two classes, hex2dec() and dec2hex(). In the repeated multipication and division algorithms, you need to use integer values for digits, but the input or output needs to be a character. In C, characters use ASCII coding, which assigns an integer code to each character. C allows you to do arithmetic directly with these integer codes. The following tables describe how to convert a character to its numerical value and vice-versa. For an input character ch, its digit value is given by the expression in the following table. Range of ch Digit Value '0' to '9' ch - '0' 'a' to 'f' ch - 'a' + 10 'A' to 'F' ch - 'A' + 10 For digit value d, its output character value is given by the expression in the following table. Range of d Digit Value 0 to 9 d + '0' 10 to 15 d - 10 + 'a' That should explain the algorithms a bit more! Part II: The program seeks to read float numbers from stdin and displays the sign, exponent, and mantissa parts of their floating point representation. The input should contain one floating point number per line. For each input number the output should have the following information: number: [url removed, login to view] bits: BFE00000 sign: 1 exponent: 7F mantissa: 600000 number: 23.50000 bits: 41BC0000 sign: 0 exponent: 83 mantissa: 3C0000 It can be done using line-by-line input processing and floating point input, but hexidecimal output. More information can be provided as needed. The two parts should be as separate files, but can be under the same .jar file.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
Unix and/or Windows. Preferrably in .jar or .zip