Hello Need Help Particular C Program M Trying Add Total Amount Displayed User Chosen Car W Q37244604

Hello, I need help on this particular C++ program. I’m trying toadd a total amount that will be displayed after the user has chosenwhich car they would like to buy from a menu.

Here is what I have so far.

class Car
{
private:
   string First_Name;

   string Date_of_Birth;

   string state;

   float totalHonda;

   float totalNissan;

   float totalFord;

   float totalChevrolet;

   float totalDodge;

   double fees;

  
public:
   Car();
   Car(string, string, string);

   string getFirst_Name();
   string getDate_of_Birth();
   string getstate();
  
  
};

Car::Car()
{
}

Car::Car(string N, string DB, string ST)
{
   First_Name = N;
   Date_of_Birth = DB;
   state = ST;

}

string Car::getFirst_Name()
{
   cout << “Please enter your name.n” <<endl;
   getline(cin, First_Name);

   return First_Name;

}

string Car::getDate_of_Birth()
{
   cin.get();
   cout << “Please enter

OR
OR

Leave a Comment

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