A little stock market game

Here is just a little game that I have made.This is my first game so I would like to know what do you guys think about it since I'm not a pro.;)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
  #include <iostream>
#include <cmath>
#include <windows.h>


using namespace std;


const float Precent_BCB=0.5;
const float Precent_FJA=0.45;
const float Precent_MCM=0.375;


int main()
{
    float profit;
    float Start=10000;
    float Precent_Profit;
    int Inventsment;
    int Week_One;
    int days=0;
    cout<<"Welcome!!!You are curently playing Bossnians's stock simulator.you quit by pressing -1."<<endl;
    cout<<"You start with 10000 $.";
    system("color 03");
    Sleep(1750);
    while(Week_One!=-1){
    cout<<endl<<"First,we need to decide where will you invenst your money."<<endl;
    Sleep(2000);
    cout<<"Choices are: "<<endl;
    system("color 02");
    Sleep(3000);
    cout<<endl<<"//Bangcock City bank(1)///"<<endl;
    system("color 04");
    Sleep(1500);
    cout<<endl<<"**Fruiti Juices of America(2)**"<<endl;
    system("color 05");
    Sleep(1500);
    cout<<endl<<"||Mud and Coal Mines(3)||"<<endl;
    system("color 06");
    Sleep(1700);
    cout<<endl<<"What is your choice: ";
    cin>>Week_One;
    if(Week_One=-1){
        days=76;
    }else if(Week_One!=-1){
    cout<<endl<<"Congratulations,you have sucssefuly invested in "<<Week_One<<endl;
    system("color 07");
    Sleep(800);
    cout<<"How much will you invenst in "<<Week_One<<" :";
    cin>>Inventsment;
    }

    while(days<=7){
            switch(Week_One){
case 1:
    profit=Inventsment*pow(1+Precent_BCB, days);
    cout<<"Profit:"<<profit<<endl;
    break;
case 2:
    profit=Inventsment*pow(1+Precent_FJA, days);
    cout<<"Profit:"<<profit<<endl;
    break;
case 3:
    profit=Inventsment*pow(1+Precent_MCM, days);
    cout<<"Profit:"<<profit<<endl;
    break;
default:
    cout<<"You haven't invenst in anything"<<endl;
    }
    Start+=profit;
    days++;
    if(days==5){
        cout<<"Oh.Looks like somebody didn't pay taxes."<<endl;
        cout<<"Fine is 50000 $";
        Start-=5000;
    }
    }
    if(Week_One!=-1){
    cout<<"Congratulations.You curently have "<<Start<<endl;
}
}
}
Last edited on
Topic archived. No new replies allowed.