Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Important Information: For Tasks 1 to 4 , there is no need for user input. If a question requests testing with your name, simply create

Important Information: For Tasks 1 to 4, there is no need for user input. If a question requests testing with your name, simply create a local variable (String name) and initialize it with your name. This approach streamlines the testing process.
Task 1) Implement a method, named "SentenceReverser," which accepts a sentence as input and displays the reversed sentence. In the main method, perform testing of the SentenceReverser method using your name (i.e. "Mustafa Ocal" --> "lacO afatsuM").
Task 2) Create an array to store the names of your favorite books. Implement a method for searching a specific book within the array, and ensure that it displays both the index number and the title of the book. In the main method, perform testing.
Task 3) Create a method that accepts an integer as input and returns the sum of its digits. In the main method, conduct testing of this method using your Panther ID.
Task 4) Create a method that takes a string as input and determines whether the length of the provided string is a prime number. In the main method, declare a String variable and initialize it with the name of our class. Subsequently, perform testing of the created method using the length of this string variable.
Task 5:
a) Construct a program that prompts the user to input the number of students they wish to document. Subsequently, within a loop, gather information on each student, including their name and corresponding scores, and record this data into a text file named "Students.txt." The structure of the text file should resemble the following:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Define identity.

Answered: 1 week ago

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

4. Describe phases of majority identity development.

Answered: 1 week ago