Advertisement
Cnvmendoza

Trade

Nov 7th, 2021 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 18.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cstdlib>
  4. #include <stdlib.h>
  5. using namespace std;
  6. //Global Var
  7. //Country Price:
  8. string country;
  9. //Prices
  10. float potPrice, oilPrice, fishPrice, woolPrice, velvetPrice, toolsPrice, spicePrice, ironPrice, flourPrice, dyesPrice, leatherworksPrice, furPrice, beerPrice, saltPrice, winePrice;
  11. //User
  12. float balance = 3000;
  13. int quantity=0;
  14. //Goods
  15. string trade_goods;
  16. string potStr = "Pottery", oilStr = "Oil", fishStr = "Fish", woolStr = "Wool", velvetStr = "Velvet", toolsStr = "Tools", spiceStr = "Spice", ironStr = "Iron", flourStr = "Flour", dyesStr = "Dyes", leatherStr = "Leatherworks", furStr = "Fur", beerStr = "Beer", saltStr = "Salt", wineStr = "Wine";
  17. float price;
  18. int inv;
  19. //Inventory
  20. int potInv=0, oilInv=0, fishInv=0, woolInv=0, velvetInv=0, toolsInv=0, spiceInv=0, ironInv=0, flourInv=0, dyesInv=0, leatherInv=0, furInv=0, beerInv=0, saltInv=0, wineInv=0;
  21. //End of Global Var //
  22. //Trade Goods
  23. void pottery(void);
  24. void oil(void);
  25. void fish(void);
  26. void wool_cloth(void);
  27. void velvet(void);
  28. void tools(void);
  29. void spice(void);
  30. void iron(void);
  31. void flour(void);
  32. void dyes(void);
  33. void leatherworks(void);
  34. void fur(void);
  35. void beer(void);
  36. void salt(void);
  37. void wine(void);
  38.  
  39. //Countries
  40. void sweden(void);
  41. void poland(void);
  42. void russia(void);
  43. void crimea(void);
  44. void saudi(void);
  45. void ukraine(void);
  46. void china(void);
  47.  
  48. //Action
  49. void trade(void);
  50. void trade2(void);
  51. void trade2P1(void);
  52. void trade2P2(void);
  53.  
  54. void loc(void);
  55.  
  56. //Main
  57. main(){
  58.     loc();
  59.    
  60. }
  61.  
  62. //Trade Prices
  63. void pottery(void){
  64.     //string potStr = "Pottery";
  65.     //void potPrice;
  66.     if (country=="Sweden") potPrice = 90;
  67.     else if (country=="Poland") potPrice = 157.5;
  68.     else if (country=="Russia") potPrice = 157.5;
  69.     else if (country=="Crimea") potPrice = 99;
  70.     else if (country=="Saudi") potPrice = 67.5;
  71.     else if (country=="Ukraine") potPrice = 99;
  72.     else if (country=="China") potPrice = 90;
  73. }
  74.  
  75. void oil(void){
  76.     //string oilStr = "Oil";
  77.     //void oilPrice;
  78.     if (country=="Sweden") oilPrice = 400;
  79.     else if (country=="Poland") oilPrice = 300;
  80.     else if (country=="Russia") oilPrice = 700;
  81.     else if (country=="Crimea") oilPrice = 700;
  82.     else if (country=="Saudi") oilPrice = 440;
  83.     else if (country=="Ukraine") oilPrice = 440;
  84.     else if (country=="China") oilPrice = 400;
  85. }
  86.  
  87. void fish(void){
  88.     //string fishStr = "Fish";
  89.     //void fishPrice;
  90.     if (country=="Sweden") fishPrice = 50;
  91.     else if (country=="Poland") fishPrice = 55;
  92.     else if (country=="Russia") fishPrice = 87.5;
  93.     else if (country=="Crimea") fishPrice = 55;
  94.     else if (country=="Saudi") fishPrice = 87.5;
  95.     else if (country=="Ukraine") fishPrice = 55;
  96.     else if (country=="China") fishPrice = 50;
  97. }
  98.  
  99. void wool_cloth(void){
  100.     //string woolStr = "Wool Cloth";
  101.     //void woolPrice;
  102.     if (country=="Sweden") woolPrice = 240;
  103.     else if (country=="Poland") woolPrice = 180;
  104.     else if (country=="Russia") woolPrice = 180;
  105.     else if (country=="Crimea") woolPrice = 264;
  106.     else if (country=="Saudi") woolPrice = 264;
  107.     else if (country=="Ukraine") woolPrice = 264;
  108.     else if (country=="China") woolPrice = 240;
  109. }
  110.  
  111. void velvet(void){
  112.     //string velvetStr = "Velvet";
  113.     //void velvetPrice;
  114.     if (country=="Sweden") velvetPrice = 950;
  115.     else if (country=="Poland") velvetPrice = 1662.5;
  116.     else if (country=="Russia") velvetPrice = 1662.5;
  117.     else if (country=="Crimea") velvetPrice = 990;
  118.     else if (country=="Saudi") velvetPrice = 712.5;
  119.     else if (country=="Ukraine") velvetPrice = 990;
  120.     else if (country=="China") velvetPrice = 950;
  121. }
  122.  
  123. void tools(void){
  124.     //string toolsStr = "Tools";
  125.     //void toolsPrice;
  126.     if (country=="Sweden") toolsPrice = 400;
  127.     else if (country=="Poland") toolsPrice = 300;
  128.     else if (country=="Russia") toolsPrice = 700;
  129.     else if (country=="Crimea") toolsPrice = 440;
  130.     else if (country=="Saudi") toolsPrice = 440;
  131.     else if (country=="Ukraine") toolsPrice = 440;
  132.     else if (country=="China") toolsPrice = 400;
  133. }
  134.  
  135. void spice(void){
  136.     //string spiceStr = "Spice";
  137.     //void spicePrice;
  138.     if (country=="Sweden") spicePrice = 800;
  139.     else if (country=="Poland") spicePrice = 1400;
  140.     else if (country=="Russia") spicePrice = 600;
  141.     else if (country=="Crimea") spicePrice = 880;
  142.     else if (country=="Saudi") spicePrice = 600;
  143.     else if (country=="Ukraine") spicePrice = 880;
  144.     else if (country=="China") spicePrice = 800;
  145. }
  146.  
  147. void iron(void){
  148.     //string ironStr = "Iron";
  149.     //void ironPrice;
  150.     if (country=="Sweden")  ironPrice = 220;
  151.     else if (country=="Poland") ironPrice = 365;
  152.     else if (country=="Russia") ironPrice = 365;
  153.     else if (country=="Crimea") ironPrice = 365;
  154.     else if (country=="Saudi") ironPrice = 165;
  155.     else if (country=="Ukraine") ironPrice = 242;
  156.     else if (country=="China") ironPrice = 220;
  157. }
  158.  
  159. void flour(void){
  160.     //string flourStr = "Flour";
  161.     //void flourPrice;
  162.     if (country=="Sweden") flourPrice = 50;
  163.     else if (country=="Poland") flourPrice = 37.5;
  164.     else if (country=="Russia") flourPrice = 87.5;
  165.     else if (country=="Crimea") flourPrice = 55;
  166.     else if (country=="Saudi") flourPrice = 87.5;
  167.     else if (country=="Ukraine") flourPrice = 55;
  168.     else if (country=="China") flourPrice = 50;
  169. }
  170.  
  171. void dyes(void){
  172.     //string dyesStr = "Dyes";
  173.     //void dyesPrice;
  174.     if (country=="Sweden") dyesPrice = 180;
  175.     else if (country=="Poland") dyesPrice = 198;
  176.     else if (country=="Russia") dyesPrice = 135;
  177.     else if (country=="Crimea") dyesPrice = 198;
  178.     else if (country=="Saudi") dyesPrice = 198;
  179.     else if (country=="Ukraine") dyesPrice = 198;
  180.     else if (country=="China") dyesPrice = 180;
  181. }
  182.  
  183. void leatherworks(void){
  184.     //string leatherworksStr = "Leatherworks";
  185.     //void leatherworksPrice;
  186.     if (country=="Sweden") leatherworksPrice = 180;
  187.     else if (country=="Poland") leatherworksPrice = 198;
  188.     else if (country=="Russia") leatherworksPrice = 315;
  189.     else if (country=="Crimea") leatherworksPrice = 135;
  190.     else if (country=="Saudi") leatherworksPrice = 135;
  191.     else if (country=="Ukraine") leatherworksPrice = 198;
  192.     else if (country=="China") leatherworksPrice = 180;
  193. }
  194.  
  195. void fur(void){
  196.     //string furStr = "Fur";
  197.     //void furPrice;
  198.     if (country=="Sweden") furPrice = 390;
  199.     else if (country=="Poland") furPrice = 429;
  200.     else if (country=="Russia") furPrice = 292.5;
  201.     else if (country=="Crimea") furPrice = 429;
  202.     else if (country=="Saudi") furPrice = 429;
  203.     else if (country=="Ukraine") furPrice = 429;
  204.     else if (country=="China") furPrice = 390;
  205. }
  206.  
  207. void beer(void){
  208.     //string beerStr = "Beer";
  209.     //void beerPrice;
  210.     if (country=="Sweden") beerPrice = 100;
  211.     else if (country=="Poland") beerPrice = 75;
  212.     else if (country=="Russia") beerPrice = 175;
  213.     else if (country=="Crimea") beerPrice = 175;
  214.     else if (country=="Saudi") beerPrice = 175;
  215.     else if (country=="Ukraine") beerPrice = 110;
  216.     else if (country=="China") beerPrice = 100;
  217. }
  218.  
  219. void salt(void){
  220.     //string saltStr = "Salt";
  221.     //void saltPrice;
  222.     if (country=="Sweden") saltPrice = 220;
  223.     else if (country=="Poland") saltPrice = 165;
  224.     else if (country=="Russia") saltPrice = 385;
  225.     else if (country=="Crimea") saltPrice = 165;
  226.     else if (country=="Saudi") saltPrice = 165;
  227.     else if (country=="Ukraine") saltPrice = 242;
  228.     else if (country=="China") saltPrice = 220;
  229. }
  230.  
  231. void wine(void){
  232.     //string wineStr = "Wine";
  233.     //void winePrice;
  234.     if (country=="Sweden") winePrice = 200;
  235.     else if (country=="Poland") winePrice = 220;
  236.     else if (country=="Russia") winePrice = 150;
  237.     else if (country=="Crimea") winePrice = 220;
  238.     else if (country=="Saudi") winePrice = 220;
  239.     else if (country=="Ukraine") winePrice = 220;
  240.     else if (country=="China") winePrice = 200;
  241. }
  242.  
  243. //Act
  244. void loc(void){
  245.     int opt, opt1;
  246.     //float balance;
  247.     cout << endl << setprecision(2) << fixed << "Balance: " << balance << endl;
  248.     cout << "1. Trade" << endl;
  249.     cout << "2. Check Inventory" << endl;
  250.     cout << endl << "What do you want to do? ";
  251.     cin >> opt;
  252.     if (opt==1){
  253.         cout << endl << "Notes:" << endl;
  254.         cout << "Sweden's exports and imports are well-met." << endl << endl;
  255.        
  256.         cout << "Poland's Imports and Exports" << endl;
  257.         cout << "Exports: Oil, Beer, Flour, Tools" << endl;
  258.         cout << "Imports: Velvet, Iron, Spice, Pottery" << endl << endl;
  259.        
  260.         cout << "Russia's Imports and Exports" << endl;
  261.         cout << "Exports: Furs, Dyes, Spice, Wool" << endl;
  262.         cout << "Imports: Oil, Fish, Salt, Velvet, Flour, Pottery, Beer, Tools, Iron, Leatherworks" << endl << endl;
  263.        
  264.         cout << "Crimea's Imports and Exports" << endl;
  265.         cout << "Exports: Leatherworks, Salt, Wine" << endl;
  266.         cout << "Imports: Iron, Oil, Beer" << endl << endl;
  267.        
  268.         cout << "Saudi Arabia's Imports and Exports . . . " << endl;
  269.         cout << "Exports: Salt, Pottery, Velvet" << endl;
  270.         cout << "Imports: Flour, Beer, Fish" << endl << endl;
  271.        
  272.         cout << "China's exports and imports are well-met." << endl << endl;
  273.        
  274.         cout << "Ukraine's exports and imports are slightly well-met." << endl << endl;
  275.        
  276.        
  277.        
  278.        
  279.        
  280.         cout << "1. Sweden" << endl;
  281.         cout << "2. Poland" << endl;
  282.         cout << "3. Russia" << endl;
  283.         cout << "4. Crimea" << endl;
  284.         cout << "5. Saudi Arabia" << endl;
  285.         cout << "6. Ukraine" << endl;
  286.         cout << "7. China" << endl;
  287.         cout << endl << "Which countries do you want to trade with? ";
  288.         cin >> opt1;
  289.         if (opt1==1) sweden();
  290.         else if (opt1==2) poland();
  291.         else if (opt1==3) russia();
  292.         else if (opt1==4) crimea();
  293.         else if (opt1==5) saudi();
  294.         else if (opt1==6) ukraine();
  295.         else if (opt1==7) china();
  296.     }
  297.     else if (opt==2){
  298.         cout << "Checking inventory . . . " << endl;
  299.         cout << "You currently have . . . " << endl;
  300.         cout << "1. Pottery: " << potInv << endl;
  301.         cout << "2. Oil: " << oilInv << endl;
  302.         cout << "3. Fish: " << fishInv << endl;
  303.         cout << "4. Wool Cloth: " << woolInv << endl;
  304.         cout << "5. Velvet: " << velvetInv << endl;
  305.         cout << "6. Tools: " << toolsInv << endl;
  306.         cout << "7. Spice: " << spiceInv << endl;
  307.         cout << "8. Iron: " << ironInv << endl;
  308.         cout << "9. Flour: " << flourInv << endl;
  309.         cout << "10. Dyes: " << dyesInv << endl;
  310.         cout << "11. Leatherworks: " << leatherInv << endl;
  311.         cout << "12. Fur: " << furInv << endl;
  312.         cout << "13. Beer: " << beerInv << endl;
  313.         cout << "14. Salt: " << saltInv << endl;
  314.         cout << "15. Wine: " << wineInv << endl;
  315.         system("pause");
  316.         loc();
  317.     }
  318.    
  319. }
  320.  
  321. void trade(void){
  322.     cout << endl << "1. Buy" << endl;
  323.     cout << endl << "2. Sell" << endl;
  324.     cout << endl << "3. Return to Start" << endl;
  325. }
  326.  
  327. void trade2(void){
  328.     cout << endl << "Buy Goods " << endl;
  329.     cout << setprecision(2) << fixed;
  330.     cout << "1. Pottery " << potPrice << endl;
  331.     cout << "2. Oil " << oilPrice << endl;
  332.     cout << "3. Fish " << fishPrice << endl;
  333.     cout << "4. Wool Cloth " << woolPrice << endl;
  334.     cout << "5. Velvet " << velvetPrice << endl;
  335.     cout << "6. Tools " << toolsPrice << endl;
  336.     cout << "7. Spice " << spicePrice << endl;
  337.     cout << "8. Iron " << ironPrice << endl;
  338.     cout << "9. Flour " << flourPrice << endl;
  339.     cout << "10. Dyes " << dyesPrice << endl;
  340.     cout << "11. Leatherworks " << leatherworksPrice << endl;
  341.     cout << "12. Fur " << furPrice << endl;
  342.     cout << "13. Beer " << beerPrice << endl;
  343.     cout << "14. Salt " << saltPrice << endl;
  344.     cout << "15. Wine " << winePrice << endl;
  345. }
  346.  
  347. void trade2P1(void){
  348.     string opt;
  349.     trade2();
  350.     cout << "Choose Trade Goods to Buy: ";
  351.     cin >> opt;
  352.     if (opt=="1"){
  353.             trade_goods = potStr;
  354.             price = potPrice;
  355.         }
  356.         else if (opt=="2"){
  357.             trade_goods = oilStr;
  358.             price = oilPrice;
  359.         }
  360.         else if (opt=="3"){
  361.             trade_goods = fishStr;
  362.             price = fishPrice;
  363.         }
  364.         else if (opt=="4"){
  365.             trade_goods = woolStr;
  366.             price = woolPrice;
  367.         }
  368.         else if (opt=="5"){
  369.             trade_goods = velvetStr;
  370.             price = velvetPrice;
  371.         }
  372.         else if (opt=="6"){
  373.             trade_goods = toolsStr;
  374.             price = toolsPrice;
  375.         }
  376.         else if (opt=="7"){
  377.             trade_goods = spiceStr;
  378.             price = spicePrice;
  379.         }
  380.         else if (opt=="8"){
  381.             trade_goods = ironStr;
  382.             price = ironPrice;
  383.         }
  384.         else if (opt=="9"){
  385.             trade_goods = flourStr;
  386.             price = flourPrice;
  387.         }
  388.         else if (opt=="10"){
  389.             trade_goods = dyesStr;
  390.             price = dyesPrice;
  391.         }
  392.         else if (opt=="11"){
  393.             trade_goods = leatherStr;
  394.             price = leatherworksPrice;
  395.         }
  396.         else if (opt=="12"){
  397.             trade_goods = furStr;
  398.             price = furPrice;
  399.         }
  400.         else if (opt=="13"){
  401.             trade_goods = beerStr;
  402.             price = beerPrice;
  403.         }
  404.         else if (opt=="14"){
  405.             trade_goods = saltStr;
  406.             price = saltPrice;
  407.         }
  408.         else if (opt=="15"){
  409.             trade_goods = wineStr;
  410.             price = winePrice;
  411.         }
  412.         cout << "How many " << trade_goods << " do you want to buy? ";
  413.         cin >> quantity;
  414.         cout << endl << "You bought " << quantity << " " << trade_goods << " for " << price*quantity << endl;
  415.         balance -= price*quantity;
  416.         //cout << endl << "Balance: " << balance << endl;
  417.         if (opt=="1") potInv += quantity;
  418.         else if (opt=="2") oilInv += quantity;
  419.         else if (opt=="3") fishInv += quantity;
  420.         else if (opt=="4") woolInv += quantity;
  421.         else if (opt=="5") velvetInv += quantity;
  422.         else if (opt=="6") toolsInv += quantity;
  423.         else if (opt=="7") spiceInv += quantity;
  424.         else if (opt=="8") ironInv += quantity;
  425.         else if (opt=="9") flourInv += quantity;
  426.         else if (opt=="10") dyesInv += quantity;
  427.         else if (opt=="11") leatherInv += quantity;
  428.         else if (opt=="12") furInv += quantity;
  429.         else if (opt=="13") beerInv += quantity;
  430.         else if (opt=="14") saltInv += quantity;
  431.         else if (opt=="15") wineInv += quantity;
  432.         loc();
  433. }
  434.  
  435. void trade2P2(void){
  436.     string opt;
  437.     trade2();
  438.     cout << "Choose Trade Goods to Sell: ";
  439.     cin >> opt;
  440.     if (opt=="1"){
  441.             trade_goods = potStr;
  442.             price = potPrice;
  443.         }
  444.         else if (opt=="2"){
  445.             trade_goods = oilStr;
  446.             price = oilPrice;
  447.         }
  448.         else if (opt=="3"){
  449.             trade_goods = fishStr;
  450.             price = fishPrice;
  451.         }
  452.         else if (opt=="4"){
  453.             trade_goods = woolStr;
  454.             price = woolPrice;
  455.         }
  456.         else if (opt=="5"){
  457.             trade_goods = velvetStr;
  458.             price = velvetPrice;
  459.         }
  460.         else if (opt=="6"){
  461.             trade_goods = toolsStr;
  462.             price = toolsPrice;
  463.         }
  464.         else if (opt=="7"){
  465.             trade_goods = spiceStr;
  466.             price = spicePrice;
  467.         }
  468.         else if (opt=="8"){
  469.             trade_goods = ironStr;
  470.             price = ironPrice;
  471.         }
  472.         else if (opt=="9"){
  473.             trade_goods = flourStr;
  474.             price = flourPrice;
  475.         }
  476.         else if (opt=="10"){
  477.             trade_goods = dyesStr;
  478.             price = dyesPrice;
  479.         }
  480.         else if (opt=="11"){
  481.             trade_goods = leatherStr;
  482.             price = leatherworksPrice;
  483.         }
  484.         else if (opt=="12"){
  485.             trade_goods = furStr;
  486.             price = furPrice;
  487.         }
  488.         else if (opt=="13"){
  489.             trade_goods = beerStr;
  490.             price = beerPrice;
  491.         }
  492.         else if (opt=="14"){
  493.             trade_goods = saltStr;
  494.             price = saltPrice;
  495.         }
  496.         else if (opt=="15"){
  497.             trade_goods = wineStr;
  498.             price = winePrice;
  499.         }
  500.         cout << "How many " << trade_goods << " do you want to sell? ";
  501.         cin >> quantity;
  502.         cout << endl << "You sold " << quantity << " " << trade_goods << " for " << price*quantity << endl;
  503.         balance += price*quantity;
  504.         //cout << endl << "Balance: " << balance << endl;
  505.         if (opt=="1") potInv -= quantity;
  506.         else if (opt=="2") oilInv -= quantity;
  507.         else if (opt=="3") fishInv -= quantity;
  508.         else if (opt=="4") woolInv -= quantity;
  509.         else if (opt=="5") velvetInv -= quantity;
  510.         else if (opt=="6") toolsInv -= quantity;
  511.         else if (opt=="7") spiceInv -= quantity;
  512.         else if (opt=="8") ironInv -= quantity;
  513.         else if (opt=="9") flourInv -= quantity;
  514.         else if (opt=="10") dyesInv -= quantity;
  515.         else if (opt=="11") leatherInv -= quantity;
  516.         else if (opt=="12") furInv -= quantity;
  517.         else if (opt=="13") beerInv -= quantity;
  518.         else if (opt=="14") saltInv -= quantity;
  519.         else if (opt=="15") wineInv -= quantity;
  520.         loc();
  521. }
  522.  
  523. //Countries
  524. void sweden(void){
  525.     string opt;
  526.     country="Sweden";
  527.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  528.     quantity = 0;
  529.     cout << endl << "You have chosen to trade with Sweden . . . " << endl;
  530.  
  531.     trade();
  532.     cout << "Enter Input: ";
  533.     cin >> opt;
  534.     //buy/sell
  535.     if (opt=="1"){
  536.         trade2P1();
  537.     }
  538.     else if (opt=="2"){
  539.         trade2P2();
  540.     }
  541.     else if (opt=="3"){
  542.         loc();
  543.     }
  544. }
  545.  
  546. void poland(void){
  547.     string opt;
  548.     country="Poland";
  549.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  550.     quantity = 0;
  551.     cout << endl << "You have chosen to trade with Poland . . . " << endl;
  552.  
  553.     trade();
  554.     cout << "Enter Input: ";
  555.     cin >> opt;
  556.     //buy/sell
  557.     if (opt=="1"){
  558.         trade2P1();
  559.     }
  560.     else if (opt=="2"){
  561.         trade2P2();
  562.     }
  563.     else if (opt=="3"){
  564.         loc();
  565.     }
  566. }
  567.  
  568. void russia(void){
  569.     string opt;
  570.     country="Russia";
  571.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  572.     quantity = 0;
  573.     cout << endl << "You have chosen to trade with Russia . . . " << endl;
  574.  
  575.     trade();
  576.     cout << "Enter Input: ";
  577.     cin >> opt;
  578.     //buy/sell
  579.     if (opt=="1"){
  580.         trade2P1();
  581.     }
  582.     else if (opt=="2"){
  583.         trade2P2();
  584.     }
  585.     else if (opt=="3"){
  586.         loc();
  587.     }
  588. }
  589.  
  590. void crimea(void){
  591.     string opt;
  592.     country="Crimea";
  593.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  594.     quantity = 0;
  595.     cout << endl << "You have chosen to trade with Crimea . . . " << endl;
  596.    
  597.     trade();
  598.     cout << "Enter Input: ";
  599.     cin >> opt;
  600.     //buy/sell
  601.     if (opt=="1"){
  602.         trade2P1();
  603.     }
  604.     else if (opt=="2"){
  605.         trade2P2();
  606.     }
  607.     else if (opt=="3"){
  608.         loc();
  609.     }
  610. }
  611.  
  612. void saudi(void){
  613.     string opt;
  614.     country="Saudi";
  615.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  616.     quantity = 0;
  617.     cout << endl << "You have chosen to trade with Saudi Arabia . . . " << endl;
  618.    
  619.     trade();
  620.     cout << "Enter Input: ";
  621.     cin >> opt;
  622.     //buy/sell
  623.     if (opt=="1"){
  624.         trade2P1();
  625.     }
  626.     else if (opt=="2"){
  627.         trade2P2();
  628.     }
  629.     else if (opt=="3"){
  630.         loc();
  631.     }
  632. }
  633.  
  634. void ukraine(void){
  635.     string opt;
  636.     country="Ukraine";
  637.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  638.     quantity = 0;
  639.     cout << endl << "You have chosen to trade with Ukraine . . . " << endl;
  640.    
  641.     trade();
  642.     cout << "Enter Input: ";
  643.     cin >> opt;
  644.     //buy/sell
  645.     if (opt=="1"){
  646.         trade2P1();
  647.     }
  648.     else if (opt=="2"){
  649.         trade2P2();
  650.     }
  651.     else if (opt=="3"){
  652.         loc();
  653.     }
  654. }
  655.  
  656. void china(void){
  657.     string opt;
  658.     country="China";
  659.     pottery();oil();fish();wool_cloth();velvet();tools();spice();iron();flour();dyes();leatherworks();fur();beer();salt();wine();
  660.     quantity = 0;
  661.    
  662.     trade();
  663.     cout << "Enter Input: ";
  664.     cin >> opt;
  665.     //buy/sell
  666.     if (opt=="1"){
  667.         trade2P1();
  668.     }
  669.     else if (opt=="2"){
  670.         trade2P2();
  671.     }
  672.     else if (opt=="3"){
  673.         loc();
  674.     }
  675. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement