Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c not C++ Problem: A technical support center tracks the lengths of calls that come in. At the end of each day, a report
in c not C++
Problem: A technical support center tracks the lengths of calls that come in. At the end of each day, a report must be created containing summary statistics: total number of calls, average call length, minimum call length, and maximum call length. Input: A text file containing one line for each call. Each data value represents the duration of a call (int). The sentinel value-1 indicates the end of input data. Input terminates when the value -1 is entered for call length (use a sentinel loop). Processing: Count the number of calls. Don't include the -1 at the end. Calculate the average call length (average should be type float). Keep track of the minimum call length and the maximum call length. Output: Align the output. See Example Run below. (The numbers shown in the example run are not the actual values. They're just to show how the output is to be formatted.) Example Run: Total Number of Calls Average Call Length Minimum Call Length Maximum Call Length 100 58.6 seconds 12 seconds 1240 seconds Do not use arrays. Do not write functions other than main. Use only scanf for input. Do not use file input functions. 7. Save the program. If you're working from home, FTP the file to your Linux account. 8. Compile gcc calls.c -o calls 9. Debug if needed, save, and recompile. Run at least one normal run. Check your output carefully. The output must match the format shown in the example run. ./ callsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started