Bug 412

Summary: No factorial function.
Product: Group37 Reporter: PAN Zhenyuan <pzyhihihi>
Component: calculation operationAssignee: feiwu25-c
Status: RESOLVED FIXED    
Severity: enhancement CC: danielsuendaniel, tommyhonym
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description PAN Zhenyuan 2020-11-16 23:59:22 HKT
Overview:
There is no factorial function, but there is supposed to be one.

Step to reproduce:
1) Start the calculator program
2) Press 1, press Enter
3) Press 2, press Enter
4) Input 3!, press Enter 

Expected Result:

3!=6.0

Press enter to continue....

Actual Result:

Syntax Error at: !

Press enter to continue....

Build Date & Hardware:
16-11-2020 on Window 10.0.19041
Comment 1 danielsuendaniel 2020-11-19 23:00:43 HKT
The factorial class is not implemented in the Operator.java and CalculatorProcessor.java. Now the implementation is done. Problem solved. User can now input '!' to get the factorial ans from that.