08.17.15 - 12.13.15
Introduction to Computer Programming
Tuesday
05:30 PM - 08:20 PM
A readable ruby program is produced | 5 pts |
Program runs without errors or warnings | 5 pts |
Program conforms to logic as indicated in the pseudocode | 40 pts |
Total | 50 pts |
Attached to this assignment you'll find three files, planet_weight.txt and planet_weight.rb. the txt file is the pseudocode that was used to write the rb file which is written in the Ruby programming language. Study the pseudocode and the ruby code side by side and make notes of how the following things are done in Ruby:
With those elements of the Ruby language in mind, translate the attached bankaccount pseudocode for managing the balance of a bank account into a working Ruby program.
You can test your Ruby code in a modern web browser by going to repl.it or by installing Ruby on your computer.