-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmens.cpp
108 lines (83 loc) · 2.01 KB
/
mens.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#include <iostream>
#include <stdio.h>
#include <time.h>
using namespace std;
class menz{
string name;
int number;
float price;
float descond;
public:
void set_name()
{
cout<<"Enter your Name :..."<<endl;
cin>>name;
}
void set_number()
{
cout<<"Enter your Number :20+ "<<endl;
cin>>number;
}
void set_price()
{
cout<<"Enter your price : $"<<endl;
cin>>price;
}
void set_descond()
{
cout<<"Enter your Descond : %"<<endl;
cin>>descond;
}
float get_area()
{
cout<<"Total : "<<price-(price*descond)/100<<endl;
}
void print()
{
cout<<"\t \t ------------------------------------------"<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t ||||||||||||||||||||||"<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t Name : "<<name<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t Number : "<<"0"<<number<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t price : "<<price<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t Discount : "<<"%"<<descond<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t Total : "<<get_area()<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t \t ||_||_||_||_||_||_||_||"<<endl;
cout<<"\t \t | "<<endl;
cout<<"\t \t \t \t \t \t \t | "<<endl;
cout<<"\t \t ------------------------------------------"<<endl;
}
~menz()
{
}
};
int main()
{
cout<<"\t \t \t \t \t Mens Club "<<endl;
menz s;
s.set_name();
s.set_number();
s.set_price();
s.set_descond();
s.get_area();
s.print();
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
printf ( "The current date/time is: %s", asctime (timeinfo) );
return 0;
}