Question 1: Write a robust Java program to create <>. This file consists of names of your customer and sho

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

Question 1: Write a robust Java program to create <>. This file consists of names of your customer and sho

Post by correctanswer »

Question 1 Write A Robust Java Program To Create Customer Txt This File Consists Of Names Of Your Customer And Sho 1
Question 1 Write A Robust Java Program To Create Customer Txt This File Consists Of Names Of Your Customer And Sho 1 (177.42 KiB) Viewed 70 times
Question 1: Write a robust Java program to create <<customer.txt>>. This file consists of names of your customer and shopping history. Implement a GUI Form. Get the customer name, purchase date and product name from the user using text field. (Date must be in this format: dd.mm.yy) While filling the file, for each person, you need to use to the aforementioned features with random number for the customer id which must be between 100 and 1000, and according to the formula calculate the lucky customer index of that person. To calculate the lucky customer index of a person, please use the following formula: luckyIndex = customer/D/(total number of characters of that product's name) #For example, product name: Tshirt, customerID: 900 → luckyIndex: (900/6)→ 150 You can see the sample of <<customer.txt>> file: --Sample file format-(Please do not write these data on your file, you need to create a file) Dilara - 12.11.2020-Tshirt-900 Oğuz-22.11.2020-pants-125 Gamze -12.10.2020-jeans-565 Mehmet-06.11.2020-shorts-700 Elif-01.11.2020-belt-800 Then, read this file(<<friends.txt>>) line by line and store it into ArrayList or array. Finally display the person who has the minimum luckylndex in the array. (YOU SHOULD DEFINE A RECURSIVE FUNCTION TO FIND MIN. VALUE) We can not easily make your program crash. THERE SHOULD BE NO BUGS IN THE CODE YOU WROTE Your program should be very robust. You should handled all exceptions. You can use any interface for your Button Action. You can use any Layout to obtain GUI design.
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply