Wednesday, January 30, 2013

Project 2: Degree Conversion Assignment

Textbook page 91, problem 26

Here are some instructions.

1. You don't have to define any class in this project. We just need basic arithmetic programming.
2. You could use hard-coded degrees in your program. In other words, you don't have to ask user to input anything with "cin". ( However, if you could, it would be better but no extra credit.)
3. You do have to use "cout" to show your results on the screen.
4. Take care of the "integer division" issue.

Due time would next Wednesday 2/6/13 midnight.


Wednesday, January 23, 2013

Project1: Hello World


Hello world on your machine.
Upload both the cpp file and executable.

Windows:
Follow the instruction I uploaded to install the MinGW.

Linux:
In your terminal, type
sudo apt-get install build-essential

MacOS:
Install Xcode where you could download from 
https://developer.apple.com/downloads/index.action
Fill in the survey forms to get access to developer zone.

Then search the corresponding version based on your system.
Mountain Lion or Lion  Xcode 4.5.2
Snow leopard  Xcode 3.2.2 developer tools
Leopard  Xcode 2.5

Then in the terminal, do what I did on class.



Friday, January 18, 2013

Written Homework 1


Page 32    10(a)(b)  11(a)(b) 12(a)(b)  13(a)(b)   
10011.11012 = ?10
8.12510 = ?2

Due: 
Friday, 25 January 2013, 10:10 AM

Go to Dropbox to check out the scanned questions on your textbook.
Create a text file(word doc, rtf or txt), put in your answers and upload to dropbox before the due date.


Tuesday, January 15, 2013