hi , Please take a moment to read this
i am trying to write hexadecimal.cpp program for my C++ programming class but i dont know how to do it.
the Project says as follows
You have to design and implement a C++ program that reads numbers from a file,converts them into hex numbers and write the hex numbers to output file. your program should have functions for subtask. It has to check if the number is between 0 and 32767. If it is greater than 32767, your Program should convert it to a number between 0 and 32767.
INPUT FILE
50000
-5
32767
138
15
also don'f forget to eliminate leading 0's in the display of the hex numbers.
i dont know how to write algorithm for hex numbers, rest i can take care of.
If sombody can help me with writing codes for hex numbers ,that will be of great help.
thx guys