0

this is a program on pay roll..

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <ctype.h>
#define MAX 5
//#define DATAFILE "c211"
typedef struct {
char ID[6];
char firstname[10]
char civilstatus;
int dependents;
float netpay;
float grosspay;
float taxwithheld;
float sss;
} employee;
/*---------------------------------*/
char Menu(char choice){
do{
printf("\n<< CS 211 Files >>\n\n");
printf("[A] Add New Employee\n');
printf("[V] View Records\n");
printf("[Q] Quit Program\n\n");
printf("enter letter of choice : ");
choice = toupper(getche());
] while (choice != 'A' && choice != 'V' &&
(choice != 'Q');
return choice;
}
/*---------------------------------*/
void ViewRecords(employee a[], int n) {
char c;
float k;
int i;
printf("\nthere are %d record(s)\n\n",n);
in (n != 0) {
for (i = 1; i < n+1; i++) {
printf

wait, i'm out of time.. i'll finish this soonnnn,,, if you want to finish this, please do.. Godbless

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by kenjutsuka
0

wait, i'm out of time.. i'll finish this soonnnn,,, if you want to finish this, please do.. Godbless

Sure, I'll get right on it... :rolleyes:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.