Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! I require some assistance in writing a Java program / project . I am using the Eclipse IDE softare for this project. The program

Hello! I require some assistance in writing a Java program/project. I am using the Eclipse IDE softare for this project. The program consists of 6 steps.
____________________________________________________
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. "Gerry Ridge" --> "egdiR yrreG").
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.
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 an ID number. (i.e "6557421").
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 a class (i.e "COP 1000"). Subsequently, perform testing of the created method using the length of this string variable.
5.) Part 5 is divided in two sections:
5A.) 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:
Joy Alisya
97
Dillon Chase
85
Valary Sutton
82
5B.) Develop a separate program to read the file, calculate the average score, and identify students whose scores surpass the calculated average. The output should be presented as follows:
The average score is 88
Joy Alisyas score is above the average.
____________________________________________________
Please note: Each section of this project is meant to be separated into separate files (.java) and then put together in a ZIP. I would greatly appreciate it if each section could be put in an order like: Task1.java, Task2.java, Task3.java, Task4.java, Task5a.java, and Task5b.java
Also, 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. User input is only required for Task 5.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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