---
# System prepended metadata

title: '# WORKSHOP 7 GROUP '

---

Main process
1. Start 
2. Delcare userInput, monthlyMember
3. Scan QR code
4. monthlyMember?
    4.1 yes? goto #5
    4.2 no? goto # subproccess regularCustomer 
5. Does user want custom?
    5.1 yes? goto # subprocess customMonthlyMember
    5.2 no? goto #subprocess monthlyMember
6. End

customMonthlyMember
1. Start
2. declare, monthlyMemberwash, prePaid, washOptions
3. monthlyMemberwash > 2 times per day?
    3.1 Yes: cannot have another wash, go to #4
    3.2 No : can have another wash, go to #5
4. Do not wash the car, go to #9
5. Wash the car and decrement their remaining wash count for the day, go to #7
6. Pay the regular price for wash option.
    6.1 Basic? 
        Yes: pay $5.50, go to #7
    6.2 Clean?
        YEs: pay $ 8.75, go to #7
    6.3 Super Clean? 
        Yes: pay $12.50, go to #7
7. Finish car wash.
8. Print the receipt. 
9. End - customMonthlyMember


monthlyMember
1. Start
2. declare monthlyMember, dailyWashes
3. dailyWashes >= 1 or <=2?
	3.1 yes? #goto 5
	3.2 no?
		3.2.1 print error "Exceeded Daily Wash Limit"
		3.2.2 do not wash, goto #8
4. Wash Car
	4.1 dailyWashes = dailyWashes - 1
5. Finish Car Wash
6. Print receipt
7. End - monthlyMember

regularCustomer
1. Start
2. declare monthlyMember, dailyWashes, user
4. dailyWashes >= 1 or <=2?
	4.1 yes? #goto 5
	4.2 no?
		4.2.1 print error "Exceeded Daily Wash Limit"
		4.2.2 do not wash, goto #8
5. Wash Car
	5.1 dailyWashes = dailyWashes - 1
6. Finish Car Wash
7. Print receipt
8. End - regularCustomer