Computer science- calculation/conversion problems.

In summary, the conversation discusses how to determine the actual value of a variable declared as a float or char, given the content of its memory location in hexadecimal form. Some guidance is requested in approaching this task.
  • #1
clook
35
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. :tongue:
 
Physics news on Phys.org
  • #4

1. What is the difference between a calculation and a conversion in computer science?

A calculation involves performing mathematical operations on numerical data, while a conversion involves changing the format or units of data. For example, calculating the sum of two numbers is a calculation, while converting from inches to centimeters is a conversion.

2. How do computers handle complex calculations?

Computers handle complex calculations through the use of algorithms and programming languages. These tools allow for precise and efficient calculations to be performed, even on large sets of data.

3. What is the importance of accuracy in computer science calculations?

Accuracy is crucial in computer science calculations as even small errors can have significant impacts on the results. Computers rely on precise calculations to perform tasks, and inaccurate calculations can lead to incorrect outputs and potential system failures.

4. How can conversion problems be solved in computer science?

Conversion problems can be solved by using built-in functions or writing custom code to convert between different units or formats. It is also important to understand the underlying principles and relationships between different types of data for successful conversions.

5. What are some common tools used for performing calculations in computer science?

Some common tools used for performing calculations in computer science include programming languages such as Python and Java, spreadsheet software like Microsoft Excel, and specialized software for scientific and financial calculations.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
12
Views
5K
  • Programming and Computer Science
Replies
29
Views
3K
  • STEM Academic Advising
Replies
1
Views
1K
  • Programming and Computer Science
Replies
5
Views
3K
  • Science and Math Textbooks
Replies
1
Views
928
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Introductory Physics Homework Help
Replies
11
Views
766
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
Back
Top