A tuition centre conducts three classes for primary school students as listed in Table Q2. (a) Based on the function pro

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

A tuition centre conducts three classes for primary school students as listed in Table Q2. (a) Based on the function pro

Post by answerhappygod »

A Tuition Centre Conducts Three Classes For Primary School Students As Listed In Table Q2 A Based On The Function Pro 1
A Tuition Centre Conducts Three Classes For Primary School Students As Listed In Table Q2 A Based On The Function Pro 1 (82.23 KiB) Viewed 38 times
A tuition centre conducts three classes for primary school students as listed in Table Q2. (a) Based on the function prototype of insertData() function and also how 3 points it is called by main() function, write the function definition for this insertData() function which will prompt the user to key in the information of all classes in Table Q2. as shown in Figure Q2(a). Underlined denotes user's input. No. 1. 2. 3. Subject English Science Maths Table Q2 Day Monday Tuesday Friday Number of Students 35 42 63 Develop a simple C program to help the tuition centre keeping the information in the form of an array of records Tuition #1 subject: English Tuition #1 day: Monday Tuition #1 number of students: 35 Tuition #2 subject: Science Tuition #2 day: Tuesday Tuition #2 number of students: 42 Tuition #3 subject: Maths Tuition #3 day: Friday Tuition #3 number of students: 63 Figure Q2(a) #include <stdio.h> #include <string.h> #define M3 Your answer struct Tuition char subject [20]; char day [20]; int num; }; void insertData (struct Tuition arrayıl, int size); void printData (struct Tuition *pointer, int size): int main() struct Tuition List[M]; insertData (List, M); printData (List, M) : return 0; 1 /* Part (a) - Function Defintion for insertData */ /*Part (b) - Function Defintion for printData */
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply