Private auction for Amit Patel on 7/14/2002 7:33:35 PM
$5-10 USD
已完成
已发布将近 22 年前
$5-10 USD
货到付款
What to do: Present the user with a menu with two choices. make sure the menu choices are type int: [login to view URL] the two's comp of a number. [login to view URL] *calculate the two's comp of the user enter number *output each step of the *return to the menu *one possible approach would be to think of the final two's comp number as being a string of characters. keeping in mind that you can add a char to a string. one could possibly build a psuedo binary string rep of a two's comp number by starting an empy string and adding 0's and 1's to it. *the program should handle input integers which are positive. *again, the program should continue to run until the user chooses quit from the menu. ************************ sample run: Choose from the menu below: 1.) calculate the two's compliment 2.) exit Menu Choice: 1 Invalid choice, try agaicalculation.n : 1 Please enter a number: -24 Your number is negative. the signed magnitude of the number is : 111000 Complimenting the bits leaves: 100111 Add 1 bit for a final answer of: 101000 Choose from the menu below: 1.) calculate the two's compliment 2.) exit Menu Choice: 1 Please enter a number: 37 Your number is positive. The two's complement of the number is: 0100101
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. Please use simple stuff in the program in c++!! I repeat, make it very simple. no arrays, functions, etc.. The prog should consist of a fair amount of iterative loops. The program must not be to sophisicated, as this program is for a beginner's course. Please don't use: Arrays, too many funtions, and anything else you think wouldn;t be used in a beginning course. I must have it by 8:00 pm central time. After that it'll be to late, cause I'm leaving monday at 5:00 am(it's due monday afternoon).
## Platform
unix, windows 2000
## Deadline information
The prog should consist of a fair amount of iterative loops. The program must not be to sophisicated, as this program is for a beginner's course. Please don't use: Arrays, too many funtions, and anything else you think wouldn;t be used in a beginning course. I must have it by 8:00 pm central time. After that it'll be to late, cause I'm leaving monday at 5:00 am(it's due monday afternoon).