how does one use 5 function headers in a progrm that calculates a customer recipt slip. functions such as calculateCarpetSize, calculateCarpetcost, calculateLabourcost,QualifyforDiscount, ComputeDiscount, PRINTcustomerStatement. PLEASE HELP ME OUT
Here is a definition of a Function Header in C++. Not sure if you are using a different language, but it covers what the topic means there: http://www.uwplatt.edu/~hasker/cs143/annotated/def-header.html As you can see, the header just defines what is put in.
Each function must do its own work (calculation) but make sure main() is your core function focuses on necessary things enter ring the prices and sizes of the carpet etc .the Function QualifyDiscount should be boolen .In c++ :D
Join our real-time social learning platform and learn together with your friends!