Question: /*(Question #1) Loops (5 points) Write a method named fencePosts()that accepts two parameters: the first parameter should be the number of dashes between boxes posts
/*(Question #1) Loops (5 points) Write a method named fencePosts()that accepts two parameters: the first parameter should be the number of dashes between boxes posts and the second number should be the number of pieces of fence. For example, the call fencePosts (8, 5) should produce the following output: +--------+--------+--------+--------+--------+ Note that there are 5 fences, so that means that there are 6 + symbols There are eight(8) dashes between the + symbols.
JAVA
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
