Computer Science

DUE: Jun 2, 2019 11:55 PM

Grade Details

Grade

N/A

Gradebook Comments

None

Assignment Details

Open Date

May 6, 2019 12:05 AM

Graded?

Yes

Points Possible

100.0

Resubmissions Allowed?

Yes

Remaining Submissions

Unlimited

Top of Form

Assignment 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: https://www.python.org/downloads/.

Download Python:

This video demonstrates how to download version 3.4 or the latest version based on your operating system type.

https://cdnsecakmi.kaltura.com/p/1147982/sp/114798200/thumbnail/entry_id/0_5qaurn9z/version/100000/acv/72

Downloadable Video Transcript for Downloading Python.docx

You should download the Python programming language editor and compiler. To download Python, go to https://www.python.org/downloads/ (Download version 3.4 or the latest version–view the video above ).

You may use www.pythontutor.com 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 www.pythontutor.com and paste it into .py file or into the student submission text area.

1. Create a comment block 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 payroll calculation. Calculate the amount of pay, given hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Display hourly rate, hours worked, and pay.

Problem 2: Create a Python program to calculate the average miles per gallon obtained on a trip. Input 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 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 lesson 3 for sample code.

Assignment Rubric:

Assessment Rubric

Accomplished

Developing

Beginning

Points Available

Points Earned

Comments

Assignment details in a comment block.

Create a comment block with the following information:

Your Name

Course Name, Section (example: ENTD200 B002 Spr18)

Instructor name

Week #

Date completed

Student effectively completed the assignment.

Student partially completed the assignment.

Student failed to complete the assignment.

10

10

Logic and print function used to correctly print the solution to Problem 1:

Create a Python program to solve a simple payroll calculation. Calculate the amount of pay, given hours worked, and hourly rate. (The formula to calculate payroll is pay = hourly rate * hours worked.) Display hourly rate, hours worked, and pay.

Student effectively completed the assignment.

Student partially completed the assignment.

Student failed to complete the assignment.

40

40

Logic and print function used to correctly print the solution to Problem 2:

Create a Python program to calculate the average miles per gallon obtained on a trip. Input 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 gas used, miles driven and MPG.

Student effectively completed the assignment.

Student partially completed the assignment.

Student failed to complete the assignment.

40

40

Code organization and comments

Student effectively completed the assignment.

Student partially completed the assignment.

Student failed to complete the assignment.

10

10

Total

100

100

Submission Instructions:

You will code the following and submit it in one file. Use the information in the Lessons area for this week to assist you. Save it as a python file (.py), and upload it into the Assignments area for this week.

Bottom of Form

Order now and get 10% discount on all orders above $50 now!!The professional are ready and willing handle your assignment.

ORDER NOW »»