Help With Assignments

Recent Question

Activity: Programming – Ruby 1 (Wk1)
Context: You will apply the content and readings related to the Ruby Programming Language by completing the following Ruby Programming Activity
Installation: The Programming Guidelines and Installation page contains instructions for installing Ruby on your computer.
Task Description: Complete these activities from the “Ruby – Day 1” self-study. Demonstrate or test each activity.
• Print the string “Hello world.”
• For the string “Hello Ruby,” find the index of the word “Ruby.”
• Print the string “This is sentence number 1” where the number 1 increments from 1 to 10.
• Write a program that picks a random number. Let a player guess the number telling the player whether the guess is too high or too low.
Delivery: Submit your MS Word document to the Week 1 Assignment Drop Box by Sunday (midnight).
Programming Guidelines and Installation
-Read the directions and directly you will be directed in the right direction.-
- Carroll
In order to prepare for the programming activities in the course, take the time to review the guidelines and instructions for downloading and installing the programs that will be used in the course. In addition, review the assessment criteria for all of the programming activities.
Context: You will apply the content and readings related to the Ruby Programming Language by completing the following Ruby Programming Activity.
Task Description: Complete these activities from the “Ruby – Day 2” study-study. Demonstrate or test each activity.
1. Print the content of an array of 16 numbers, 4 numbers at a time, using just the “each” Ruby construct. Do the same using “each_slice” in “Enumerable.”
2. Write a simple grep that will print the lines of a file having any occurrences of a phrase anywhere in that line. You will need to do a simple, regular expression match and read lines from a file.
Delivery: Submit your MS Word document to the Week 2 Assignment Drop Box by Sunday (midnight).
Assessment: Refer to the programming rubric.
Activity: Programming – Prolog 1
Context: You will apply the content and readings related to the Prolog Programming Language by completing the following Prolog Programming Activity.
Task Description: Complete the following coding requirements.
1. Codify the following rules into a Prolog knowledge base.
1. Pam is the parent of bob
2. tom is the parent of bob
3. tom is the parent of liz
4. bob is the parent of ann
5. bob is the parent of pat
6. pat is the parent of Jim
2. Run a number of queries against the knowledge base to verify its accuracy.
3. Add an offspring rule to the knowledge base; offspring( Y, X ) :- parent( X, Y ).
4. Run a number of queries to verify the accuracy of the offspring rule.
5. Again, run a number of queries against the knowledge base to verify its accuracy.
6. The Prolog variable Y in the expression parent( tom, X ), parent( X, Y ) will yield Tom’s grandchildren. Generalize this expression and create a rule in the knowledge base to identify grandparents.
7. Run a number of queries against the knowledge base to verify its accuracy.
8. Append gender rules to the knowledge base to specify the gender of each person.
1. Pam is female
2. bob is male
3. tom is male
4. liz is female
5. ann is female
6. pat is female
7. Jim is male
9. Again, run a number of queries against the knowledge base to verify its accuracy.
10. Create a “mother rule” in the knowledge base that determines which “atoms” have female parents.
11. Run a number of queries against the knowledge base to verify its accuracy.
Delivery: Submit your MS Word document to the Week 3 Assignment Drop Box by Sunday (midnight).
Assessment: Refer to the programming rubric located in Week 1.
Programming, Prolog (Wk5)
Context: You will apply the content and readings related to the Prolog Programming Language by completing the following Prolog Programming Activity.
Task Description: Complete these activities from the “Prolog – Day 2” self-study.
1. Reverse the elements in a list.
2. Find the smallest element in a list.
3. Sort the elements of a list.
Delivery: Submit your MS Word document to the Week 4 Assignment Drop Box by Sunday (midnight).
Assessment: Refer to the programming rubric located in Week 1.
Programming Haskell (Wk6)
Context: You will apply the content and readings related to the Haskell Programming Language by completing the following Haskell Programming Activity.
Task Description: Complete the following coding requirements.
Complete these activities from the “Haskell – Day 1” self-study.
1. Write a function that takes a list and returns the same list in reverse.
2. Test the reverse list function using a number of lists with different data types and lengths.
Complete these activities from the “Haskell – Day 2” self-study.
1. Write a sort that takes a list and returns a sorted list.
2. Test the sort function using a variety of lists with different lengths.
Delivery: Submit your MS Word document to the Week 6 Assignment Drop Box by Sunday (midnight).
Assessment: Refer to the programming rubric located in Week 1.
Programming, Haskell (Wk7)
Context: You will apply the content and readings related to the Haskell Programming Language by completing the following Haskell Programming Activity
Complete these activities from the “Haskell – Day 2” self-study.
1. Write a sort that takes a list and a function that compares its two arguments and then returns a sorted list.
2. Test the new sort function with various comparisons, different lists, and lengths of lists.
3. Write a function that takes an argument x and returns a lazy sequence that has every third number, starting with x. Then, write a function that includes every fifth number, beginning with y. Combine these functions through composition to return every eighth number, beginning with x+y.
4. Test this function using a variety of x and y values.
Delivery: Submit your MS Word document to the Week 5 Assignment Drop Box by Sunday (midnight).
Assessment: Refer to the programming rubric located in Week 1.