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

Veja mais: writing to a file in c, writing in names, writing in code, writing a small report, set in c, sale codes, rep am, prompts for writing, may writing prompts, it sales rep, it sales agent, i need a local sales rep, 55 in binary, home choice sales agent, engineering report format, sales sells, sales rep, sales assistance, php program language, need sales data, i need a sales rep, i need a agent for writing, engineering c++, add binary, read codes database

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

ID do Projeto: #2955560