Python

Need Help in Python Assignment?
We can help you if you are having difficulty with your Python Assignment. Just email your Java Assignment at admin@assignmentcache.com.
We provide help for students all over the world in Python Assignment.

Items 1 to 10 of 99 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction
  1. ITS320 Module 4 Option 2 Repetition Control Structure – Grade Statistics

    ITS320 Module 4 Option 2 Repetition Control Structure – Grade Statistics

    $10.00

    ITS320 Module 4 Option 2 Repetition Control Structure – Grade Statistics


    Option #2: Repetition Control Structure – Grade Statistics


    Assignment Instructions
    1. Write a program that will provide important statistics for the grades in a class. The program will utilize a loop to read five floating-point grades from user input.
    2. Ask the user to enter the values, then print the following data:
    • Average
    • Maximum
    • Minimum


    Assignment Submission Instructions
    • Submit a text file containing your Python code into the Module 4 drop box. Name your file ITS320_CTA4_Option2.py

    Learn More
  2. CBY130 5.18.1 LAB Miles to track laps

    CYB/130 Week 4 Python LAB 5.18: Miles to track laps

    $8.00

    CYB/130 Week 4 Python LAB 5.18: Miles to track laps
    One lap around a standard high-school running track is exactly 0.25 miles. Write the function miles_to_laps() that takes a number of miles as an argument and returns the number of laps. Complete the program to output the number of laps.


    Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    print('{:.2f}'.format(your_value))


    Ex: If the input is:
    1.5
    the output is:
    6.00


    Ex: If the input is:
    2.2
    the output is:
    8.80


    Your program must define and call the following function:
    def miles_to_laps(user_miles)

    Learn More
  3. CYB130 5.19.1 LAB Driving costs - functions

    CYB/130 Week 4 Python LAB 5.19: Driving costs - functions

    $8.00

    CYB/130 Week 4 Python LAB 5.19: Driving costs - functions
    Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles.


    Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    print('{:.2f}'.format(your_value))


    Ex: If the input is:
    20.0
    3.1599
    the output is:
    1.58
    7.90
    63.20


    Your program must define and call the following driving_cost() function. Given input parameters driven_miles, miles_per_gallon, and dollars_per_gallon, the function returns the dollar cost to drive those miles.


    Ex: If the function is called with:
    50  20.0  3.1599
    the function returns:
    7.89975


    def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon)
    Your program should call the function three times to determine the gas cost for 10 miles, 50 miles, and 400 miles.
    Note: This is a lab from a previous chapter that now requires the use of a function.

    Learn More
  4. CYB130 5.20.1 LAB Step counter

    CYB/130 Week 4 Python LAB 5.20: Step counter

    $8.00

    CYB/130 Week 4 Python LAB 5.20: Step counter
    A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked.


    Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    print('{:.2f}'.format(your_value))


    Ex: If the input is:
    5345
    the output is:
    2.67


    Your program must define and call the following function. The function should return the amount of miles walked.
    def steps_to_miles(user_steps)

    Learn More
  5. CYB130 5.21.1 LAB Leap year - functions

    CYB/130 Week 4 Python LAB 5.21: Leap year - functions

    $8.00

    CYB/130 Week 4 Python LAB 5.21: Leap year - functions
    A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are:
    1) The year must be divisible by 4
    2) If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400
    Some example leap years are 1600, 1712, and 2016.
    Write a program that takes in a year and determines whether that year is a leap year.


    Ex: If the input is:
    1712
    the output is:
    1712 is a leap year.


    Ex: If the input is:
    1913
    the output is:
    1913 is not a leap year.


    Your program must define and call the following function. The function should return true if the input year is a leap year and false otherwise.
    def is_leap_year(user_year)


    Note: This is a lab from a previous chapter that now requires the use of a function.

    Learn More
  6. CYB130 5.22.1 LAB Swapping variables

    CYB/130 Week 4 Python LAB 5.22: Swapping variables

    $8.00

    CYB/130 Week 4 Python LAB 5.22: Swapping variables
    Write a program whose input is two integers and whose output is the two integers swapped.


    Ex: If the input is:
    3
    8
    the output is:
    8 3


    Your program must define and call the following function. swap_values() returns the two values in swapped order.
    def swap_values(user_val1, user_val2)

    Learn More
  7. CYB/130 Week 4 Python LAB 5.23: Exact change - functions

    CYB/130 Week 4 Python LAB 5.23: Exact change - functions

    $8.00

    CYB/130 Week 4 Python LAB 5.23: Exact change - functions
    Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies.


    Ex: If the input is:
    0
    or less, the output is:
    no change


    Ex: If the input is:
    45
    the output is:
    1 quarter
    2 dimes


    Your program must define and call the following function. The function exact_change() should return num_dollars, num_quarters, num_dimes, num_nickels, and num_pennies.
    def exact_change(user_total)
    Note: This is a lab from a previous chapter that now requires the use of a function.

    Learn More
  8. CBY130 5.24.1 LAB Even odd values in a list.jpg

    CYB/130 Week 4 Python LAB 5.24: Even/odd values in a list

    $8.00

    CYB/130 Week 4 Python LAB 5.24: Even/odd values in a list
    Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers that follow.


    Ex: If the input is:
    5
    2
    4
    6
    8
    10
    the output is:
    all even


    Ex: If the input is:
    5
    1
    3
    5
    7
    9
    the output is:
    all odd


    Ex: If the input is:
    5
    1
    2
    3
    4
    5
    the output is:
    not even or odd


    Your program must define and call the following two functions. is_list_even() returns true if all integers in the list are even and false otherwise. is_list_odd() returns true if all integers in the list are odd and false otherwise.
    def is_list_even(my_list)
    def is_list_odd(my_list)

    Learn More
  9. CYB130 6.5.1 LAB Checker for integer string

    CYB/130 Week 5 Python LAB 6.5: Checker for integer string

    $8.00

    CYB/130 Week 5 Python LAB 6.5: Checker for integer string
    Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outputs yes if every character is a digit 0-9.


    Ex: If the input is:
    1995
    the output is:
    yes


    Ex: If the input is:
    42,000
    or any string with a non-integer character, the output is:
    no


    6.5.1: LAB: Checker for integer string

    Learn More
  10. CYB130 6.6.1 LAB Name format

    CYB/130 Week 5 Python LAB 6.6: Name format

    $8.00

    CYB/130 Week 5 Python LAB 6.6: Name format
    Many documents use a specific format for a person's name. Write a program whose input is:
    firstName middleName lastName
    and whose output is:
    lastName, firstInitial.middleInitial.


    Ex: If the input is:
    Pat Silly Doe
    the output is:
    Doe, P.S.


    If the input has the form:
    firstName lastName
    the output is:
    lastName, firstInitial.


    Ex: If the input is:
    Julia Clark
    the output is:
    Clark, J.

    Learn More

Items 1 to 10 of 99 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction