0

Write a program for department store

where each customer with their products. we have to find the bill of customers with their different products

16th Dec 2017, 3:42 AM
poonam tigga
poonam tigga - avatar
4 Answers
0
import java.io.*; import java.lang.*; class ds { public static void main(String args[])throws IOException { InputStreamReader ob =new InputStreamReader(System.in); BufferedReader br=new BufferedReader (ob); String cn,ca; int cm,total,bill,p,c,n,pn; int maggi=20; int kurkure=30; int biscuit=5; int luxsoap=30; int kajubiscuit=24; int ponds=120; System.out.println ("enter no of customer"); n=Integer.parseInt(br.readLine()); System.out.println("enter customer'name"); cn=br.readLine(); System.out.println("enter customer address"); ca=br.readLine(); System.out.println("enter customer mobile no"); cm=Integer.parseInt(br.readLine()); System.out.println("enter the product no"); pn=Integer.parseInt(br.readLine()); System.out.println("enter the product"); p=Integer.parseInt(br.readLine()); for(c=1;c<=n;c++) { total=pn*p; System.out.println("bill="+total); } } }
16th Dec 2017, 6:18 AM
poonam tigga
poonam tigga - avatar
0
What is the errors in this program? I don't know
16th Dec 2017, 6:19 AM
poonam tigga
poonam tigga - avatar