Practice Exercises and Preparation (No submission required)
1. Reading: Textbook Chapters 4 and 5.4.2 on XML file operations, Chapter 9 and Appendix B on IoT and VIPLE.
2. Practice exercises: Questions at the end of Chapters 9. Complete the multiple choice questions. The solution is available in the course web page.
3. Follow Lecture 2-8 to implement a Website with caching.
4. Read Text Chapter 9 and download VIPLE (http://neptune.fulton.ad.asu.edu/VIPLE/) to develop workflow programs for robotics applications.
5. Follow Text Chapter 9 and Appendix B. Implement different applications using finite state machines.
6. Follow the tutorial to run the drive-by-wire program using the Unity simulator. Note, in order to start you program, you need to:
1) After you started the Unity Simulator, you need to go back to VIPLE, to click the "Start" button", the green arrow. Then, the Control window will appear, showing that the robot
is running.
2) When you are controlling the robot using the keyboard, you must keep the Control window on the top in active, not in background.
Task:
IoT Application Composition and Integration
Before you start this part of the assignment, you need to follow the lecture slides and the tutorial in Text
Get started with programming in VIPLE workflow. 1 An ASCII code consists of 7 bits of 0s or 1s. The 8th bit is often generated for parity checking. Write a VIPLE application to generate the even-parity bit for an ASCII code.
1.1 Use the keypress event to enter a string of seven 0s and 1s. The VIPLE diagram counts the number of 1s entered. After seven digits are entered, it outputs the string of eight digits, with the eighth digit to be 1 if the number of 1s entered is an odd number. Otherwise, the eighth digit will be 0. Use Print Line to print the entire eight digits.
1.2 Use a WSDL service or a RESTful service (for example, in ASU Repository) to encrypt the eight-digit value generated in the previous question, save the encrypted value into a variable, and use Print Line to print the encrypted string.
1.3 Write a code activity to read the encrypted value and decrypt the value by calling the corresponding decryption service. You can use either a WSDL service or a RESTful service in this question.
1.4 Generate a random binary number of 7 bits, instead of entering via keyboard. Use the activities in the previous questions to process the number. Put these steps in a loop and iterate the steps for N time, where you can set N = 10.