5. In the history of cricket, tallest players become more successful. Oman Cricket team has selected 15 tall players to provide intense training. Among these players, team management identified their strength as blowers, batsman, all-rounder and 1 member is identified as captain. Write a C' program in Code:Blocks for the following. i). Accept full name of team coach and print the same i1).Accept the best blowers full name and best batsman full name, append “All-rounder" with the guy with longest name. Print All-rounder. iii). According to new cricket rule captain should start the batting. Accept the full names of opening batsman pair and find the biggest name to choose the captain Sample Input and output: Enter full name of Team Coach :ali husain Coach Name is ali husain Enter full name of Best Blowler :ajay jadeja Enter full name of Best Batsman :virath koli All-Rounder : ajay jadejaAll-rounder Enter full name of Opening Batsman-1 Enter full name of Opening Batsman-2 Captian : sourav ganguly Process returned e (ex®) Press any key to continue. :sachin tendulkar :sourav ganguly execution time : 48.698 s
5. In the history of cricket, tallest players become more successful. Oman Cricket team has selected 15 tall players to provide intense training. Among these players, team management identified their strength as blowers, batsman, all-rounder and 1 member is identified as captain. Write a C' program in Code:Blocks for the following. i). Accept full name of team coach and print the same i1).Accept the best blowers full name and best batsman full name, append “All-rounder" with the guy with longest name. Print All-rounder. iii). According to new cricket rule captain should start the batting. Accept the full names of opening batsman pair and find the biggest name to choose the captain Sample Input and output: Enter full name of Team Coach :ali husain Coach Name is ali husain Enter full name of Best Blowler :ajay jadeja Enter full name of Best Batsman :virath koli All-Rounder : ajay jadejaAll-rounder Enter full name of Opening Batsman-1 Enter full name of Opening Batsman-2 Captian : sourav ganguly Process returned e (ex®) Press any key to continue. :sachin tendulkar :sourav ganguly execution time : 48.698 s
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter2: Basic Elements Of C++
Section: Chapter Questions
Problem 5PE
Related questions
Question
100%
c++
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr