Contains the source code from the course work throughout my undergraduate Computer Engineering degree at Brigham Young University. There is a mixture of Go, Python, C, C++, Java, VHDL, Verilog, Matlab, Bash, Assembly, etc..
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

salaried.cpp 284B

12345678910111213
  1. #include "salaried.h"
  2. #include "employee.h"
  3. using namespace std;
  4. salaried::salaried(string name, double pay_rate, int hours, string type) : employee(name, pay_rate, hours, type) {}
  5. int salaried::get_salary() {
  6. if(hours > 170/2) {
  7. return pay_rate;
  8. }
  9. return 0;
  10. }