Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

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.

  • Count number of spaces in that string.
  • Count number of words in that 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.

 


Write a program to compare two strings. Take both of strings from user and compare them. If equal print 1 otherwise print 0
LATEST TUTORIALS
APPROVED BY CLIENTS