查看: 533|回复: 0

求 计算机科学的师哥师姐 给我帮助

[复制链接]
发表于 2011-9-27 13:01:11 | 显示全部楼层 |阅读模式
本人有作业问题: QQ:112518964
因为刚刚学习这个计算机科学专业所以!
有些东西束手无策
:作业 题目:
Converter
4. Write a Java program that acceptsas input an 8 character string that represents the 32-bit internalrepresentation (2's complement) of an integer, and produces and prints thecorresponding integer using standard integer output. Allow the user to repeatthe conversions if they desire. For examples a typical sequence could be:
Please enter the internalrepresentation: FFFFFFFA
The corresponding integer is: -6

Do you wish to continue (Y/N): Y
Please enter the internalrepresentation: 000000C2
The corresponding integer is: 194

Do you wish to continue (Y/N): N
Thank you.
You may NOT use any classes that dothe conversion. You may use any I/O facilities you choose

您需要登录后才可以回帖 登录 | 注册

本版积分规则

法律申明|用户条约|隐私声明|手机版|小黑屋|联系我们|www.kwcg.ca

GMT-5, 2026-6-10 03:07 , Processed in 0.018787 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2021 Comsenz Inc.  

快速回复 返回顶部 返回列表