Write a fully annotated C program that does ALL of the following: (a) Create a user defined type to represent a Student record that contains the following descriptions: Name Data Type Size student_ID numeric 5 student_Name character 30 student_Address character 50 student_major Character 20 student_sex character 1 (b) Create 2 student records with the following information. StudentOne ID: 14567 Name : John Lee Name Address: 24, Jalan Rajah, Singapore 111111 Major : Computer Science Sex: male StudentTwo ID: 15970 Name : Marsha Johnson Address: 29, Jalan Eunos, Singapore 22222 Major: Accounting Sex: Female Display the record of studentOne on the screen.
Write a fully annotated C program that does ALL of the following:
(a) Create a user defined type to represent a Student record that contains the
following descriptions:
Name Data Type Size
student_ID numeric 5
student_Name character 30
student_Address character 50
student_major Character 20
student_sex character 1
(b) Create 2 student records with the following information.
StudentOne
ID: 14567
Name : John Lee Name
Address: 24, Jalan Rajah,
Singapore 111111
Major : Computer Science
Sex: male
StudentTwo
ID: 15970
Name : Marsha Johnson
Address: 29, Jalan Eunos,
Singapore 22222
Major: Accounting
Sex: Female
Display the record of studentOne on the screen.
Step by step
Solved in 3 steps with 1 images