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.
-
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*sHint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable.
Learn More -
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:
21Note: Account for all characters that aren't spaces, periods, or commas (Ex: "r", "2", "!").
-
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 yearEx: If the input is:
Learn More
1913
the output is:
1913 - not a leap year -
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 changeEx: If the input is:
Learn More
45
the output is:
1 Quarter
2 Dimes -
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:
SpringIn addition, check if the string and int are valid (an actual month and day).
Ex: If the input is:
Blue
65
the output is:
InvalidThe dates for each season are:
Learn More
Spring: March 20 - June 20
Summer: June 21 - September 21
Autumn: September 22 - December 20
Winter: December 21 - March 19 -
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:
Learn More
7
15
3
the output is:
3 -
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:
Learn More
8.3
10.4
5.0
4.8
the output is:
2072 7
2071.680 7.125 -
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 -
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-1212Hint: 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 -
CYB/130 Week 2 Python LAB 3.11: Input and formatted output: Right-facing arrow
Regular Price: $8.00
Special Price $3.00
CYB/130 Week 2 Python LAB 3.11: Input and formatted output: Right-facing arrow
Given input characters for an arrowhead and arrow body, print a right-facing arrow.Ex: If the input is:
Learn More
*
#
Then the output is:
#
******##
******###
******##
#