Input a string from user in the following format: Name_RollNo_GPA.
Now perform string tokenization operation on this string to separate the Roll no and GPA. Store each token in a separate row of 2d char array and then print that string. Plus store name in a string, roll no in integer and GPA in float. And also print them. You are not allowed to use atoi() and atof().
Note: You cannot call built in function of strtok()
Input a string from user in the following format: Name_RollNo_GPA.
Now perform string tokenization operation on this string to separate the Roll no and GPA. Now based on those values perform the following operations:
If the Roll no is greater than 120 or less than 1 then print: Record does not exist.
Otherwise:
If the GPA is greater than or equal to 3.75 then print Faculty Honors
If GPA is less than 3.75 and greater than 3.5 then print: Excellent.
If GPA is less than 3.5 and greater than 3 then print: Good.
If GPA is greater than 2.7 and less than 3 then print: Satisfactory.
If GPA is less than 2.7 then print: You should work hard.
Note: You can call built in function
Given a string, Your program will store half of the string reverse and store the rest of the string as it is in another string. your program will print the following as shown in the examples given below.
1. Original string: “danish” then your program should print “nadish”.
2. Original string: “zill-e-huma” then your program should print “-llize-huma”.
Note: You are not allowed to use built in functions of strings
Write a program that take input two strings from the user and also no of chars to copy, Now copy N char of second string in first string and print the first string.
give value in the expression of c++
a) 12 % 27
b) 27 + 4 / 3
Write a program that take input two strings from the user, copy first string in second string and second string in first one
Write a program that take input two strings from the user, you have to concatenate the strings and store the result in third string.
Write a program to take user input for a string.
You know what a palindrome number is. The same concept can be used for strings. Basically, palindrome string is a string that is same if you read it forwards or backwards. Some palindrome strings examples are "dad", "radar", "madam" etc. You will have to write a program, that tells us whether the input string is palindrome or not.
Hint: Reverse the original string and compare the resultant with the original.