2.3P - Faculty of Science Engineering and Technology Introduction to Programming Pass Task 2.3 Hospital Charges Overview Procedures are a useful

2.3P - Faculty of Science Engineering and Technology...

This preview shows page 1 - 2 out of 3 pages.

Faculty of Science, Engineering and Technology Introduction to Programming Pass Task 2.3: Hospital Charges Overview Procedures are a useful tool for capturing the instructions needed to perform a task, but sometimes you need to be able to capture the instructions needed to calculate a value. Using functions you can now create artefacts to encapsulate the steps needed to calculate a value. Purpose: Learn how to use functions and write your own functions. Task: Write and use some simple functions and procedures Time: This task should be completed before the start of week 3. Resources: Chapters 6 and 8 of ‘Learn to Program’ Chapt 6: Flow ControlChapt 8: Writing Your Own Methods Learn Ruby the Hard Way:Learn Ruby the Hard Way: Functions can return something. Submission Details You must submit the following files to Doubtfire: Program source code demonstrating your creation and use of functionsScreenshot of the Terminal showing the execution of your program.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture