Entries by admin

A palindrome is a word that reads the same forward as it …

A palindrome is a word that reads the same forward as it does backward. An example of a valid palindrome is the word “race car”. An example of a word that is not a palindrome is “trust” (it reads backward as “tsurt”). Develop a C program that identifies palindrome words. Your program should: Read words […]

A program in C++

IN C++, a program which: i. Input a string ii. Print the length of the string iii. Copy first half and last half of the characters into two other strings. Print the two strings. iv. Form a new string like this: _?. (first half of the string followed by the 3 characters _,? and then […]

A program, named p7.cpp, that behaves in the manner descr…

Programming assignment 7 Due date and time: 11:59 PM, October 12, 2019 Problem: Write a program, named p7.cpp, that behaves in the manner describe in programming assignment 6, but which incorporates the changes listed below. As this is a C++ program, implementations of new features should use C++ conventions, libraries and I/O, except as specifically […]

A program Rev.java

A program called Rev.java to solve the following problem. The program will optionally take a single three digit integer from the command line, e.g. as follows. $ java Rev 351 If no number is supplied on the command line, then one will be prompted for as follows. $ java Rev Enter a three digit number, […]