Link to the problem PCC15D.
I ran the sample data:
Expected output
Case #1:
Total Amount Include GST: 125.81
Total Amount GST Paid: 5.31
Case #2:
Total Amount Include GST: 2958.44
Total Amount GST Paid: 166.74
Your output
Enter the No of Test case :
Enter The details of Test Case 1
Enter the No of item to buy :
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Case:#1
Total Amount Include GST : 125.81
GST Amount: 5.31
Enter The details of Test Case 2
Enter the No of item to buy :
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Enter the Product Name,Product Quantity ,Product Price,Product GST type:
Case:#2
Total Amount Include GST : 2958.44
GST Amount: 166.74
So the calculations are correct, but you need to remove the prompts, and correct the formatting errors.