fork(8) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define TAX .05
  5. #define VERSA_PLANETARY_PRICE 34.99
  6. #define COLSON_PRICE 4.99
  7. #define MAG_ENCODER_PRICE 39.99
  8.  
  9. int main() {
  10.  
  11. int num_planetaries = 4;
  12. int num_colsons = 6;
  13. int num_encoders = 2;
  14.  
  15. //calculate the sum of each item total
  16.  
  17.  
  18. //calculate the final price including tax
  19.  
  20.  
  21. //print a message so Alex knows the final price he has to pay
  22.  
  23.  
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 4508KB
stdin
Standard input is empty
stdout
Standard output is empty