Im 50 but like to know more about this world of you guys need help
Hello Friends,
I need help here, I am unemployed so I have to go back to school and I like to know about website so I took one and so I am also taking C yeheey. This is my assignment number 3 I passed the 1 and 2 but this one is also easy but I still need help.
#include <stdio.h>
#include <stdlib.h>
#define MAX_NAME 30
#define TITLE "Mabuhay Video Store"
int main(void)
{
char name[MAX_NAME + 1];
int choice;
do
{
system ("cls");
printf("=============================\n");
printf(" %s\n", TITLE);
printf("=============================\n\n");
printf("1 Enter Customer Information\n");
printf("2 Enter Rental Information\n");
printf("3 Compute Charges\n");
printf("4 Dispaly Receipt\n");
printf("5 Exit Program\n\n");
printf(" Selection: ");
scanf("%d",&choice);
getchar();
if(choice==1)
{
getcustomer();
}
else if(choice==2)
{
}
else if(choice==3)
{
}
else if(choice==4)
{
}
else
{
break;
}
}while(choice!=5);
return EXIT_SUCCESS;
}
The above execute good
Now the next one is Giving me a headache:
void getcustomer(void)
{
system("cls");
printf("Store Name:\n\n");
printf("Customer Name:");
printf( "Address:");
printf( "City/State/Zip:\n\n");
printf("Coupon Presented (Y/N): Y");
return EXIT_SUCCESS;
}
I tried to input information about the customer name address and coupon but it won't compile.
and I have to place the video title and compute charges. I am getting no where.
This is my assignment, If anyone can help thank you and if someone is going to Bully me thank you also but i hope you do understand that you also been like me. So I need help.