Homework assignment

Programming Assignment #1: 1. Request the user to enter a string, such as full name. 2. Once the name is entered, verify that they did enter one. 3. Display a small menu using [url removed, login to view] that has the following options: a. 1. Count the number of characters in the string b. 2. Find a substring inside the string c. 3. Display the string in reverse order. d. 4. Exit the program. 4. Once the string is entered, and the menu is displayed, the user is asked to select an option from the list above. Verify that option entered is 1, 2, 3 or 4. If 4, then exit the program using [url removed, login to view](0);. Each of the other options will be represented by a method. If an option other than 1 through 4 has been entered, message the user with the error and allow them to start again. 5. If option 1 is selected, call a method that takes the entered string above as a parameter, and returns an integer, which is the number of characters in the string. Once you have the return value, display it using a [url removed, login to view] from the option section, not from the method that calculated it. 6. If option 2 is selected, call a method that takes the entered string above as a parameter, and returns an integer which is the starting location of the substring within the longer string. Once you enter this method, you need to prompt the user to enter a substring to search for. Display a message that indicates the substring was found starting at position xx (which is the returned value). 7. If option 3 is selected, call a method that takes the entered string above as a parameter and returns a string that contains the string above in reversed order. Display that reversed string using System.out.println. You’ll need to create an array in this method that stores the characters in the string. Use the main method only to instantiate the class you are currently in, and to call the primary method that starts this whole process. So, you should have 1 class (which gets instantiated in the main meth

## Deliverables

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) Complete ownership and distribution copyrights to all work purchased.

## Platform

Java 2 platform Windows XP IE 6

Kemahiran: Semua Boleh

Lihat lagi: substring search, substring in c, substring find, substring c, substring 0 2, string b, search substring, search string in array, find substring in string c, find substring in string, c substring, c string substring, c programming homework, assignment out source, value stores, out source assignment work, meth, main primary menu, java reverse, java assignment software

Tentang Majikan:
( 0 ulasan )

ID Projek: #2909766