- 23rd Jul 2024
- 18:19 pm
- Admin
For this assignment, you will be given files that contain information about the movies and shows that can be accessed through three different streaming services. Those files also contain subscriber information. Content and subscriber information would almost certainly not be combined in one file in the real world, and the information definitely wouldn't be stored in simple, unencrypted CSV files, but the point of the assignment is to get some experience handling updates, so we will ignore reality for now. You will be provided with update files that identify which program and subscriber information to add, remove, or update. You will then write the updated information to a new file that contains the updated information.
Streaming Service Files - Using Objects - COMPSCI 1026 - Get Assignment Solution
Please note that this is a sample assignment solved by our Python Programmers. These solutions are intended to be used for research and reference purposes only. If you can learn any concepts by going through the reports and code, then our Python Tutors would be very happy.
- Option 1 - To download the complete solution along with Code, Report and screenshots - Please visit our Programming Assignment Sample Solution page
- Option 2 - Reach out to our Python Tutors to get online tutoring related to this assignment and get your doubts cleared
- Option 3 - You can check the partial solution for this assignment in this blog below
Free Assignment Solution - Streaming Service Files - Using Objects - COMPSCI 1026
from file_processing import FileProcessing
from streaming_service import StreamingService
def main():
loop = True
obj = FileProcessing()
streaming_service = None
while loop:
repeat = input("Would you like to update a file? Y/N\n")
repeat = repeat.lower()
if repeat == "y":
file_name = input("Please enter the streaming service creation file (or 'done' to exit):\n")
if file_name == "done":
loop = False
print("Exiting the program...")
else:
streaming_service = obj.build_new_service(file_name)
if streaming_service != None:
update_file_name = input("Please enter the update file you would like to read(or 'done' to exit):\n")
if update_file_name == "done":
loop = False
print("Exiting the program...")
else:
streaming_service_updated = obj.update_service(update_file_name, streaming_service)
if streaming_service_updated != None:
write_file = input("Please enter the name of the new file to be written:\n")
obj.write_update(write_file,streaming_service_updated)
elif repeat == "n":
loop = False
print("Exiting the program...")
else:
print("Invalid option")
main()
Get the best Streaming Service Files - Using Objects - COMPSCI 1026 assignment help and tutoring services from our experts now!
About The Author - Alex Gen
Alex Gen specializes in data management and programming assignments. For this task, Alex handles files with movie and show information from multiple streaming services, as well as subscriber details. The assignment involves processing update files to modify, add, or remove entries and then writing these updates to a new file, providing practical experience with file handling and updates.