#include <stdio.h>
#include <ctype.h>

#define MAX_STUDENTS 6
#define NQUIZ 2                 //this value cannot change
#define MAX_NAME_SIZE 64

typedef struct student {
	char name[MAX_NAME_SIZE];   //format: firstname_lastname
	unsigned int aem;
	double quiz[NQUIZ];
	double final;
} student_t;

void print_student_info(struct student stdnt) {
	printf("%s/%u Q:[%.2lf,%.2lf] F:%.2lf\n", stdnt.name, stdnt.aem, stdnt.quiz[0], stdnt.quiz[1], stdnt.final);
}

int main(int argc, char *argv[]) {
	char format_str[10], name[MAX_NAME_SIZE], option;
	
	do {
		printf("\n\t1. Append (A/a)\n\t3. Delete (D/d)\n\t2. Search (S/s)\n\t4. Print (P/p)\n\t5. Quit (Q/q) \n\n	Your choice: ");
		scanf(" %c", &option);
		switch( tolower(option) ) {
			case 'a':
				
				break;
			case 'p':
				printf("*** Students: ***\n");
				
				break;
			case 'd':
				printf("Enter name: ");
				scanf(format_str, name);
				
				break;
			case 's':
				printf("Enter name: ");
				scanf(format_str, name);
				
				break;
			case 'q':
				return 0;
			default:
				printf("Wrong selection! Try again..\n");
		}
	} while(1);
	
	return 0;
}