Write a program to simulate the design process of the course. First, create a struct for the course which consists of following members: course number (int type, e.g. 1200), course start data (int type, e.g. 20200107), course hours (int type, how many hours per week) and lecturer ID (int type). Second, create a struct for lecturer, which has following members: lecturer ID (int type), lecturer office hours (int type, how many office hours per week) and course teaching(array[int] type)). Third, create a struct for student, which as following members: student ID (int type), course taken(array[int] type). Then answer following questions 1, 2, and 3 based on these structures:

Respuesta :

Answer:

C++.

////////////////////////////////////////////////////////////////////////////////////////////

#include <iostream>

using namespace std;

struct Course {

   int number;

   int start_date;

   int course_hours;

   int lecturer_id;

};

struct Lecturer {

   int Id;

   int office_hours;

   int *course_teaching;

};

struct Student {

   int Id;

   int *course_taken;

};

///////////////////////////////////////////////////

int main() {

   Course c1;

   Lecturer lecturer_1;

   Student student_1;

   

   return 0;

}

Explanation:

"Then answer following questions 1, 2, and 3 based on these structures:"

Where are the questions 1, 2 and 3?

RELAXING NOICE
Relax