Guide to install Python on Windows Server Click on Azure sandbox Open Azure sandbox using incognito mode. (right click on the button and click open in incognito mode) Enter in the username is shown....

1 answer below »
pfa


Guide to install Python on Windows Server Click on Azure sandbox Open Azure sandbox using incognito mode. (right click on the button and click open in incognito mode) Enter in the username is shown. Click on the icon to copy to clipboard. Then click next. Enter the password and click Sign in. Check the don’t show this again and click Yes Click on Add at the top of the screen. Select Windows Server 2016 Datacenter (if it is not shown click Get started) Enter in a name for the server (IT305-LastName-FirstName) Scroll down and enter a username and password for the Administrator account Keep everything else the same and click Review + create. Click Create You will see deployment in progress When it is done you will see Your Deployment is complete. Click Go to resource Click Connect in the upper Left and select RDP (if you are using Windows. If you are using MAC you can use SSH and use your terminal application). Click Download RDP File Open the RDP file You can click Don’t ask me again for connections to this computer or not. Click connect. Enter the Administrator credentials you created before Click OK You will be presented with another warning message Click Yes You will then be logged into your Datacenter version of Windows Server. You can choose Yes or no to the next prompt You will be presented with the Server Manager Dashboard Open Internet Explorer Click OK (unless you want to change the default search engine, etc.) Enter www.python.org in the address bar Click OK to the warning that shows You will need to add the website Click Add Click Add and then click Close If prompted again, repeat the process Click Downloads Click to download Python Click Save Then Run Check the Add Python 3.9 to PATH checkbox and click Install Now Install will start Click Close Open File Explorer Click on This PC Open Windows Drive C: Create a new folder IT304 by clicking on the new Folder Icon Open IT304 Right click in the window, select New, select Text Document Name the file HelloWorld.py Open the file Copy in this code: print("HelloWorld.") Save the file Click on the View Tab Click File Name Extensions You will then see that your file is actually HelloWorld.py.txt Rename the file to remve the .txt Click Yes It will now show as a Python file. Click the magnifying glass and type cmd Click on Command Propt Type cd c:\IT304 and press enter Type DIR and you will see our file Type Python HelloWorld.py and press enter You have just run your program on a Windows Server on the Azure Cloud. The other option is to right click on your file and choose Edit with Idle You can then select Run from the menu And chose Module And you will see your program has run. As an alternative to creating your file in notepad and then going through all the processes to change extensions you can also use Python Idle. Click Start and look under Python and you will see Idle application In this window you can type python commands and have it evaluate the code. 2+2 for example Or Print(“Hello”) You will see that it color codes the python commands To start a new program click File and New File This will open a new window that you can type your python code into. Import time print("Hello") time.sleep(5) print ("Goodbye") Go to Run and select Module It will prompt you to save Name this HelloGoodbye.py You will then see in the python shell window Hello followed by Goodbye 5 seconds later. Part 1- Using a server onyour 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 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) a. Nature Valley Granola Bar - 7g Fat, 29g Carb, 3g Protein b. 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) PLEASE ENSURE THAT THE USER ACCOUNT NAME FOR THE SCRIPTING IS CHRIS! Do not use your real name, use mine (Chris). Part 2- In Part 2, you will move over to the Windows environment in the Microsoft Azure sandbox. Use Guide to Install Python on Windows Server(in the attachments) 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.
Answered 9 days AfterMay 15, 2021

Answer To: Guide to install Python on Windows Server Click on Azure sandbox Open Azure sandbox using incognito...

Nivedita answered on May 24 2021
141 Votes
Code
n=input("Name of food : ")
f=int(input("Enter no of grams of fat : "))
c=int(input("Enter no
of hrams of carbohydrates : "))
p=int(input("Enter no of grams og proteins : "))
calorie=f*9+c*5+p*5
print("Total calories in ",n,"is",calorie)
Screenshots
Python Installation on Windows 10
Step1: To install python in windows 10 first of all select the version of python which u want to install.
Step2: Now for the desired version of python visit the official site of python that is python.org to install the Executable Installer.
Step3: Now for example if you are installing python in Windows 10 local machine so click on the executable installer which is appropriate for your Windows 10 local machine.
Step4: Download the executable installer.
Step5: Once your executable installer is downloaded click on open to start installation.
Step6:...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers