Question: Write a function called getCustomerInfo that reads from the keyboard the account number, the date of sale (month, day, and year as 3 integers), the


Write a function called getCustomerInfo that reads from the keyboard the account number, the date of sale (month, day, and year as 3 integers), the county code ('S' for San Diego County, 'o' for Orange County and 'L' for LA county). Write a function called getItemsInfo that reads the prices and the weights (integer of the items the customer is ordering. You don't know how many items the customer is buying. In this function, you need to sum up the prices (total sale amount) and the weights (total weight). The total sale amount and total weight will be used to calculate a discount, the sales tax, and the shipping cost. Sample run for the getItemsInfo function Do you want to order an item? Enter Y or N: Y Enter a price: 5.55 Enter a weight: 3 Do you want to order another item? Enter Y or N: Y Enter a price: 10.20 Enter a weight: 5 Do you want to order another item? Enter Y or N: N Hints t "In Do you want to order an item? Enter Y or N: cin choice while (choice 'Y) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
