|
Function Pointers |
| Design a program that illustrates the use of function pointers. The program must allow the user to purchase books, movies, and peanuts using the menu, user interaction, base prices & shipping prices as in Assignment #3 of this course. Be sure to display the total price of all purchases rounded to the nearest penny. You must use a function pointer named pPurchase that points to the functions Also, create a function named printPurchase to which pPurchase is passed as a parameter. printPurchase must print the order information for the relevant item in the format Use typedef to avoid the messy syntax that is assocated with function pointers. Your program must follow the class Coding Standards. Name your project FunctionPointers. Preconditions:
You must hand in the following on separate pages stapled in this specified order:
|