Computer science- calculation/conversion problems.

Click For Summary

Discussion Overview

The discussion revolves around calculation and conversion problems related to computer science, specifically focusing on interpreting hexadecimal values for variables of different data types, such as float and char. The context is a preparation for a midterm exam in an introductory class.

Discussion Character

  • Homework-related

Main Points Raised

  • One participant presents two problems involving the conversion of hexadecimal values to their respective variable types, seeking guidance on how to approach them.
  • Another participant suggests using Wikipedia as a resource for understanding computer numbering formats.
  • A later reply indicates that the participant has successfully solved one of the problems but remains uncertain about the other.
  • Another suggestion is made to use a specific converter related to IEEE 754 for floating-point representation.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the solution to the first problem, as one participant remains unsure about how to proceed with it.

Contextual Notes

There are limitations in the discussion, including the lack of detailed explanations for the conversion processes and the specific assumptions regarding the representation of the float variable.

clook
Messages
32
Reaction score
0
13.) assume that a the content of the memory location for a variable declared as "float b;" is "8311 0000" in hexadecimal. What is the actual value of b?

14.) assume that the content of the memory location for a variable declared as "char c:" is "65" in hexadecimal. What is the actual value of c?



this is the only thing i don't know how to do for tomorrow's midterm (this is an intro class)

yeah, they're probably easy, but i don't know where to start some guidance would be appreciated. :-p
 
Physics news on Phys.org

Similar threads

  • · Replies 3 ·
Replies
3
Views
16K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
Replies
15
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
9K
Replies
29
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K