/*
   programer: Majed abulola
   date: 13/10/2002
   file: repairs.cpp
*/
#include <iostream>
#include "repairs.h"

using namespace std;

     
   repairs_info::
repairs_info()
   {
     
     rr.date = "";
     rr.mileage = "";
     rr.description = "";
     rr.place_of_service = ""; 
     rr.cost = ""; 
     rr.warranty = "";
     rr.thoughts = ""; 
   }

   repairs_info::
repairs_info( const repairs_rec & _rr )
   {
       rr = _rr;
   }
     
   repairs_info::
repairs_info( const repairs_info & _ri )
   {
       rr = _ri.rr; 
   }

   void repairs_info::
read_repirs_info( void )
   {
       cout << "Please enter repair date : " << endl;
       cin >> rr.date;

       cout << "Please enter Mileage : " << endl;
       cin >> rr.mileage;

       cout << "Please enter repair Description : " << endl;
       cin >> rr.description;

       cout << "Please enter Place of Service : " << endl;
       cin >> rr.place_of_service;

       cout << "Please enter repair cost : " << endl;
       cin >> rr.cost;   
            
       cout << "Please enter repair Warranty : " << endl;
       cin >> rr.warranty;

       cout << "Please enter your Thoughts : " << endl;
       cin >> rr.thoughts;
       
       return;
   }

   void repairs_info::
display_vehicle_repair( void ) const
   {

      cout << "Date: " << endl;
      cout << rr.date << endl;

      cout << "Mileage: " << endl;
      cout << rr.mileage << endl;

      cout << "Description: " << endl;
      cout << rr.description << endl;
    
      cout << "Place of Service: " << endl;
      cout << rr.place_of_service << endl;
      cout << "Cost: " << endl;
      cout << rr.cost << endl;

      cout << "Warranty: " << endl;
      cout << rr.warranty << endl;

      cout << "Thoughts: " << endl;
      cout << rr.thoughts << endl;
     
      return;
   }