Needs Written C Run Visual Studio Need Help Writing Header File Class Bu Try Run Doesnt Ou Q37126604

This needs to be written in c++ and run in visual studio. I needhelp writing this header file for a class bu when i try to run itit doesnt output the right fee or right discount.

Heres what i have.

#include <iostream>
#include <string>

using namespace std;

class STARmemberType
{
private:
   double amtSpent;
   string name;
   int ID;
   double fee;
   double discount;

public:
   void print()const;
   void setAll();
   void StoreDiscount();
   STARmemberType(double, string, int, double,double);
   STARmemberType();
};

//default constructor to set default values
STARmemberType::STARmemberType()
{
   string name = ” “;
   int ID = 0;
   double amtSpent = 0;
   double fee = 0;
   double discount = 0;
}

STARmemberType::STARmemberType(double spent, stringcustomerName, int Identification, double memFee, doublestoreDisc)
{
   name =

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.