We are simulating a customer database for a store Crete a text file that represents information about
Question:
We are simulating a customer database for a store
Crete a text file that represents information about several customers of the store: Each customer will take 4 lines in the file
Username, First Name, Last Name on the first line
Last 6 passwords on the second line
Names for the last 10 items purchased on the third line
Prices for the last 10 items purchased on the fourth line
Notes:
Usernames must be unique for each customer
Passwords must contain 8 characters (with 1 letter, 1 number, 1 symbol)
The passwords are in order from newest to oldest
All data is separated by commas in the file
Items are listed in order from newest to oldest
Your test file should have at least 3 customers in it for testing purposes
Writ a program that let's a store manager enter a username and then give them the choice to do the following:
Get the First Name
Get the Last Name
Get the Current Password
Change the First Name
Change the Last Name
Change the Password (Can't be one of the last 6 passwords used)
Add a new item to purchase list (Remember it can only hold 10 values)
View all items / prices purchased
View all items / prices purchased from (highest priced to lowest priced) or (lowest priced to highest price)
Get the highest priced item
Get the lowest priced item
Get the price of any item in the list
Calculate the average cost of the items in the list
Calculate the median price of the items in the list
To help you accomplish these tasks you should crete a Customer Object Class and use it to write the program above
The class should have the following fields:
String: Username
String: First Name
String: Last Name
String[]: Passwords
String[]: Item Names:
Double: Item Prices
It should have a constructor that fills in all of the fields
It should have methods that can accomplish all of the tasks the main program needs
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill