Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 1.63 KB

2022Fhw.md

File metadata and controls

57 lines (49 loc) · 1.63 KB

HW For CPE-553 (C++) 2022F

HW0

  1. Follow instructions for installing software for C++ class
  2. If you are on windows, make sure you can get into a bash shell (msys2) and type g++ -version. Make sure the version is at least 9.0
  3. Set up git
  4. Clone the repository for the course materials and homework
  • bash git clone github.com/stevensdeptece/CPE553-CPP
  • bash git clone github.com/stevensdeptece/CPE-553hw

Week 1

  1. Read notes sections on integer types (int, long, short, char)
  2. Read notes sections on floating point types (float, double, long double)
  3. Read notes sections on standardized types (uint8_t, uint16_t, uint32_t, uint64_t,...)
  4. Read notes on statements if(), while(), for(), do..while()
  5. Review what we discussed about overflow
  6. Predict what you should see for the following code, compile and be ready to discuss
uint8_t a = 254;
a = a + 1;
cout << a << '\n';
a = a + 1;
cout << a << '\n';
uint16_t b = 65534;
cout << (b + 1) << (b + 2) << '\n';
b = b + 1;
cout << b << '\n';
b = b + 1;
cout << b << '\n';
  1. What is the largest number for: 1.1 uint8_t 1.1 uint16_t 1.1 uint32_t 1.1 uint64_t 1.1 int8_t 1.1 int16_t 1.1 int32_t 1.1 int64_t
  2. Implement the problems assigned in Canvas
  3. Find the bug 10summation.cc
  4. Find the bug 14summation2.cc

Week 2

  1. Read notes sections on floating point library functions
  2. Read notes sections on inf and nan
  3. Predict what you should see for the following code:
  1. Implement the problems assigned in Canvas
  2. Find the bug 12fpcount.cc

Week 3