Coding (C language code)

profilesnowflakes997
homework4.docx

Homework 4

PELICAN STORES

Pelican Stores, a division of National Clothing, is a chain of women’s apparel stores operating throughout the country. The chain recently ran a promotion in which discount coupons were sent to customers of other National Clothing Stores.

Data collected for a sample of 100 in-store credit card transactions at Pelican Stores during one day while the promotion was running are contained in the file ENG175 Project 4 PelicanStores.xlsx.

Below is a sample of the four of the 100 total records in the data file:

Type of Customer:

Customers who made a purchase using a discount coupon are referred to as promotional customers and customers who made a purchase but did not use a discount coupon are referred to as regular customers. Promotional coupons were not sent to regular Pelican Stores customers, management considers the sales made to people presenting the promotional coupon as sales it would not otherwise make. Of course, Pelican also hopes that the promotional customers will continue to shop at its stores.

Items: The total number of items purchased

Net Sales: The total amount ($) charged to the credit card

Method of Payment: Proprietary card method of payment refers to charges made using a National Clothing charge card.

Write a C program that analyzes the data for these 100 customers. Report facts only. All calculations must be done by using variables. Find and interpret …

· using percentages: the Type of Customer, Method of Payment, Gender and Marital Status

· using averages: Items, Net Sales and Age

· one other different finding of your choice

For example, of the 100 in-store credit card transactions, 30% were regular customers and 70% were promotional customers. For example, of the 100 in-store credit card the average Net Sales or the average credit card amount of sales was $77.60

Print your Find and Interpret facts to an outfile. Print them first. Then print a heading and the 100 customer records to that same outfile.

Save your file on the desktop for collection as Proj4_Lastname.c