Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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 Day Mar 12, 2021

Solution

Arun Shankar answered on Mar 19 2021
155 Votes
using System;
using System.Collections;
using System.Collections.Generic;
public class Traine
{
static int count = 0;
Number of trainers
int id;
unique id
String name;
Trainer's name

Constructo
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