Question: Consider the following structure declaration: struct customer { char fullname[35]; double payment; }; Write a program that adds and removes customer structures from a stack,
Consider the following structure declaration:
struct customer {
char fullname[35];
double payment;
};
Write a program that adds and removes customer structures from a stack, represented by a Stack class declaration. Each time a customer is removed, his or her payment should be added to a running total, and the running total should be reported. Note: You should be able to use the Stack class unaltered; just change the typedef declaration so that Item is type customer instead of unsigned long.
Step by Step Solution
3.46 Rating (175 Votes )
There are 3 Steps involved in it
The program is as followss i Header File include typedef struct char fullname 35 double payment cust... View full answer
Get step-by-step solutions from verified subject matter experts
