PreferredCustomer ClassA retail store has a preferred customer pla.docx

This preview shows page 1 - 4 out of 4 pages.

Background image
PreferredCustomer ClassA retail store has a preferred customer plan where customers may earn discounts on all their purchases. The amount of a customer's discount is determined by the amount of the customer's cumulative purchases in the store.Test the program for this Main code!///This program tests assignment 4 code#include <iostream>#include <iomanip>#include "PreferredCustomer.h"using namespace std;int main(){/// Create a PreferredCustomer object.PreferredCustomer customer;/// Variable to hold the amount of purchases.double purchase;/// Set the customer information in the/// PreferredCustomer object.customer.setLastName("Smith");customer.setFirstName("Herman");customer.setAddress("487 Main Street");customer.setCity("Mayberry");customer.setState("NC");customer.setZip("55555");customer.setPhone("555-5555");customer.setCustomerNumber(147);
customer.setMailingList(true);customer.setPurchasesAmount(550.0);/// Display the basic customer information.cout << fixed << showpoint << setprecision(2);cout << "Initial Customer Data\n";cout << "---------------------\n";cout << "Last name: "<< customer.getLastName() << endl;cout << "First name: "

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture