View Single Post
Old 04-01-2005, 02:22 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Why don't you start with the core of the app first? Keep it simple, then combine these functions (I've implemented one as a sample on how simple it can be):
Code:
#include <iostream>

using namespace std;

//--
const double FALLSPRING_COST = 30.00;
const double WINTERSUMMER_COST = 27.00;
const double PARK_FALLSPRING_COST = 75.00;
const double PARK_WINTERSUMMER_COST = 45.00;
const double ENROLL_CALI = 26.00;
const double ENROLL_US = 149.00;
const double ENROLL_VISA = 171.00;
const double REFUND_FALLSPRING =  10.00;
const double REFUND_WINTERSUMMER = 9.00;
//--

//fsws true = FALLSPRING COST, false is WINTERSUMMER.
double student_services_cost(bool fsws);
double parking_cost(bool fsws);
double student_sticker_refund(bool fsws);
//r: 'c' =  california, 'u' = US residents, 'v' =  visa holders;
double enrollment_cost(char r);

//---------------------------------------------

int main()
{
    
  return 0;
}

//----------------------------------------------

double student_services_cost(bool fsws)
{
   if(fsws == true)
   {
      return FALLSPRING_COST;
   }
   return WINTERSUMMER_COST;
}

//----------------------------------------------

double parking_cost(bool fsws)
{
}  

//----------------------------------------------

double student_sticker_refund(bool fsws)
{
}

//----------------------------------------------

double enrollment_cost(char r)
{
}
Make a neat menu later.
__________________
Valmont is offline   Reply With Quote