Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

WARNINGS Cheating is strictly forbidden. A software is used to detect the similarities between submitted codes. If high similarity is detected, then both parties will

image text in transcribedimage text in transcribed

WARNINGS Cheating is strictly forbidden. A software is used to detect the similarities between submitted codes. If high similarity is detected, then both parties will be graded as 0. The assignments are designed in a way that you should work individually. No teamwork/idea sharing is allowed. Expect grades below 50 points when the submitted program cannot be compiled and tested. No late submissions will be accepted. . Sitcoms: . In the "inputs.txt" file, you will see the name, start year and end year of 4 different series. . Write a C program that reads the information of the series from "inputs.txt" file, and stores them into an array of structure. Then, ask for the user to enter 3 characters (players) for each series, and store these characters . into the structure too. . Calculate the number of seasons for each series by subtracting the start year from the end year, then store the number of seasons in the same structure again. The program should write the number of seasons and the characters of each series into another text file (outputs.txt). . . Note that creating only one structure will be enough for this assignment. The sample run and your output file should look like the ones below: . Sample Run: Output File: output.txt - Not Defteri Enter 3 players of Seinfeld: jerry george elaine Enter 3 players of Friends: monica rachel pheobe Enter 3 players of Community: jeff britta abed Enter 3 players of Disenchantment: luci elfo dagmar Dosya Dzen Biim Grnm Yardm Seinfeld lasted 9 seasons Characters: jerry george elaine Friends lasted 10 seasons Characters: monica rachel pheobe Community lasted 6 seasons Characters: jeff britta abed Disenchantment lasted 3 seasons Characters: luci elfo dagmar Process exited after 103.2 seconds with return value o Press any key to continue .. input.txt Seinfeld 1989 1998 Friends 1994 2004 Community 2009 2015 Disenchantment 2018 2021

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions