Bug 448

Summary: Geometric Sequence will not work as expected
Product: Group37 Reporter: Han Yau Ming Tommy <tommyhonym>
Component: Formula operationAssignee: feiwu25-c
Status: RESOLVED FIXED    
Severity: major CC: tommyhonym
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description Han Yau Ming Tommy 2020-11-24 13:36:56 HKT
Overview:
The function will present 0 after the 1st term of the G.S.

Step to Reproduce:
1) Start the calculator
2) Enter 3 to enter Formula Mode
3) Enter 4 to input the GS
4) Enter 2 3 5 for 1st term, common ratio and number of terms
5) Press enter to continue

Expected Result:
2 6 18 54 162

Actual Result:
2 0 0 0 0 

Build Date & Hardware:
24-11-2020 on Windows 10.0.18363
Comment 1 Han Yau Ming Tommy 2020-11-25 21:38:09 HKT
The Geo.java has calculated the sequence in the wrong way, which causes a wrong sequence to be displayed on the cli.
By adding a new variable to handle the inputs, it solves the problem.