Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this project, you will be focusing on allowing a customer to purchase one of three available items. You will also be authenticating the users

In this project, you will be focusing on allowing a customer to purchase one of three available items. You will also be authenticating the users credentials (username and password) at least once. The customers account details are as follows:

Customer Username Password Account # Member Level Store Credit Address
Jane Smith jsmith blue123 123456789 Gold 3000.00 100 W New Haven Ave, Melbourne, FL 32901

Product information is as follows:

SKU Name Items in unit Price per unit Quantity on Hand
HF-342 in Bolt 50 20.00 200
LK-322 in Nail 25 5.75 76
KF-231 Hammer 1 15.23 100

Create a C++ program to allow the user to purchase an item by entering the desired SKU and quantity. 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. 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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

LO2 Discuss important legal areas regarding safety and health.

Answered: 1 week ago