Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Instructions Create a C program that performs that does the following: Define an

ID: 3818723 • Letter: I

Question

Instructions

Create a C program that performs that does the following:

Define an enumerated list for the days of the week (Sun, Mon, Tue, Wed, Thu, Fri and Sat)
Note: Do so using the fewest symbols in the instruction as possible.

Sunday should reference the integer value of 1

Saturday should reference the integer value of 7

Create the user-defined data type for each of the built-in data types specified in the table below

Create a user-defined structure for a student using information in the table below

Additional Notes

Ensure your source code conforms to the programming and commenting standards for the class

Submit the project source code as a single *.c file

Submit a text capture of the compiler output as a *.txt file

Built-in Data Type User-defined Data Type bool boolean char letter char* string double decimal int number

Explanation / Answer

this will be your .c file

#include<stdio.h>

#include<stdbool.h>

/*An enumeration is a user-defined data type that consists of integral constants. To define an enumeration, keyword enum is used*/

enum week{ sun=1, mon=2, tue=3, wed=4, thu=5, fri=6, sat=7 };

/* typedef is used to ailas the keyword */

typedef bool boolean;

typedef char letter;

typedef char* string;

typedef double decimal;

typedef int number;

/* structure is the collection different datatype items which

may user defined,keyword is struct and to acces thie elements of struct we use '.' and in some times we use '->'*/

struct student

{

char studentid[9];

char lastname[30];

char firstname[30];

char initial;

int enrolledCourses;

double gpa;

bool isGoodStanding;

};

int main()

{

}

we are not getting any errors are compilation details it error free

if doesn't include the header file in to your .c file then we are getting

the compilation details as (this wil be your .txt file)

C:UsersSARATHCHNDRADesktopcheggenum.c|6|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'boolean'|

C:UsersSARATHCHNDRADesktopcheggenum.c|21|error: expected specifier-qualifier-list before 'bool'|

||=== Build finished: 2 errors, 0 warnings ===|