I'm working on a homework assignment and I'm confused about what the directions want me to write for these functions. The directions say:
Write a void function called GetSalesInfo that accepts the following as input from a user
- Account Number
- Date of Sale
- County Code
- Total Sale
- Shipping Weight
This function should return all these inputs to the calling function - I'm most confused about this part
Write the following value returning functions:
- CalcDiscount - Returns the appropriate discount for the sale
I don't understand what the first function is supposed to do, I have the parameters set up, but I don't know what to do in the actual function.
void GetSalesInfo(int accNum, // Account Number - IN
int month, // Month of sale - IN
int day, // Day of sale - IN
int year, // Year of sale - IN
char countyCode, // County Code - IN
float total, // Total Sale Amount (Before Tax) - IN
int weight) // Shipping Weight - IN
{
}
Also, I don't know how to access all this info in the CalcDiscount function.
I'm not asking anyone to do my homework, I just need a little push in the right direction and my professor is never available to help anyone.