Question: Question Computer Science Java Programming EXERCISE WEEK 7 1/0 KukisStore Enterprise is a company that sells a variety of cookies in celebration of the Hari
Question Computer Science Java Programming

EXERCISE WEEK 7 1/0 KukisStore Enterprise is a company that sells a variety of cookies in celebration of the Hari Raya festival. This business storcs Customer information in a text file named krohraya./xi, as illustrated in Figure I below. Each rocord in this file contains the cookies' name, price per bottle, quantity of cookies bought and customers' sume. kuihrays - Nratpad File Feit Femal View Help la mondlondon; 18.00;1; suhaila Shortbrcak;12.50:50; amrina mamacarries; 16.00;22, ahmad al mondlondon; 18.00; 15; adrian almondlondon; 18.00 100; aminah mamacarries ; 16.00; 5 suzila Shortbreak; 12.50;3; fahri shortbrcak; 12.50 3 maria mamacarries; 16.00;5; aisha Figure 1:kuihraya.it As a programiner at the company, you have been asked to write a complete Java programme that utiliscs filc 10 to perform the following tasks: . The kuihwa ini file coulaitis data thal should be read inl. Calculate and display the customer's total price based on the specified discount rate: . Discount No discount 10% 20% 30% Total Price Total price CRM50) Total price > RM50 && Total price RM200 && Total price RM300 Total price > RM300 . Store the cookie's name, total price, price after discount and customer's name for customers who entitled for discount in the output file named discount.ccr file, In the output file named discount.cxr, store the cookie's name, the total price, the price after discount, and the customer's name for customers who meet the criteria for a discount Usc cxccptions to handle possiblc filc inputoutput crrors. The expected output of the program is as shown below: diskaun Notepad File Edit Format View Help List of cookies and the customers who get the discount rate COOKIES Cookie's Name Total Price Price after discount Customer Name ------ --- shortbreak 625.0 437.5 amrina (Discount rate 30x mamacarries 352.0 246.4 ahmad (Discount rate - 30%) almond london 270.0 216.0 adrian (Discount rate-20%) almond london 1800.0 1260.0 aminal (Discount rate-30%) mamacarries 80.0 72.0 suzila Discount rate -10%) manacarries 80.0 72.0 aisha (Discount rate-10%) e x discow rodiskaun - Notepeu File Exit Format View Help Customer Name Total Price ------- suhaila 18.0 fahri 25.0 maria 37.51 TI modiscount. In
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
