All About C++

Get Pure Concepts of C++

Friday, 5 February 2016

C++ project of car workshop very easy,,,use of funtion,loop,color,sleep many other

C++  Project of car workshop


#include<iostream>
#include<Windows.h>
using namespace std;
class basic

{
protected:
double cost;
string no;
char ch, op;
public:
void show(char s)
{
system("color E5");
cout << "\n\n\n\n\n\n\n\n\n\n\n" << endl;
for (int i = 0; i<74; i++)
{
cout << s;
}
cout << "\n WELCOM TO CAR REPAIRING CENTER         " << endl;
for (int i = 0; i<74; i++)
{
cout << s;
}
cout << endl;
char line = 220;        //loading line design
cout << endl << endl << "\tLOADING.......\n\n\t\t";
cout << endl << "\t\tPLEASE WAITE.......\n\n\t\t";
for (int i = 0; i<100; i++)
{
cout << line;
Sleep(20);        //Loading line speed
}
system("cls");
}
void details()
{
cout << " Instructions & Guidance " << endl;
cout << "\n*don't touch anything " << endl;
cout << "\n*No smoking please " << endl;
cout << "\n*only 4 cars can be repaired at a time " << endl;
cout << "\n*all new technologies are used here " << endl;
cout << "\n*cost for repairing is one per thing RS 500 " << endl;
cout << "\n*cost for washing a car is RS 1000 " << endl;
cout << "\n*cost for survice is RS 2000 " << endl;
cout << "\n*for car washing enter into room 1 " << endl;
cout << "\n*for repairing engine enter into room 2 " << endl;
cout << "\n*for survice enter into room 3 " << endl;
cout << "\n*for replacing something enter into room 4 " << endl;
{
system("pause");
system("cls");
}
}
char getdata()
{
cout << " we have following functions available " << endl;
cout << " * repairing (r) \n ";
cout << " * washing (w) \n ";
cout << " * removing (m) \n ";
cout << " * changing (c) \n ";
cout << " select your option " << endl;
cin >> ch;
//////////////////////////////////////////
switch (ch)
{
case 'r':
cout << "You are advice to go shop 1 " << endl;
Sleep(3000);
break;
case 'm':
cout << "You are advice to go shop 2 " << endl;
Sleep(3000);
break;
case 'w':
cout << "You are advice to go Washing shop " << endl;
Sleep(3000);
break;
case 'c':
cout << "You are advice to go Engineering shop " << endl;
Sleep(3000);
break;
}
///////////////////////////
return ch;
system("cls");
}

void get()
{
cout << " enter your option " << endl;
cin >> ch;
cout << " do  u want to enter anyother options ? ( y / n ) " << endl;
cin >> ch;
while (ch != 'n')
{
cout << " enter your option " << endl;
cin >> ch;
cout << " Are you sure  ? ( y / n ) " << endl;
cin >> ch;
}
///////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////
cout << " your parts will  be repaired after 10 minutes " << endl;

system("cls");
}
};
//////////////////////////////////////////////////////////////////////////////////
class repairing : public basic
{
protected:

public:
void parts()
{
cout << " price list for repairing items  " << endl;
cout << "\n a." << "Engine = 500 " << endl;
cout << "\n b." << "patroll tank = 300 " << endl;
cout << "\n c." << "cylenser = 1000 " << endl;
cout << "\n d." << "oil duct = 2000 " << endl;

basic::get();
cout << " your items are being repaired " << endl;
}

};
//////////////////////////////////////////////////////////////////////////////
class washing : public basic
{
public:
void wash()
{
cout << " price for car washing is 1000 RS " << endl;
cout << " your car will be washed after Repairing " << endl;
Sleep(5000);
char line = 220;        //loading line design
cout << endl << endl << "\tLOADING.......\n\n\t\t";
for (int i = 0; i<80; i++)
{
cout << line;
Sleep(20);        //Loading line speed
}
system("cls");
}
};
/////////////////////////////////////////////////////////////////////////////////
class changing : public basic
{
protected:
public:
void changes()
{
system("color E");
cout << " price list is " << endl;
cout << "\n a. front mirror = 2000 ";
cout << "\n b. back mirror = 500 ";
cout << "\n c. tyres = 200 each ";
basic::get();
cout << " your parts will be changes after 5 minutes " << endl;
Sleep(5000);
system("cls");
}
};
/////////////////////////////////////////////////////////////////////////////////
class removing : public basic
{
protected:
public:
void remove()
{
system("color 7D");
cout << "Enter what you want to remove here" << endl;
basic::get();
cout << "you are advice to contect to eng. for better work" << endl;
Sleep(5000);
system("cls");
}
};
//////////////////////////////////////////////////////////////////////////////////
int main()
{
system("color B8");
char a;
repairing r;

washing w;
changing c;
removing m;
r.show('*');

r.details();
a = r.getdata();
char line = 220;        //loading line design
cout << endl << endl << "\tLOADING.......\n\n\t\t";
for (int i = 0; i<80; i++)
{
cout << line;
Sleep(20);        //Loading line speed
}
system("cls");
if (a == 'r')
{
r.parts();
}
if (a == 'm')
{
c.show('*');
m.remove();
}
if (a == 'c')
{
c.changes();
}
else if (a == 'w')
{
c.show('*');
w.wash();
}

else

{
cout << " invalid option " << endl;
}
cout << " THANK YOU " << endl;
system("pause");
return 0;
}

15 comments:

  1. car related workshop helps us to acquire knowledge regarding the car. Example:acura tsx manual

    ReplyDelete
  2. Wow! This can be one particular of the most beneficial blogs We have ever arrive across on this subject. Actually Great. I'm also an expert in this topic so I can understand your hard work.
    we buy cars
    we buy scrap cars

    ReplyDelete
  3. Thank you very much for the information provided! I was looking for this data for a long time, but I was not able to find the trusted source.. I’ve learn several good stuff here. Definitely price bookmarking for revisiting. I wonder how so much attempt you place sex make this kind of fantastic informative web site.
    broken car collection
    car removal logan

    ReplyDelete
  4. This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. car wash laramie wy

    ReplyDelete
  5. Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. Auto Meter Gauges

    ReplyDelete
  6. Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. eibach lowering springs

    ReplyDelete
  7. Unique cash for cars is one of the top companies in Gold Coast who pays top cash for cars up to $9,999 Cash For Cars Gold Coast When we buy your car for cash, we also try to make the procedure as convenient for our valued customers as possible cash for cars logan | Address: 135 Bradman St, Acacia Ridge QLD 4110, Australia | Email: info@uniquecashforcars.com | Phone: 0732 196 670

    ReplyDelete
  8. Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. battery jump service

    ReplyDelete
  9. Hello loved all that you shared and you are right thanks for providing this important blog with us about cars for cash Ipswich services with unique content and ideas it will very helpful thanks a lot for sharing have a nice week.
    cars for cash ipswich

    ReplyDelete
  10. Great post, and great website. Thanks for the information! https://vinfastvinh.net.vn

    ReplyDelete
  11. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Vehicle Recovery Companies

    ReplyDelete
  12. Although the cars were soon selling worldwide, the car factory was not completely self-sufficient yet. Lamborghini Rental

    ReplyDelete
  13. "John C. Carver's blog is a beacon of leadership in the educational community. His commitment to student achievement, equity, and innovation shines through every article. https://aiautomationindustry.blogspot.com/2023/04/Challenges And Opportunities Of AI And Automation In Industry
    .html It's a refreshing and empowering platform that encourages superintendents to continuously strive for excellence and make a lasting impact on students' lives."




    ReplyDelete
  14. I feel confident driving this car in any weather conditions. Largo Locksmith

    ReplyDelete