01:198:111 Lecture Notes - Lecture 9: Modular Programming, Pseudocode, Local Variable

142 views2 pages
Verified Note

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents