Scanner input = new Scanner(System.in);
System.out.print("Enter your buying price per share: ");
System.out.flush();
double buyingPrice = input.nextDouble();
System.out.println();
System.out.print("Enter the closing price for the day " + day);
System.out.println();
System.out.flush();
closingPrice = input.nextDouble();
Screanshot.pptx
Screanshot2.pptx
Screanshot3.pptx
Screanshot4.pptx