QMCS 130: Today - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

QMCS 130: Today

Description:

Ints are integers, no more or less. CPU stores the whole number part, no more ... CPU keeps a separate exponent and mantissa. Issues with scanf() and int vs double ... – PowerPoint PPT presentation

Number of Views:12
Avg rating:3.0/5.0
Slides: 5
Provided by: ricks6
Category:
Tags: qmcs | mantissa | today

less

Transcript and Presenter's Notes

Title: QMCS 130: Today


1
QMCS 130 Todays Class
  • Lab Status, Paper Status
  • Comments on Ints vs Doubles
  • Lab 7

2
Ints versus Doubles
  • Ints are integers, no more or less
  • CPU stores the whole number part, no more
  • Doubles are scientific notation
  • CPU keeps a separate exponent and mantissa
  • Issues with scanf() and int vs double
  • If you scanf(i, db) and db is a double, its
    wrong
  • It converts the text into a plain integer, no
    exponent

3
Overview of Lab 7
  • Calculating size and cost of custom shelving
  • Collect shelf length and total length
  • Fix the shelf length to meet the constraints
  • Calculate the parts you need
  • Use (remainder) to see if you must round the
    number of shelves up

4
Creative Commons License
  • This work is licensed under the Creative Commons
    Attribution-Share Alike 3.0 United States
    License. To view a copy of this license, visit
    http//creativecommons.org/licenses/by-sa/3.0/us/
    or send a letter to Creative Commons, 171 Second
    Street, Suite 300, San Francisco, California,
    94105, USA.
Write a Comment
User Comments (0)
About PowerShow.com