CSIS 354 Integrative Programming and Technologies Assignment

Assignment Help Python Programming
Reference no: EM132388448

CSIS 354 Integrative Programming and Technologies Assignment, Liberty University, USA

CONSUMING A WEB SERVICE WITH PYTHON -

Consuming data from programmable web based API's is growing rapidly. According to ProgrammableWeb, in just six years (2010-2016), web API counts increased 758 percent with the majority being REST based. This is driven by a myriad of factors but growth of cloud based applications, (distributed computing by another name), and the resulting need to integrate the different categories is a major factor.

Description - Write a client to consume a REST web service of you choice using Python. There are many listings of such services but an excellent resource is ProgrammableWeb. Your information should produce useful information. I.e. a dump of cryptic data is not the desired product. Examples could be a weather forecast, stock quote, Bible verse, etc.,

Your solution should present the user with a question with the answer contributing to the data used in the REST web service call. For example, a weather forecast would prompt the user to enter a zip code or other location information. Once the web transaction is complete, the program should prompt again with the same question to complete another transaction. This should continue until the user enters a specified termination condition.

You output must be presented in an understandable manner. Dumps of XML, JSON, etc., are substandard and will be graded accordingly.

MESSAGE QUEUES WITH RABBITMQ -

Description - As discussed in this modules readings, indirect messaging is sometimes the preferred method of facilitating communications among multiple computers in a distributed system. One method of facilitating this is message queues.

Assignment - In this assignment you will need to install Erlang and the RabbitMQ server for your operating system. Finally, for protocol support you will need to install the Pika module. From PyCharm inside your project go to File > Settings > Project Settings > Project Interpreter. From there click on the green "+" to add a package to the project. Enter Pika in the search field at the top and select Add Package.

Now, you will need two Python source files. One sender (send.py) and one receiver (receive.py). The sender will need establish a connection, channel and declare a queue. It will then need to send a message to the message queue once per second. You may use a while loop and the time.sleep function for this. The message should be something unique, like "My name is John Doe and I love Python! #" where is # is a running counter so you can see the message number. Each of the receivers, will need to establish a connection to the same queue, register a call back, and start consuming any messages received. When a message is received it should be output to standard out.

This assignment is not very realistic when implemented on a single computer but recognize that "localhost" need not be the address. The message queue could be located on one server with dozens of senders and receivers each located anywhere.

As you are running your code, noticed that you can start the server. It will begin sending messages. Wait a few seconds and start the receiver. Notice that all messages are received even though some were sent before the receiver was started. This is one of the benefits of message queues, i.e. it maintains the message history and can deliver messages to clients even if they momentarily lose connectivity.

Attachment:- Integrative Programming and Technologies Assignment Files.rar

Reference no: EM132388448

Questions Cloud

How many years will you be able to withdraw : You want to withdraw all your money when it reaches $14,440 (Future Value). In how many years will you be able to withdraw all your money?
Create hypothetical business : Create a hypothetical business with approximately 50 to 100 employees. Place the employees in two or three different departments.
How much would you need to deposit in the account each month : Suppose you want to have $600,000 for retirement in 20 years. Your account earns 10% interest. How much would you need to deposit in the account each month?
Disease between population a and population b : What is the odds ratio of having the disease between population A and population B?
CSIS 354 Integrative Programming and Technologies Assignment : CSIS 354 Integrative Programming and Technologies Assignment, Homework Help, Liberty University, USA - CONSUMING A WEB SERVICE WITH PYTHON
Describe the methods and results of the study : In contrast to qualitative designs, which are all basically non-experimental and descriptive, quantitative research designs may be either experimental.
About the situational awareness : Discusses situational awareness. Much of the security efforts of the past have been centered around prevention and protection.
Which office contains the health-related data : Healthcare data at a community, county, or region level and state level determine healthcare spending and services allocated for individuals.
Describe the connections between privilege and religion : For citizens in some countries, religious oppression is common and long standing. While freedom of religion is guaranteed in the U.S., religious intolerance.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd