int main(void) {
	
	initializeAccount();
	getBalance();
	//Perform first transaction
	
	askCustomer();
	updateAccount(amount);
	getBalance();
	//Perform second transaction
	
	askCustomer();
	updateAccount(amount);
	addGift(5.0);
	getBalance();
	//Perform third transaction
	
	askCustomer();
	updateAccount(amount);
	addGift(2.0);
	getBalance();
	thankYou();
	
	return 0;
}
Beispiel #2
0
int main(int argc, const char * argv[]) {
    // insert code here...

    int transactionCounter = 0;
    initializeAccount();
    getBalance();
    
    // Perform first transaction
    askCustomer();
    updateAccount(amount);
    getBalance();
    
    // Perform second transaction
    askCustomer();
    updateAccount(amount);
    addGift(5.0);
    getBalance();
    
    // Perform third transaction
    askCustomer();
    updateAccount(amount);
    addGift(2.0);
    getBalance();
    thankYou();
    
    return 0;
}