APUS Wk 4 Python Interactive Mode Creating a Python Program in Batch Mode Exercise
Question Description
Having some trouble with this coding, here are the instructions
Week 4 Assignment: Getting Started Coding with Python Instructions: You will complete this assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this site. Download Python: This video demonstrates how to download version 3.4 or the latest version based on your operating system type. Downloadable Video Transcript for Downloading Python.docxYou should download the Python programming language editor and compiler. To download Python (Download version 3.4 or the latest version–view the video above ). You may use this link to practice your codes. You will not be able to save from here, but it is a great site for practicing your work. You can copy the code from this link and paste it into .py file or into the student submission text area. 1. Create a comment block (starts at line 1 of your code) with the following information: Your Name Course Name, Section (example: ENTD200 B002 Spr18) Instructor name Week # Date completed 2. Problem 1: Create a Python program to solve a simple pay calculation. Calculate the amount of pay, given employee name, hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Display employee name, hourly rate, hours worked, and pay. (Do not add any rules such as overtime) Problem 2: Create a Python program to calculate the average miles per gallon obtained on a trip. Input car name, the amount of gas used and the number of miles driven. (The formula to calculate miles per gallon is miles per gallon = number of miles driven / amount of gas used. ) Display car name, gas used, miles driven and MPG. Use your own values to test the. You can hard code the values or you can use the input() function. See announcement for sample code. Assignment Rubric:
Submission Instructions: You will code the following and submit it in one file. Use the information in the Content area for this week to assist you. Save it as a python file (.py), and upload it into the Assignments area for this week. |
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."