CS 2114 Lecture Notes - Lecture 14: Mobile Suit Gundam, Bar Chart, Hard Coding

71 views3 pages

Document Summary

Project iii tower of hanoi is due friday, march 23. Opendsa homework on recursion is due sunday, march 18 ~ very involved questions and are very important: example: for discs, the solution wil be (cid:2779) (cid:2778) moves. Algorithm solvetowers(numofdiscs, start, temp, end) if (numofdiscs == 1) Move disk from startpole to endpole else { solvetowers(numofdiscs 1, start, end, temp); Move disk from startpole to endpole solvetowers(numofdiscs 1, temp, start, end); Model: contains the data in the application and associated behaviors (getters and setters). View: presents the model to the user in a form suitable for the interaction (gui). Controller: the (cid:498)glue(cid:499) between the model and the views, handles user input from widgets in the application"s views (cid:523)i. e. button click(cid:524), and makes method calls on the model to update the application"s data. Makes code easier to maintain and test. Promotes reusability with the ability to reuse only one class without caring about others. without affecting the others.

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