CO SCI 243 Programming
Your goal is to implement an application that allows employees of a certain wireless phone
company to place customer order.
Your application should:
? get customer information including name, telephone number and address (one field for
each).
? ask for the method of payment: Visa, MasterCard, or cash.
? ask for customer credit card number if he/she selected Visa or MasterCard.
? have four types of phone (Galaxy Note 4 for $299.99, iPhone 6 for $199.99, HTC 8X for
$49.99, and LG G2 for $29.99) and five options (Headphone $175.79, Bluetooth headset
$98.29, Case $64.45, Phone dock $46.29, and Car charger $29.55). All prices are for one
order. Phones and options prices are shown on the screen next to each item (see list of
menus below). The total price should include tax at rate of 9.75%. (Assume the
customers could place one order at a time)
? Gifts – Customers get a gift if they select 2 or more options. Selecting 2 options: Stylus;
select 3 options: 8GB USB drive; select 4 or more options: 8GB Micro SD card. Note:
Maximum one gift per order; Customer may not select a gift.
? calculate the total price when the user selects "Display Order Confirmation".
When the user selects the “Display Order Confirmation” option:
? if input is complete, your application must generate the order confirmation shown below.
? if input is incomplete, your application must generate one message, listing all fields
requiring completion.
The user should be able to input data in any order.
Use function (call-by-value only). Do not use global variables. Do not use arrays.
Make sure to test your program completely before submission. Do not forget to add comments.
Submit your well-documented C++ program via Moodle.
The order confirmation should look like this:
You have placed an order for
HTC 8X ($33.33)
With the following options:
Case ($5.55)
Car charger ($2.22)
Total price: $88.88
Congratulations. You will get the following free gift with your order:
Wireless Mouse
Sold to: John Doe
Telephone: 12345
Address: 123 Nice St.
Paid by: Visa number 998877
Page 2 of 2
Menus:
1. Input Customer Information
2. Main Selection
3. Options
4. Payment Method
5. Display Order Confirmation
6. Exit
-------------------------------
1. Name
2. Phone Number
3. Address
4. Main Menu
-------------------------------
1. A ($44.44)
2. B ($33.33)
3. C ($22.22)
4. D ($11.11)
5. Main Menu
-------------------------------
1. aa ($1.11)
2. bb ($3.33)
3. cc ($4.44)
4. dd ($5.55)
5. ee ($6.66)
6. Main Menu
-------------------------------
1. Visa
2. MasterCard
3. Cash
4. Main Menu
Note: The prices in the menu are not accurate. Use the prices in the project description.