Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer all these parts Question No 1 : You are the head of Pakistan sports team where you are hiring 100 players. You will
Please answer all these parts
Question No 1 : You are the head of Pakistan sports team where you are hiring 100 players. You will distribute the players in football, cricket and chess teams. Ask the user to take input of 10 players of their height , weight, id no and mobile no of players. Make a structure to store these details and call them in main function. Marks [15] Question No 2 : In a class of 50 students, take marks of 5 quizzes of 5 students from user. Then take passing marks from user and count the frequency (number of times passing marks occur) and display it. Hint: Make a 2d array of 5*5. Marks (15) Question No 3 : Implement the scenario, which count the total number of times the value val appears in integer array arr[] of size count. For example, if arr1={1.2.3.4.1.2.4.4.4), count=9, and val=3 then output should be 1since 3 appears only 1 time in array. Similarly, if val=1, then the output should be 2 as value 1 appears 2 times in array. Find for arr[50], count=? And val=6 Marks [15] Question No 4: Take five integer values from the user. Than store these values into a string using a pointer. Then print the elements of the variable on the screen. Marks (10) Question No 5: Make a function sumofmiddlenumber() which take 4 digit input from the user as an aurgument. You have to return the sum of middle two digits and display in the main function. Marks [10]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