Questions Uploads
source ERP
/in Questions Uploads /by adminERP
/in Questions Uploads /by adminpublic class DrawHalfArrow
/in Questions Uploads /by adminHi Guys,
Last part (5) of code does not working, please can you fix it. Please, code the question.
import java.util.Scanner;
public class DrawHalfArrow {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int arrowBaseHeight = 0;
int arrowBaseWidth = 0;
int arrowHeadWidth = 0;
int i = 0;
System.out.println(“Enter arrow base height: “);
arrowBaseHeight = scnr.nextInt();
System.out.println(“Enter arrow base width: “);
arrowBaseWidth = scnr.nextInt();
System.out.println(“Enter arrow head width: “);
arrowHeadWidth = scnr.nextInt();
String ast = “”;
for (int x = 1; x <= arrowBaseWidth; x++){
ast += “*”;
}
for (i = 1; i <= arrowBaseHeight; ++i){
System.out.println(ast);
}
int tempHeadWidth = arrowHeadWidth;
for (int y = 1; y <= arrowHeadWidth; y++){
for (int z = tempHeadWidth; z > 0; z–){
System.out.print(“*”);
}
tempHeadWidth -= 1;
System.out.println();
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
About Us
![]()
Since 2010, we have offered professional writing services to clients all over the world.
Over the years, our writers have gained solid experience in all academic disciplines, giving them a competitive edge to provide only first-rate academic papers.
![]()
QUICK LINKS
Contact Us
For any questions, feedback, or comments, we have an ethical customer support team that is always waiting on the line for your inquiries.
Talk to us
support@academicheroes.com
Call us: +1 (564) -222 6836