oldoc63 / learningFS

Web development back and front
0 stars 0 forks source link

You are a collegue student a you want to stream a movie over one of the campuses WI-FI networks. Based on the number of users, some networks won't have the data to stream a movie. #1038

Open oldoc63 opened 2 years ago

oldoc63 commented 2 years ago

Use the following Network class to track how much total data and how many users each network has.

oldoc63 commented 2 years ago

The properties of the network class are:

Each user on average deducts 5 units from the network's total data. To watch a movie you must connect to a network that has at least 10 remaining units of data.

Add a method movieTime() to the Network class that returns true if there is enough data available to watch a movie, false if there isn't.