Welcome to AssignmentCache!

CYB130 Object-oriented Scripting Language

Need Help in CYB/130 Python Assignments?
We can help you if you are having difficulty with your CYB130 assignments. Just email your assignments at support@assignmentcache.com.
We provide help for students all over the world.

Items 11 to 20 of 39 total

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

Grid  List 

Set Descending Direction
  1. CYB130 3.12 LAB Phone number breakdown

    CYB/130 Week 2 Python LAB 3.12: Phone number breakdown

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.12: Phone number breakdown
    Given an integer representing a 10-digit phone number, output the area code, prefix, and line number using the format (800) 555-1212.

    Ex: If the input is:
    8005551212
    the output is:
    (800) 555-1212

    Hint: Use % to get the desired rightmost digits. Ex: The rightmost 2 digits of 572 is gotten by 572 % 100, which is 72.
    Hint: Use // to shift right by the desired amount. Ex: Shifting 572 right by 2 digits is done by 572 // 100, which yields 5. (Recall integer division discards the fraction).

    For simplicity, assume any part starts with a non-zero digit. So 0119998888 is not allowed.

    Learn More
  2. CYB130 3.13 LAB Input and formatted output House real estate summary

    CYB/130 Week 2 Python LAB 3.13: Input and formatted output: House real estate summary

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.13: Input and formatted output: House real estate summary
    Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (current_price * 0.051) / 12.

    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:
    200000
    210000
    the output is:
    This house is $200000. The change is $-10000 since last month.
    The estimated monthly mortgage is $850.00.

    Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming.

    Learn More
  3. CYB130 3.14 LAB Simple statistics

    CYB/130 Week 2 Python LAB 3.14: Simple statistics

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.14: Simple statistics
    Given 4 floating-point numbers. Use a string formatting expression with conversion specifiers to output their product and their average as integers (rounded), then as floating-point numbers.

    Output each rounded integer using the following:
    print('{:.0f}'.format(your_value))

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

    Ex: If the input is:
    8.3
    10.4
    5.0
    4.8
    the output is:
    2072 7
    2071.680 7.125

    Learn More
  4. CYB130 3.25 LAB Smallest number

    CYB/130 Week 2 Python LAB 3.25: Smallest number

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.25: Smallest number
    Write a program whose inputs are three integers, and whose output is the smallest of the three values.

    Ex: If the input is:
    7
    15
    3
    the output is:
    3

    Learn More
  5. CYB130 3.26 LAB Seasons

    CYB/130 Week 2 Python LAB 3.26: Seasons

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.26: Seasons
    Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.

    Ex: If the input is:
    April
    11
    the output is:
    Spring

    In addition, check if the string and int are valid (an actual month and day).
    Ex: If the input is:
    Blue
    65
    the output is:
    Invalid

    The dates for each season are:
    Spring: March 20 - June 20
    Summer: June 21 - September 21
    Autumn: September 22 - December 20
    Winter: December 21 - March 19

    Learn More
  6. CYB130 3.27 LAB Exact change

    CYB/130 Week 2 Python LAB 3.27: Exact change

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.27: Exact change
    Write a program with total change amount as an integer input, and output 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 than 0), the output is:
    No change

    Ex: If the input is:
    45
    the output is:
    1 Quarter
    2 Dimes

    Learn More
  7. CYB130 3.28 LAB Leap year

    CYB/130 Week 2 Python LAB 3.28: Leap year

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 2 Python LAB 3.28: Leap year
    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 - leap year

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

    Learn More
  8. CBY 130 4.14 LAB Count input length without spaces periods or commas

    CYB/130 Week 3 Python LAB 4.14 LAB: Count input length without spaces, periods, or commas

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 3 Python LAB 4.14 LAB: Count input length without spaces, periods, or commas

    Given a line of text as input, output the number of characters excluding spaces, periods, or commas.

    Ex: If the input is:
    Listen, Mr. Jones, calm down.
    the output is:
    21

    Note: Account for all characters that aren't spaces, periods, or commas (Ex: "r", "2", "!").

     

    Learn More
  9. CYB 130 4.15 LAB Password modifier

    CYB/130 Week 3 Python LAB 4.15: Password modifier

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 3 Python LAB 4.15: Password modifier

    Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string.
    i becomes !
    a becomes @
    m becomes M
    B becomes 8
    o becomes .

    Ex: If the input is:
    mypassword
    the output is:
    Myp@ssw.rdq*s

    Hint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable.

    Learn More
  10. CYB 130 4.16 LAB Output range with increment of 10

    CYB/130 Week 3 Python LAB 4.16: Output range with increment of 10

    Regular Price: $8.00

    Special Price $3.00

    CYB/130 Week 3 Python LAB 4.16: Output range with increment of 10

    Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer.

    Ex: If the input is:
    -15
    30
    the output is:
    -15 -5 5 15 25

    Ex: If the second integer is less than the first as in:
    20
    5
    the output is:
    Second integer can't be less than the first.

    For coding simplicity, output a space after every integer, including the last.

    Learn More

Items 11 to 20 of 39 total

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

Grid  List 

Set Descending Direction
[profiler]
Memory usage: real: 14155776, emalloc: 13947424
Code ProfilerTimeCntEmallocRealMem