Task details provided in the files.You can ignore the testing part though, I'm just looking for the program to be written. Also, you can use either Python/C#/Java for this, no preference. (no...

1 answer below »
Task details provided in the files.You can ignore the testing part though, I'm just looking for the program to be written. Also, you can use either Python/C#/Java for this, no preference. (no referencing needed)
Answered Same DayMar 12, 2021

Answer To: Task details provided in the files.You can ignore the testing part though, I'm just looking for the...

Arun Shankar answered on Mar 19 2021
142 Votes
using System;
using System.Collections;
using System.Collections.Generic;
public class Trainer
{
static int count = 0; // Number of trainers
int id; // unique id
String name; // Trainer's name
// Constructor
public Trainer(String _name)
{
id = ++count;
name = _name;
}
// public void set_course()
}
public class Course
{
static int count = 0; // number of courses
int id; // unique course id
int duration; // the duration of the course in hours
int start,end; // the schedule of the course - start and end hours.
// Constructor
public Course(int _duration, int _start, int _end)
{
id = ++count;
duration = _duration;
start = _start;
end = _end;
}
}
public class Stream
{
String name; //...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here