Bug 412 - No factorial function.
Summary: No factorial function.
Status: RESOLVED FIXED
Alias: None
Product: Group37
Classification: Unclassified
Component: calculation operation (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: feiwu25-c
URL:
Depends on:
Blocks:
 
Reported: 2020-11-16 23:59 HKT by PAN Zhenyuan
Modified: 2020-11-19 23:00 HKT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.