i wrote this module code but not sure if this is how you write a module. Is there anything i have missed??
int FirstModule(int section)
{
cout<< "Pick a number " <<endl;
cout<<endl;
cin>>number;
if (number == 1)
value = 1.00;
else if (number == 2)
value = 1.10;
else if (number == 3)
value = 1.20;
else if (number == 4)
value = 1.30;
else if (number == 5)
value = 1.40;
else if (number ==6)
value = 12345; //to close the program down
}