Lab 5

10 points

The Problem

Create a windows program that is a calculator in a dialog box similar to the windows calculator. Your calculator should look like this.

Scenarios are due one week before the lab.

The Details

Your windows project should be created by AppExpert with the Dialog Client Windows Model selected. When using this model you may deselect the Document/View check box and all of the features to include. Use the Resource Workshop to create your dialog box, and the edit your box to appear as you see it here.

Next create a class Calculator to handle the actual operations involved with the calculations.

class Calculator
{
public:
	Calculator();
	// These update the _val by doing the specified operation with _screenVal
	int add();
	int minus();
	int times();
	int divide();
	int enter(); // processes the enter button
	void clear(); // clears both values
	int setValue(int i) //Updates the _screenVal
private:
	int _screenVal; // holds the value currently on the screen
	int _val; // holds the opperand that the screen value will be paired with
};