Ruby extra credit assignments

User Generated

zrrrm

Computer Science

Description

Hi, 

I have two extra credit assignment, that I don't have enough time to do. Please take a look at the attachments. 

Please READ THE ASSIGNMENT BEFORE PLACING A BID.

Thanks

* I resubmitted the question, since the tutor have an emergence case and had to cancel the work.

ITEC427_Ruby_ExtraCredit(1).docx 

ITEC427_AWS_ExtraCredit (2).docx 

Unformatted Attachment Preview

ITEC427– Cloud Computing Extra Credit Lab - Ruby Driver Name: Navigator Name: Ruby Resource: http://rubylearning.com/satishtalim/tutorial.html http://www.techotopia.com/index.php/Ruby_Essentials Instructions This is an extra credit assignment that you can work in class or turn in after class 1. 2. 3. 4. 5. 6. 7. Go to Start→Computer Science→ Pgms→ VMWare Player Launch VMware Player Select fedora 14 Select launch Virtual machine When you get to the login page, login as VM user . the pass word is C*vmuser Launch the shell terminal (Applications→System tools→ Terminal Navigate to folder that you created (Hint: Use ls command to find the directory structure and then cd to move to the appropriate folder) 8. Type in irb and press enter 9. You are ready to get started. Good luck! Alternatively you can work on this from home by using the online interactive Ruby interface http://tryruby.org/levels/1/challenges/0 As a part of this exercise complete the following problems. You need to provide the entire code for each exercises and also the irb output from running them. 1. Write a “People” Class in Ruby which contains the following attributes a. Name b. Age c. Address (including Phone Number) d. Employer Name The class should be declared to accept all the above attributes when instantiated. In addition the class should have the following methods a. b. c. d. e. Set Name Set Age Set Address Set Employer Name Display all details for an individual 2. Develop a Palindrome (Examples of palindromes: radar, civic etc. ) class which takes a string for an input string and tests if it is a palindrome or not. The class should be able display appropriate messages in either case 3. Write short notes on Inheritance as it relates to Object Oriented Programming. Your answer should cover the following points a. What it is? b. Why is it useful? c. How can set inheritance attributes for a class in Ruby? ITEC427– Cloud Computing Extra Credit Lab - Ruby Driver Name: Navigator Name: Ruby Resource: http://rubylearning.com/satishtalim/tutorial.html http://www.techotopia.com/index.php/Ruby_Essentials Instructions This is an extra credit assignment that you can work in class or turn in after class 1. 2. 3. 4. 5. 6. 7. Go to Start→Computer Science→ Pgms→ VMWare Player Launch VMware Player Select fedora 14 Select launch Virtual machine When you get to the login page, login as VM user . the pass word is C*vmuser Launch the shell terminal (Applications→System tools→ Terminal Navigate to folder that you created (Hint: Use ls command to find the directory structure and then cd to move to the appropriate folder) 8. Type in irb and press enter 9. You are ready to get started. Good luck! Alternatively you can work on this from home by using the online interactive Ruby interface http://tryruby.org/levels/1/challenges/0 As a part of this exercise complete the following problems. You need to provide the entire code for each exercises and also the irb output from running them. 1. Write a “People” Class in Ruby which contains the following attributes a. Name b. Age c. Address (including Phone Number) d. Employer Name The class should be declared to accept all the above attributes when instantiated. In addition the class should have the following methods a. b. c. d. e. Set Name Set Age Set Address Set Employer Name Display all details for an individual 2. Develop a Palindrome (Examples of palindromes: radar, civic etc. ) class which takes a string for an input string and tests if it is a palindrome or not. The class should be able display appropriate messages in either case 3. Write short notes on Inheritance as it relates to Object Oriented Programming. Your answer should cover the following points a. What it is? b. Why is it useful? c. How can set inheritance attributes for a class in Ruby? ITEC427– Cloud Computing Extra Credit Lab - AWS Name: Ruby Resources: http://rubylearning.com/satishtalim/tutorial.html http://www.techotopia.com/index.php/Ruby_Essentials AWS Resources: http://docs.aws.amazon.com/sdkforruby/api/index.html Instructions This is an extra credit assignment that you can work in class or turn in after class 1. 2. 3. 4. 5. 6. 7. Go to Start→Computer Science→ Pgms→ VMWare Player Launch VMware Player Select fedora 14 Select launch Virtual machine When you get to the login page, login as VM user . the pass word is C*vmuser Launch the shell terminal (Applications→System tools→ Terminal Navigate to folder that you created (Hint: Use ls command to find the directory structure and then cd to move to the appropriate folder) 8. Type in irb and press enter 9. You are ready to get started. Good luck! Alternatively you can work on this from home by using the online interactive Ruby interface http://tryruby.org/levels/1/challenges/0 For this assignment you need to utilize Amazon Web Services (AWS) Elastic Compute Cloud (EC2). Write Ruby code to interface with EC2 and run a parallelizable sample problem of your choosing. Perform the following tasks: 1. Run the sample problem utilizing one “small” EC2 instance (containing one virtual core) and record the runtime along with the solution to the problem (to verify that it calculated correctly). 2. Run the sample problem utilizing one “large” EC2 instance (containing more than one virtual core) and record the runtime along with the solution to the problem (to verify that it calculated correctly). 3. For both runs provide the following: a. Your code b. Your output c. An analysis of the performance difference between number 1 and number 2.
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
I was struggling with this subject, and this helped me a ton!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags