Time remaining: 01:58:43 Computer Science C++ you will be focusing on allowing multiple of the four transactions listed. You will also be authenticating the user’s credentials (username and password) at least once. The customer’s account details are as follows: CustomerUsernamePasswordAccount #Member LevelStore CreditAddressJane Smithjsmithblue123123456789Gold3000.00100 W New Haven Ave, Melbourne, FL 32901Ellen Sue Doeedoepink234234567890Blue650.00235 South Street, Bronx, NY, 21110Michael Blackmblackbrown124235765437None324.0056 N Pathway Rd, Phoenix, AZ, 56565John Carterjcartergreen289987654251Diamond9000.001060 W Addison St, Chicago, IL 60613 Product information is as follows: SKUNameItems in unitPrice per unitQuantity on HandHF-342½ in Bolt5020.00200LK-322¼ in Nail255.7576KF-231Hammer115.23100 The information above is found in the attached file, accounts.dat Download accounts.datand products.csv Download products.csv respectively. You must read the information from these files to be able to complete the program. This information must be stored in a struct called Customer and Product. You should have vectors of structures. For this report, update the program to allow one of the above users to safely log in to their account, complete a maximum of 3 transactions, and end the program. The updated values must be written to the file after each transaction. Item transactions should be added to the transactions.da file when a new purchase is made. This should include the account number, customer name, item sku, quantity purchased, total cost, discount amount, tax amount, and the total of the transaction. Three incorrect attempts at entering the username and password will end the program. 1 – Purchase an item (make a new purchase) 2 – View all items (list all items available) 3 – Get an estimate (estimate the cost for purchasing an item) 4 – Update Account (update the user information) 5 – Log Out (exit/end the program) Each of the 4 transactions should be defined in its own function. At the end you should have a minimum of 5 functions (including main). You may define additional functions as you see fit. The customer may purchase multiple of that item but not more than the available quantity on hand. All purchases are made with store credit; therefore, the user cannot purchase items exceeding their store credit. There is a 6% sales tax on all items. Customers are granted pre-tax discounts on purchases over specified amounts. The table below describes the discount rate based on membership level. Any incorrect transactions will display an appropriate error message. After the purchase is complete, show all details in a receipt format, including the updated credit balance. Membership LevelDiscount RateRequired SpendDiamond12%$700+Gold8.5%$300+Blue6%$100+ Note that the Gold and Diamond level members are still allowed the lower discount rate if they do not meet their spend level. For example, if a gold or diamond member spends $200, they should receive a 6% discount. After updating the user account, it should display the updated account information to the user. The user cannot update their username.
Time remaining: 01:58:43 Computer Science C++ you will be focusing on allowing multiple of the four transactions listed. You will also be authenticating the user’s credentials (username and password) at least once. The customer’s account details are as follows: CustomerUsernamePasswordAccount #Member LevelStore CreditAddressJane Smithjsmithblue123123456789Gold3000.00100 W New Haven Ave, Melbourne, FL 32901Ellen Sue Doeedoepink234234567890Blue650.00235 South Street, Bronx, NY, 21110Michael Blackmblackbrown124235765437None324.0056 N Pathway Rd, Phoenix, AZ, 56565John Carterjcartergreen289987654251Diamond9000.001060 W Addison St, Chicago, IL 60613 Product information is as follows: SKUNameItems in unitPrice per unitQuantity on HandHF-342½ in Bolt5020.00200LK-322¼ in Nail255.7576KF-231Hammer115.23100 The information above is found in the attached file, accounts.dat Download accounts.datand products.csv Download products.csv respectively. You must read the information from these files to be able to complete the program. This information must be stored in a struct called Customer and Product. You should have vectors of structures. For this report, update the program to allow one of the above users to safely log in to their account, complete a maximum of 3 transactions, and end the program. The updated values must be written to the file after each transaction. Item transactions should be added to the transactions.da file when a new purchase is made. This should include the account number, customer name, item sku, quantity purchased, total cost, discount amount, tax amount, and the total of the transaction. Three incorrect attempts at entering the username and password will end the program. 1 – Purchase an item (make a new purchase) 2 – View all items (list all items available) 3 – Get an estimate (estimate the cost for purchasing an item) 4 – Update Account (update the user information) 5 – Log Out (exit/end the program) Each of the 4 transactions should be defined in its own function. At the end you should have a minimum of 5 functions (including main). You may define additional functions as you see fit. The customer may purchase multiple of that item but not more than the available quantity on hand. All purchases are made with store credit; therefore, the user cannot purchase items exceeding their store credit. There is a 6% sales tax on all items. Customers are granted pre-tax discounts on purchases over specified amounts. The table below describes the discount rate based on membership level. Any incorrect transactions will display an appropriate error message. After the purchase is complete, show all details in a receipt format, including the updated credit balance. Membership LevelDiscount RateRequired SpendDiamond12%$700+Gold8.5%$300+Blue6%$100+ Note that the Gold and Diamond level members are still allowed the lower discount rate if they do not meet their spend level. For example, if a gold or diamond member spends $200, they should receive a 6% discount. After updating the user account, it should display the updated account information to the user. The user cannot update their username.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question

Time remaining:
01:58:43
Computer Science
C++ you will be focusing on allowing multiple of the four transactions listed. You will also be authenticating the user’s credentials (username and password) at least once. The customer’s account details are as follows:
CustomerUsernamePasswordAccount #Member LevelStore CreditAddressJane Smithjsmithblue123123456789Gold3000.00100 W New Haven Ave, Melbourne, FL 32901Ellen Sue Doeedoepink234234567890Blue650.00235 South Street, Bronx, NY, 21110Michael Blackmblackbrown124235765437None324.0056 N Pathway Rd, Phoenix, AZ, 56565John Carterjcartergreen289987654251Diamond9000.001060 W Addison St, Chicago, IL 60613
Product information is as follows:
SKUNameItems in unitPrice per unitQuantity on HandHF-342½ in Bolt5020.00200LK-322¼ in Nail255.7576KF-231Hammer115.23100
The information above is found in the attached file, accounts.dat Download accounts.datand products.csv Download products.csv respectively. You must read the information from these files to be able to complete the program. This information must be stored in a struct called Customer and Product. You should have vectors of structures. For this report, update the program to allow one of the above users to safely log in to their account, complete a maximum of 3 transactions, and end the program. The updated values must be written to the file after each transaction. Item transactions should be added to the transactions.da file when a new purchase is made. This should include the account number, customer name, item sku, quantity purchased, total cost, discount amount, tax amount, and the total of the transaction. Three incorrect attempts at entering the username and password will end the program.
1 – Purchase an item (make a new purchase)
2 – View all items (list all items available)
3 – Get an estimate (estimate the cost for purchasing an item)
4 – Update Account (update the user information)
5 – Log Out (exit/end the program)
Each of the 4 transactions should be defined in its own function. At the end you should have a minimum of 5 functions (including main). You may define additional functions as you see fit. The customer may purchase multiple of that item but not more than the available quantity on hand. All purchases are made with store credit; therefore, the user cannot purchase items exceeding their store credit. There is a 6% sales tax on all items. Customers are granted pre-tax discounts on purchases over specified amounts. The table below describes the discount rate based on membership level. Any incorrect transactions will display an appropriate error message. After the purchase is complete, show all details in a receipt format, including the updated credit balance.
Membership LevelDiscount RateRequired SpendDiamond12%$700+Gold8.5%$300+Blue6%$100+
Note that the Gold and Diamond level members are still allowed the lower discount rate if they do not meet their spend level. For example, if a gold or diamond member spends $200, they should receive a 6% discount. After updating the user account, it should display the updated account information to the user. The user cannot update their username.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY