Question 2 [10 marks] Note: For Question 2, you are not allowed to use any functions in the library. Develop a program that allows the user to enter a string and performing the following operations on it: ·Count Number of Characters In String[1 mark] ·Count Number of Words In String[1 mark] ·Remove Spaces In String[1 mark] ·Reverse String[1 mark] ·Reverse Words In String[2 marks] ·Look For Substring In String[2 marks] ·Insert Substring Into String[2 marks] The following screen suggests a possible user interface: whereby: If option 1 is chosen, 7 (including any special characters but excluding spaces) is shown on the screen. If option 2 is chosen, 3 is shown on the screen If option 3 is chosen, 'CisFun!' is shown on the screen If option 4 is chosen, '!nuF si C' is shown on the screen If option 5 is chosen, 'C si !nunF' is shown on the screen If option 6 is chosen, get user to enter the substring he wants to find and display a message to tell him whether it is in the string If option 7 is chosen, get user to enter a substring, and the position he wants to insert into the original string. The new string is then displayed on the screen. Note: You should develop test cases (of screen captures) to show the successful running of each of the options in this program. Question 3 [10 marks] Note: You may use library functions such as strcpy and strcmp for Question 3. Hobbiton Town is a fictitious town populated by a race called [url removed, login to view] are to develop a program to allow users to keep track on the hobbits in Hobbits Town. A HobbitRec contains the below information: ·HobbitID : 10 characters ·Name : 30 characters ·DateOfBirth : date format in nested date structure type dd/mm/yyyy ·Height : float type ·Weight : float type You program should be able to store up to 1000 HobbitRec records in an array called HobbitsArray. Your program should at least perform the below operations: ·Add new hobbit records into HobbitsArray[2 marks] .Display all hobbits' records[2 marks] ·Find and display a particular hobbit given the name or HibbitID[2 marks] ·Delete a particular hobbit given the name or HibbitID[2 marks] ·Update a particular hobbit's record given the name or HibbitID[2 marks] Note: You should develop test cases (of screen captures) to show the successful running of each of the options in this program.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
I'm using Borland C++ version [url removed, login to view] on windows95 and windows98.