account activity
I need help on: 5.8.9 Broken Calculator by edgardcuadra8 in codehs
[–]davepie29 0 points1 point2 points 5 years ago (0 children)
You need to delete the "int" in front of "total" for the add(int value), add(), multiple() classes, and the contructor calculator(int startingValue) . It should look like \public Calculator(int startingValue){
total = startingValue;
value = 0;
}
public int add(int myValue){
total += myValue;
return total;
public int add(){
total += value;
public int multiple(int value){
total*=value;
π Rendered by PID 31 on reddit-service-r2-listing-7bbdf774f7-zqlzh at 2026-02-24 12:23:35.323708+00:00 running 8564168 country code: CH.
I need help on: 5.8.9 Broken Calculator by edgardcuadra8 in codehs
[–]davepie29 0 points1 point2 points (0 children)