How to solve this in C programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to solve this in C programming

You have to get a new driver's license and you show up at the office at the same time as 4 other people. The office says that they will see everyone in alphabetical order and it takes 20 minutes for them to process each new license. All of the agents are available now, and they can each see one customer at a time. How long will it take for you to walk out of the office with your new license? Task Given everyone's name that showed up at the same time, determine how long it will take to get your new license. Input Format Your input will be a string of your name, then an integer of the number of available agents, and lastly a string of the other four names separated by spaces. Output Format You will output an integer of the number of minutes that it will take to get your license. Sample Input 'Eric' 2 'Adam Caroline Rebecca Frank' Sample Output 40

1st May 2021, 4:31 PM
Priyanka K
Priyanka K - avatar
2 Answers
+ 5
Hello there! Could you please add your attempt so that the community can help you? Thanks :) https://www.sololearn.com/Discuss/333866/?ref=app https://www.sololearn.com/blog/38/8-simple-rules-to-get-help-from-the-community
1st May 2021, 5:19 PM
Matthew
Matthew - avatar
+ 2
Post your attempt first
1st May 2021, 5:52 PM
Atul [Inactive]