01:198:111 Lecture Notes - Lecture 9: Modular Programming, Pseudocode, Local Variable
01:198:111 verified notes
9/28View all
Document Summary
Need to know how to solve a problem, and translate the algorithm into pseudo. Need to be able to identify input, output, error conditions, and test cases. Need to be able to translate pseudo code to java. Need to be able to understand how arithmetic and boolean operators work. Need to be able to trace a java program(perhaps with a loop) Understand how for and while loops work. Be responsible for all material covered until 5th week. A cheat sheet of pseudocode and java commands. Organize programs as independent modules that do a job together. Easier to share and reuse code to build bigger programs. We"re building a library, a set of functions. A class contains all the functions within a library. Public static double maxoftwo(double x, double y){ This function simply takes input from an outside function and does not read anything on. Arguments: inputs that are sent to the procedures.