Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a Separate class Builder.java. Declaring Class Step 2: Examining the prob

ID: 3722746 • Letter: C

Question

Create a Separate class Builder.java. Declaring Class Step 2: Examining the problem, we need to create a Builder class, declare Builder class as follows public class Builder f inside the class, declare a String variable called name Remember the constructor with arguments assigns input data to the data members public Builder (String name) ( /I write the segment of code /l that assigns input data to the data members You need to supply the following get methods: getName ()to get the Name of the Builder object Hint: These method contains a line of code that returns the desired variable valueid, major... public String getiName() t // write a line of code that returns the name You should have a makeRow method. Given an integer n and string s, the method returns an other string that have n copies of s in one row Method should return a string public string makeRow(int n, String s) ( // Given an int n and string s, /I return a string that represents n copies of s in one row. //Example: n-. 5, s = ".", return a string " Write a method called makePyramid that given an odd integer n and a String s, prints a pyramidal shape

Explanation / Answer

Builder.java

Lab7.java

Sample Output format:

Name of the builder:
Saikumar
The name of builder is: Saikumar
Enter a positive integer:
6
======******======
Enter a positive odd integer,
representing number of stars in the base of pyramid :
9
----*----
---***---
--*****--
-*******-
*********