Assignment 4

Home Windows C++ 241 C++ 242 Contact Info Contents

Assignment 4 - February 3

Up

This assignment has three parts. The first part is from Intermediate Tutorial 3 - Working with Graphics. The second part is based on our class discussion regarding the sizes of stored images. The third part relates to the handout How to Determine the Version of Windows 95.

Part 1 - Working With Graphics

  1. Complete Tutorial Exercises 6 and 7 on page I-83. Save the result as a bitmap (.bmp) file and send it to me. NOTE: you will lose credit if you send it as any other type of file.

  2. Extra Credit - Experiment with saving the file in various ways using any graphics software at your disposal. Record the type of file you used and what the resulting file size was.

Part 2 - Image Sizes

Answer the following questions about an image which has a size of 320 x 240 pixels.

  1. How many pixels does the image  contain?

  2. If the image is saved as 24 bits per pixel, with no compression, what will be the approximate size of the resulting file?

  3. If the image is saved using only 256 colors, with no compression,

    1. What will be the size of the file?

    2. Will the image appear different? Explain your answer? 

  4. Assume the image is saved as a file in GIF format

    1. Will it be larger or smaller than it was for question 2? Explain your answer.

    2. Will it be larger or smaller than it was for question 3? Explain your answer.

  5. If image is a photograph to be displayed on a web page, what format would you use for it? Why?

  6. If the image is a logo for your firm with an irregular border. and you want to be display it on a web page so that the underlying background shows all around it, what format would you use? Why?

Part 3 - Version of Windows 95

If you have a computer at home with Windows 95 installed, you should use it for this exercise. Otherwise, use one of the lab computers - but be sure to pick a lab that has Windows 95 rather than NT!

Follow the instructions in How to Determine the Version of Windows 95 to find out which version of Windows 95 is installed. What is your version number? What does this mean, according to the handout? If your version is 4.00.950B, follow the additional steps to decide exactly which release you have.

Up

Home Windows C++ 241 C++ 242 Contact Info Contents

Copyright © 2000  Charlie Poole. All rights reserved.
Revised: July 15, 2002 - cpoole@ctc.edu