2.3AP
2.3AP
3
Student Name: N Srinivas Rao UID: 21BCS3949
Branch: CSE Section/Group: 902/B
Semester: 5th Date of Performance:22/10/2023
Subject Name: Advance Programming lab Subject Code: 21CSP-314
a.
Aim: Demonstrate the concept of string.
b.
Objective:
c.
Code:
a)
#include <iostream>
#include <string>
#include <unordered_set>
using namespace std;
string pangrams(string s) {
unordered_set<char> letters;
for (char c : s) {
if (isalpha(c)) {
letters.insert(tolower(c));
}
}
int main() {
string s;
getline(cin, s);
return 0;
}
b)
#include <iostream>
#include <string>
int camelcase(string s) {
int wordCount = 1;
for (char c : s) {
if (isupper(c)) {
wordCount++;
}
}
return wordCount;
}
int main() {
string s;
cin >> s;
return 0;
}
Output:
(i)
(ii)
4. Learning Outcomes: