In you will be focusing on allowing multiple of the

In 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 and products.csv respectively. You must read the information from these files to be able to complete the program. Hint: Use parallel arrays.

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. 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.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Compare and contrast two communication techniques that can be used

Compare and contrast two communication techniques that can be used to improve employee trust and engagement. Feel free to use the channels or techniques discussed in “Communication Provides Foundation for Being a Best Place to Work” by Kathleen Skidmore-Williams—an article that is located in the Unit IV Required Reading section—or

The purpose of this assignment is to explore the effect

The purpose of this assignment is to explore the effect of brain growth and development, as well as physical growth and development, on childhood. Examine a range of abilities and disabilities, both biological and physical, that students bring with them to the classroom. The “Biological and Physical Development Scenarios,” provided

Compare the pros and cons of consolidating data on a SAN central data

Assess how the Carlson SAN approach would be implemented in today’s environment. Compare the pros and cons of consolidating data on a SAN central data facility versus the dispersed arrangement it replaces. Evaluate the issues raised from the Carlson SAN mixing equipment from a number of vendors and determine the

Criminal Justice: Understanding Investigative Parameters

• Each question should be answered with a minimum of 1-2 paragraphs, so do your research, be specific, be detailed, and demonstrate your knowledge; submitting your project through the appropriate assignment folder. • Answers to the above questions should be submitted in a single Microsoft Word document (.DOC/.DOCX), with answers

Skills and vision for a life of purpose

This is your personal and professional mission statement in alignment with your skills and vision for a life of purpose. In addition to your mission statement, please make sure your paper addresses the following questions: Use all in-class materials, exercises, and discussions – the book used was “Leadership Northouse” Ch

Differentiation – Premium Paper Help

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

500 words min each..2 references each 1. What is a

 500 words min each..2 references each 1.     What is a social stigma? Is there a stigma associated with being homosexual in today’s society? Is a stigma different or the same as a deviant behavior? Where do you see us moving in the future on this point as a

team project: For this project, gather with your team and

team project:   For this project, gather with your team and analyze the financial health of an organization you have collectively selected.You and your team will develop and include recommendations for the improvement of the financial health of the company. The company WE CHOSE is GOOGLE To accomplish this: Explore

Antidepressants are prescribed by medical doctors to treat the symptoms

Antidepressants are prescribed by medical doctors to treat the symptoms of depression, as well as other conditions such as high anxiety, posttraumatic stress syndrome, and obsessive compulsive disorder. The variety of drugs that fall under the category of antidepressants alter how long specific neurotransmitters are available in the synaptic cleft.

This will be the culmination of your project work for

This will be the culmination of your project work for the semester. You will be creating a 10-minute sales pitch on your food and beverage concept. Including the following: P1: Concept Statement (What is it?) P2: Guest Demographics and Psychographics (Who are your guests & why?) P3: Food Menu (Walk

PLEASE FOLLOW INSTRUCTION BELOW, ZERO PLAGIARISM, FIVE REFERENCES NOT MORE

PLEASE FOLLOW INSTRUCTION BELOW, ZERO PLAGIARISM, FIVE REFERENCES NOT MORE THAN FIVE YEARS, SEE RUBRIC/TEMPLATE AND CASE STUDY ATTACHED, PLEASE FOLLOW THE 7TH APA WRITING STYLE/FORMAT  In Weeks 4, 7, and 9 of the course, you will participate in clinical discussions called grand rounds. In one of these three weeks,

Part 2: Wellness Fair Event Plan Health, safety, nutrition, and

Part 2: Wellness Fair Event Plan Health, safety, nutrition, and fitness are topics you have been teaching to your kindergarten students through your mini-lessons; however, it is also beneficial to educate the families on the same topics. Therefore, your goal in this section is to design a wellness fair to

Peers main post: My job as a general manager of

Peers main post:  My job as a general manager of a restaurant managing 20 employees from the front of house and kitchen, excel is my best friend. The main thing I use excel for are the credit card tips. The tips are divided in a pool with servers making 80%

Deficiencies of education system in Mexico

A literature review is written to highlight specific arguments and ideas in a field of study. By highlighting these arguments, the writer attempts to show what has been studied in the field, and also where the weaknesses, gaps, or areas needing further study are. The review should therefore also demonstrate

Overview:For this final course project, you will create a marketing

 Overview:For this final course project, you will create a marketing plan. Please follow the instructions below, and save your completed document in .doc or .docx format. Please be sure to adhere to APA formatting guidelines.*To view the grading rubric for this discussion, click the name of the discussion, then click

IT Virtual Management

Your paper must be in depth and address the main areas of class objectives that include; -Building High performance Virtual teams (Profiles of Virtual team success) (Differentiators of great teams (RAMP model)) (Virtual team launch kit) -Leading virtual teams (How to lead virtual team) (Team accelerating factors) (Facilitating high impact