Answer:
import java.util.*;
public class BarChart
{
public static void main(String args[])
{
int arr[]=new int[5];
Scanner sc=new Scanner(System.in);
for(int i=0;i<5;i++)
{
while(true){
System.out.println("Enter today's sale for store "+(i+1)+" (negative value not allowed)");
arr[i]=sc.nextInt();
if(arr[i]>0)
break;
}
}
System.out.println("SALES BAR CHART");
for(int i=0;i<5;i++)
{
System.out.println("Store "+(i+1)+": ");
for(int j=0;j<arr[i];j=j+100)
{
System.out.print("*");
}
System.out.println("");
}
}
}
Answer:
You need to use option '–author' along with option '-l' to print the author name of each file.
Explanation:
hopefully this helps you sorry if it doesn’t help you
Answer:
yes for sure
Explanation:
iran oy has 3000 ballistic missiles but america has thousands of nukes. we can easily outnumber their forces as well. this will be a easy victory for us but will result in massive casualties on both sides