The Department of Computer Science and Engineering conducted a survey among the students to evaluate the learning facili

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The Department of Computer Science and Engineering conducted a survey among the students to evaluate the learning facili

Post by answerhappygod »

The Department Of Computer Science And Engineering Conducted A Survey Among The Students To Evaluate The Learning Facili 1
The Department Of Computer Science And Engineering Conducted A Survey Among The Students To Evaluate The Learning Facili 1 (113.41 KiB) Viewed 10 times
solve this using c language using studio.h only
using stdio.h
The Department of Computer Science and Engineering conducted a survey among the students to evaluate the learning facilities provided by the Institute in the campus. As part of the survey, the students entered their name along with other details. While analysing the data, it was found that the format of the names entered are not unique. There are irregularities like a few students used only capital letters, some used only small letters, some used a mix of both, some used extra symbols/characters etc. The survey co-ordinator would like to have the names of students in a specific format as given below: 1. All names should contain only letters from the English alphabet and spaces. However there should not be more than one space between any two words in the name and the name should not be starting with a space. The extra. spaces and other invalid letters/characters should be removed. 2. All names should be in Title Case Format, i.e., all the letters should be in small cases except the first letter of each word in the name, which is in capital case. [eg. Suraj Kumar P Yadav] As a volunteer of this survey, you are requested to write a C program to convert all the names into the required format. You will be given the total count of the students and their names as input. You may take each name and convert it to the required format and display its corrected form on the screen. Input Format First line contains the total number of students, say N. The next N lines will contain the name of each student. There will not be any name containing more than 50 letters. Constraints 0 < N < 105 Output Format N lines containing the formatted names in the same order as given in the input. Sample Input 0 3 Vyshak D Vijay ARCHANA KP Deepak Gupta C. P. Sample Output 0 Vyshak D Vijay Archana Kp Deepak Gupta C P Explanation 0 1. No changes required 2. Only first letter need to be in capital case 3. Remove the invalid character '!' Sample Input 1 2 Archana K.P. Deepak Gupta Sample Output 1 Archana Kp Deepak Gupta C P CP Explanation 1 1. Remove and make the second letter of the second word to small case 2. Remove spaces in the beginning and extra spaces between the words Gupta & C
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply