Loading
Get It 231, Spring, 2011 Assignment 2: Converting Currency Amounts ... - Facweb Cs Depaul
How it works
-
Open form follow the instructions
-
Easily sign the form with your finger
-
Send filled & signed form or save
How to use or fill out the IT 231, Spring, 2011 Assignment 2: Converting Currency Amounts online
This guide provides clear instructions on how to fill out the IT 231, Spring, 2011 Assignment 2: Converting Currency Amounts. Follow the steps carefully to ensure your assignment is completed accurately and submitted on time.
Follow the steps to successfully complete your online assignment.
- Click the ‘Get Form’ button to acquire the assignment document and open it in your preferred editor.
- Create a Rails project by executing the command: rails new currency in your terminal.
- Change your directory to the currency folder by typing cd currency in the terminal.
- Generate a controller named convert with the actions dollarsToEuros and eurosToDollars by entering: rails generate controller convert dollarsToEuros eurosToDollars.
- Edit the view file app/views/convert/dollarsToEuros.html.erb. Include a form that takes a dollar amount and code to display its equivalent in euros using the member variables @dollars and @euros. Refer to the example file app/views/convert/daysToSeconds.html.erb for guidance.
- Modify the dollarsToEuros action in app/controllers/convert_controller.rb. Add include ActionView::Helpers::NumberHelper at the beginning, and create member variables @dollars and @euros based on the input from the view. Also, introduce @formatteddollars and @formattedeuros variables for formatting using number_to_currency function.
- Repeat steps 5 and 6 for the view file app/views/convert/eurosToDollars.html.erb.
- Adjust the routes in config/routes.rb. After the existing get lines, include post lines for both actions as follows: post 'convert/dollarsToEuros' and post 'convert/eurosToDollars'.
- Test your changes using the URLs localhost:3000/convert/dollarsToEuros and localhost:3000/convert/eurosToDollars in your web browser to ensure they work as intended.
- Once your project is complete, zip the project folder as currency.zip and submit it through the designated online submission system.
Complete your IT 231 assignment online to ensure timely submission and adherence to requirements.
Industry-leading security and compliance
US Legal Forms protects your data by complying with industry-specific security standards.
-
In businnes since 199725+ years providing professional legal documents.
-
Accredited businessGuarantees that a business meets BBB accreditation standards in the US and Canada.
-
Secured by BraintreeValidated Level 1 PCI DSS compliant payment gateway that accepts most major credit and debit card brands from across the globe.