• Home
  • Blog
  • Purdue University Global Python Cloud Computing Reports

Purdue University Global Python Cloud Computing Reports

0 comments

Purpose

Part 1: Python is a
high-level programming language. Bash is a command shell. In Part 1 of
this assessment, you will create a program in a high-level programming
language, Python, and then compare and contrast a high-level programming
language and the command shells.

Part 2: You
have developed applications locally or on a remote server. In Part 2 of
this assessment, you will utilize a cloud instance to deploy the
application. You will also utilize a development tool called Elastic
Beanstalk to do it.

Part 3: You will explore the installation of Python on Windows Server in Part 3 of the assessment.

Read the assessment and respond to the checklist items based on the reading and learning activities.

Assessment Instructions

Part 1: Calorie Counter

Using a server in A Cloud Guru
or your local machine, create a Python program that will ask the users
for the number of grams of carbohydrates, proteins, and fats in an item.
Your program will use this input to determine the number of calories
and present that item back to the user.

Conversion Formulas:

1g Fat = 9 calories
1g Carbohydrates = 5 calories
1g Protein = 5 calories

Pseudocode for the project:

Declare variables
Fat
Carbohydrates
Protein
Calories
Ask the user for the number of grams of Fat
Ask the user for the number of grams of Carbohydrates
Ask the user for the number of grams of Protein
Compute the number of calories (Fat * 9) + (Carbohydrates * 5) + (Protein * 5)
Display the number of calories

If you are going to install Python on your local machine, you can obtain the software from Python.org at https://www.python.org/downloads/. Once you have downloaded the file, launch the executable to install Python on your computer.

If you are going to use A Cloud Guru server, follow the commands in this tutorial Installing Python 3.7 on a Cloud Playground.

Submit the following supporting documents in the appendix of your Microsoft Word document.

  1. Screenshots of installing Python on your local machine or on A Cloud Guru Cloud Sandbox
  2. Include the completed script code as a .py file.
  3. Include
    screenshots of the code working on the A Cloud Guru Server or your
    local machine. Use the following 2 foods for testing (and your
    screenshots)

    1. Nature Valley Granola Bar – 7g Fat, 29g Carb, 3g Protein
    2. Doritos 8g Fat, 18g, Carb, 2g Protein

Provide the following in a minimum 2-page paper:

  • Explain the process of installing Python on your local machine or in A Cloud Guru Cloud Sandbox. (Minimum of 100 words)
  • Describe the process of turning the pseudocode into code. (Minimum of 50 words)
  • Describe the process of making an executable. (Minimum of 50 words)
  • Describe the process or running your program. (Minimum of 50 words)
  • Describe the process of testing and debugging your program.(Minimum of 50 words)

Part 2: Deploy an Application on an Amazon Web Service Cloud Instance

In
your readings for this module, you viewed videos that explained how to
deploy and update a website with Elastic Beanstalk (Elastic Beanstalk
101, Deploying Apps With Elastic Beanstalk, and Updating Elastic
Beanstalk). Now, it is time for you to deploy to the cloud as well. Use Website1 and Website2, which are zip files, to retrace the steps in the lab.

Following the steps in Deploying An Application With Elastic Beanstalk – Demo, install version 1 of the website. Take screenshots of:

  • Opening Elastic Beanstalk on A Cloud Guru cloud sandbox
  • Configuring Elastic Beanstalk
  • Uploading your code (Website1)
  • Successfully launched message
  • Access the link to display the website (version 1)

Following the steps in Updating An Application In Elastic Beanstalk – Demo, install version 2 of the website. Take screenshots of:

  • The environment you created in the previous lab (with Website 1)
  • Application versions for your project
  • Uploading version 2 (Website2.zip)
  • The events page showing the website was updated
  • Access the link to display the website (version 2)

Also, in a minimum 1-page paper, answer the following questions from Updating Elastic Beanstalk:

  • What are the 5 options for processing deployments?
  • Describe what these 5 options are and when you would use each of those methods.

If you have any issues following along with the videos, please refer to Deploying and Updating Applications with Elastic Beanstalk.

Part 3: Running Python on Windows Server in Microsoft Azure

In Part 3, you will move over to the Windows environment in the Microsoft Azure sandbox. Use Guide to Install Python on Windows Server to guide you (or not if you want to try first without it.)

Once
you have your server stood up, you will then download and install
Python for Windows. You will then load your Calorie Counter program from
Part 1 of this assessment and run it in this environment. You will then
write a minimum 1-page paper detailing the steps taken to set up the
server, install Python, deploy, and run your program, and clean up the
sandbox environment. You will also include screenshots of those
processes in the appendix. You will compare and contrast this process to
that when you originally created your project.

In your minimum 1-page paper (not including title page, references, or appendix) you will:

  • Describe how you set up the Windows environment.
  • Describe the process to install Python.
  • Describe the process to bring your code to the server.
  • Describe how you executed your code.
  • Describe how you cleaned up the environment.
  • Compare and contrast this process to when you originally built the program.
  • Include screenshots in the appendix of setting up the Windows environment.
  • Include screenshots in the appendix of installing Python.
  • Include screenshots in the appendix of executing your code. Use the following 2 foods for testing (and your screenshots).
    • Nature Valley Granola Bar – 7g Fat, 29g Carb, 3g Protein
    • Doritos 8g Fat, 18g, Carb, 2g Protein
  • Include screenshots in the appendix of cleaning up the sandbox environment.

Part 3

You are working for a medium size or hybrid sized company that has
grown dramatically over the past two years and continues to expand. The
company creates and manages marketing campaigns for thousands of
companies throughout the southern states. Due to the change in marketing
plans, system administrators and developers have to manually make
changes to maintenance scripts to support weekly and sometimes daily
marketing campaigns.

Also, do some Internet or library research
regarding the costs involved in the company purchasing new hardware to
account for the increases in business compared to implementing a cloud
solution.

Write a 2-page paper that discusses the following:

  1. How would an Azure cloud solution support a company that is growing dramatically?
  2. Discuss how PowerShell scripts can help reduce the headaches of manual changes to maintenance scripts.
  3. Discuss
    the benefits of purchasing new hardware to accommodate for increased
    business compared with implementing a cloud solution.
  4. Discuss
    the disadvantages of purchasing new hardware to accommodate for
    increased business compared with implementing a cloud solution.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}