Cancelado

small sales rep0rt program in C

Greetings, I need assistance in completing a small sales report program that I am writing in C language. The description is in the deliverables section below. I would like to have this program completed by Tuesday, May 8th, 10:00pm Pacific time.

## Deliverables

I want a program that represents sales data for 5 (or more) sales representatives each with their own salesrep code (1-5). The names and codes are: salesrep1 =1, salesrep2 = 2, etc. I am trying to set up database of sales in a binary file called “[url removed, login to view]?. Each record has 4 fields: 1. Salesrep Name, 2. Salesrep Code, 4. Date, and 5. Sale Price. I want to track these total sales by salesrep. The format of the 2 reports I need are displayed below: Total Sales Report Salesrep Total Sales Sales rep1 [url removed, login to view] Sales rep2 [url removed, login to view] Sales rep3 [url removed, login to view] Sales rep4 [url removed, login to view] Sales rep5 [url removed, login to view] Average = [url removed, login to view] Total = [url removed, login to view] Sales by Sales rep 3 Date Sale 05/01/2005 [url removed, login to view] 05/12/2005 [url removed, login to view] 05/19/2005 [url removed, login to view] etc. I need 5 functions: main(), menu(), add(), total_sales(), and salesrep_sales(). I want one global array to store the 5 salesrep names. 1. main(): loops until choice 4 is selected from calling the menu(). 2. menu(): displays 4 items: 1 = add records, 2 = report total sales, 3 = report sales by salesrep, 4 = quit. 3. add(): adds records to the file “[url removed, login to view]?. 4. total_sales(): creates one array to store the sales totals by salesrep. The function loops until all sales are read from the file “[url removed, login to view]?. Each salesrep sells many items. The total sales for each salesrep is the total of all sales by that salesrep, not just one sale. When all the sales figures are read from the file, the Total Sales Report above is displayed using the local sales array and the global names array. 5. salesrep_sales(): opens the “[url removed, login to view]? file and prompts for an agent code (1-5). It reads the entire file displaying only the sales matching the salesrep’s code. This report displays the salesrep’s name in the heading and only 2 fields from the file: date and sale amount. I am attaching the code I have written so far, in zip format, in the SalesReport.c program, and the header file SalesReport.h Thanks!

## Platform

Windows XP home edition.

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, Treinamento, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: writing file, writing names, writing small report, sale codes, rep am, prompts writing, may writing prompts, need local sales rep, home choice sales agent, engineering report format, sales sells, php program language, need sales data, need agent writing, add binary, read codes database, Local sales, matching items, read data program, php small codes, read file average, track sales rep, read binary file php, average function, track sales representatives

Acerca do Empregador:
( 17 comentários ) United States

ID do Projeto: #2955560