-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLat Modul.cpp
More file actions
56 lines (37 loc) · 977 Bytes
/
Lat Modul.cpp
File metadata and controls
56 lines (37 loc) · 977 Bytes
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
#include <stdio.h>
int galoon(int area){
int galoonreq;
galoonreq=area/115;
printf("Number of Paint Required: %d galoon", galoonreq);
}
int hours(int area){
int hoursoflabor;
hoursoflabor = (area/115)*8;
printf("\nHours of Labor Required: %d hours", hoursoflabor);
}
int charges(int area){
int laborcharges;
laborcharges=((area/115)*8)*20;
printf("\nLabor Charges : %d.00 $",laborcharges);
}
int totalcost(int area, int price){
int total;
total=((area/115)*price)+(((area/115)*8)*20);
printf("\nTotal Cost of The Paint Job : %d.00$",total);
}
int main(){
int area;
int price;
printf("Enter Area of The Wall: ");
scanf("%d",&area);
printf("Enter The Price of The Paint: ");
scanf("%d", &price);
printf("\n\n");
printf("~~Calculation~~\n");
galoon(area);
hours(area);
charges(area);
totalcost(area,price);
printf("this line is the change that I made");
return 0;
}