Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a code in C language. Avoid comments. You are required to develop a system in C language to keep track of all participating groups
write a code in C language. Avoid comments.
You are required to develop a system in C language to keep track of all participating groups in the "Coder's modules. The solution must be provided using only the mentioned functions. Global variables are not allowed. You must use appropriate data types, return types and function arguments. a) Module Name: Input(). The working of this module goes as follows: 1. The Inputo function is called whenever user wishes to add new participating group information (GrouplD, GroupName, 5 tasks results). Each task's value must be entered in the form of 0 's or 1 's. If any other value is entered. the program must prompt to re-enter. a. 0 means that the group become usuccessful at solving a particular task b. 1 means that the group become successful at solving a particular task Append the newly taken data into the file named as CompRecord.txt. iv- The CompRecord.txt file will have set of records where each record contains participating group's complete information. b) Module Name: DisplayWinner(). This module finds and prints all winning groups information. Any group is considered to be a winner who has majority of successful attempted all tasks. There can be multiple winners. c) Module Name: Search(). This module displays the statusi details of any given group. The user must be allowed to search until he/she enters 0. For example, if user enters 3 , the data against GroupID =3 must be displayed that shows GroupName, and its successful and failed tasks. HINT: - You are allowed to define parameters and return types of these functions as you find appropriate. - All above modules are dealing with the data stored in the file Step 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