ICS Programming‎ > ‎ICSxx-Archive‎ > ‎ICS3C‎ > ‎ICS3C Assignments‎ > ‎

Final Exam Program

Add your name to the day and time of your choice:

FM Radio

Issues

Issue #1:  The currentStation has too many decimal places

    this code will force the station to only have one decimal place
    currentStation =  Math.round(station*10)/10.0;

if  you structure your program wisely, this line only needs to be in the code once.

3U's you may be asked to answer why this happens on the written exam and why this fixes the problem.

Issue #2: Finish Early

If you finish early, make the radio better behaved, more robust, more efficient and reduce duplicate code.

One way to reduce duplicate code is to use the technique used in User to pickup up to four letters of the first and last names.

Given a choice, produce better code and a well behaved radio; rather than adding functionality to  the radio 


Comments