Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes
asked in old_CSC201 by (1 point)

1 Answer

+2 votes

My code for computeBill was less than 20 lines of code, but if yours is longer than you'll either need to "refactor" it to be more efficient or have it call some functions. For example, the code that is computing the bill for code of W could be put in a method called by computeBill and then the bill for the weekly option returned to computeBill.

answered by (1 point)
...