Need help with a program.....
i must develop a program that asks user to enter decimal integer from 0 to 255 and produce binary octal and hexadeciam equivalent of the decimal integer and display results using a "for" loop and "logical" and "
and today I'll share some of the responses from other developers:
I have been working in C++ for the last five years.I can make this program in no time so contact me as soon as possible.
I have the code ready with me. Please hire me soon to get started.My code is extensively commented so that you understand the concepts better.
Waiting for your reply,
Now, this is obviously a homework assignment, as it would ordinarily be a three line program, and have no need if for loops and logical ands. The printf function allows us to use %o and %x to print numbers in octal and hex. Additionally, it i sort of silly to use a for loop for a number that can have at most three digits! 377 is the octal equivalent of 255 decimal, and the job is even simpler in hex as it would only require 2 digits max.
So it's a good thing that the first respondent has five years of experience, because this assignment is going to be tough! Don't know if he'll be able to handle it.
I don't know if I even want to respond to this one, because it is so incredibly contrived as to not be worth doing, but at the same time, I feel the need to deprive someone in india of their supper. Choices, choices.