// HPCalculator Problem // Source code file: MainActivity.java package it372.hpcalculator; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import java.util.Stack; public class MainActivity extends AppCompatActivity { private long displayBuffer = 0; private Stack stack = new Stack( ); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } // Click event handler for all digit buttons. public void onClickDigit(View view) { } // Enter button pushes a long onto the stack. public void onClickEnter(View view) { } // C button sets the display to zero public void onClickClear(View view) { } // CA button clears both the display // and the stack public void onClickClearAll(View view) { } // + button adds display and top of stack, // popping the stack and placing the sum // in the display public void onClickAdd(View view) { } // - button subtracts display from top of stack, // popping the stack and placing the difference // in the display public void onClickSubt(View view) { } // * button multiplies display and top of stack, // popping the stack and placing the product // in the display public void onClickMult(View view) { } // / button divides display by top of stack, // popping the stack and placing the quotient // in the display; what should you do if // divide by zero occurs? public void onClickDivide(View view) { } }