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

Select an article from Business Week, Forbes, Wall Street Journal,

Select an article from Business Week,Forbes, Wall Street Journal, etc. that you think describes some internal factors fora specific company. Answer these questions and be specific. – 25 pts.o Identify and discuss two internal factors, using information from chapter 4,for the company in the article. Within your discussion determine and

our priority is that students are provided with strong educational

 our priority is that students are provided with strong educational programs and courses that allow them to be servant-leaders in their disciplines and communities, linking research with practice and knowledge with ethical decision-making. This assignment is a written assignment where students will demonstrate how this course research has connected and put

Critical Thinking ; Please note how these programs Microsoft Access

Critical Thinking ; Please note how these programs Microsoft Access and Excel will benefit and may be used in your daily life , you should label each program separate and write about them separated .    Let’s Pause and Reflect on your journey with the MICROSOFT ACCESS relational database management application.

CYB610 Project 3: Common computing platforms

  You are an Information Assurance Management Officer, IAMO, at an organization of your choosing. One morning, as you’re getting ready for work, you see an email from Karen, your manager. She asks you to come to her office as soon as you get in. When you arrive to your

Each pap.. needs to be between 800-1,000 words- no more

  Each pap.. needs to be between 800-1,000 words- no more and no less. You must also use 12-point Times New Roman font. You need to save your file as either Microsoft Word format or rich text format (.rtf) in order for the summary to be uploaded to Webcourses. It

Social aspect of advertising – 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.

What is your conception of the digital health ecosystem? Discuss

What is your conception of the digital health ecosystem? Discuss the significance and impact of the digital health ecosystem on the transformation of healthcare services delivery systems in the United States. How does the evolution of the digital health ecosystem in the United States compare to other developed and developing

1. Your boss has asked you to put together an

1. Your boss has asked you to put together an informal outline/presentation on the risk-return tradeoff. In your own words, discuss the tradeoff. Does a risky investment always equal a big payoff and vice versa? What does it mean to be a risk-averse versus a risk-taker? What types of information

DQ1 List three to five of the most significant decisions

DQ1 List three to five of the most significant decisions you have made in your lifetime. To what degree did your emotions play a role in those decisions? DQ2 What is “emotional intelligence” (EQ)? How does it compare to IQ? How can your EQ help you? Is one (EQ or

The ethical theories called RELATIVISM and SITUATION ETHICS seem to

  The ethical theories called RELATIVISM and SITUATION ETHICS seem to be rampant in our society today many times overwhelming people with who have a well developed sense of CONSCIENCE. Define these terms Do you agree or disagree with the above statement and WHY? Defend your position with some examples

This Discussion assists in solidifying your understanding of statistical testing

  This Discussion assists in solidifying your understanding of statistical testing by engaging in some data analysis. This week you will work with a real, secondary dataset to construct a research question, estimate a multiple regression model, and interpret the results. Whether in a scholarly or practitioner setting, good research

Please answer all the following questions . include the questions in the answers APA style, references, less than 20 % similarity. The textbook in ESENTIAL LEADERSHIP AND MANAGEMENT. 1-which of the fo Nursing Assignment Help

Please answer all the following questions . include the questions in the answers APA style, references, less than 20 % similarity. The textbook in ESENTIAL LEADERSHIP AND MANAGEMENT. 1-which of the following behaviors may be (1) ethical but illegal, (2) legal but unethical, (3) illegal and unethical, and (4) legal

The movie is a great way to learn about the

The movie is a great way to learn about the collapse of financial system in 2007 and how this financial crisis led to 2008 Great Recession. For this extra credit discussion you will need to watch the “Big Short” movie (Links to an external site.) and answer some questions. You can

“Time to Fill”: Reflects the time for the entire hiring

   “Time to Fill”: Reflects the time for the entire hiring process — from the approval of the job requisition until the candidate accepts the job. In contrast, “Time to Hire” measures the speed at which a candidate is processed, assessed, interviewed, and accepted for a job (recruiting efficiency). A long

Complete your Research Project 1 in a Word document, APA

  Complete your Research Project 1 in a Word document, APA formatted, and then submit it in the Assignment section of the classroom by midnight, EST, Day 7.The instructions concerning this assignment as well as the grading rubric are reproduced below. Pricing strategy varies significantly across different market structures. The