1 / 60

CYB 130 Effective Communication/newtonhelp.com

For more course tutorials visit<br>www.newtonhelp.com<br> <br>CYB 130 Week 1 Discussion zyBooks Reflection<br>CYB 130 Week 2 Discussion Code Structure<br>CYB 130 Week 3 Discussion Loop Statements<br>CYB 130 Week 4 Discussion Containers<br>

Download Presentation

CYB 130 Effective Communication/newtonhelp.com

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CYB 130 Effective Communication/newtonhelp.com

  2. CYB 130 Effective Communication/newtonhelp.com CYB 130 All DQs For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Discussion zyBooks Reflection CYB 130 Week 2 Discussion Code Structure CYB 130 Week 3 Discussion Loop Statements CYB 130 Week 4 Discussion Containers CYB 130 Week 5 Discussion Handling Errors

  3. CYB 130 Effective Communication/newtonhelp.com CYB 130 All Lab Work For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.30 Driving costs CYB 130 Week 1 Python LAB 2.16 Input Welcome message CYB 130 Week 1 Python LAB 2.32 Using math functions CYB 130 Week 1 Python LAB 2.31 Expression for calories burned during workout

  4. CYB 130 Effective Communication/newtonhelp.com CYB 130 Entire Course For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Data Types and Variables CYB 130 Week 1 String and Text Manipulation

  5. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Conditional and Variables For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Conditional and Variables Write a Python script that determines the highest day temp and highest night temp of the following variables:

  6. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Data Types and Variables For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Data Types and Variables Write a Python script that accepts the radius of a circle and computes the area of that circle.

  7. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Discussion zyBooks Reflection For more course tutorials visit www.newtonhelp.com Respond to the following in a minimum of 175 words:  Now that you have spent one week navigating your zyBook, what observations have you made about its design? Which elements were most helpful to you? Which features are still troublesome? What strategies have you applied that could be of use to someone else? Describe another situation in which zyBooks could help you learn content. 

  8. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.14 Formatted output Hello World! For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.14 Formatted output Hello World!Write a program that outputs "Hello World!" For ALL labs, end with newline (unless otherwise stated).

  9. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.15 Formatted output No parking sign For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.15 Formatted output No parking signWrite a program that prints a formatted "No parking" sign as shown below. Note the first line has two leading spaces. For ALL labs, end with newline (unless otherwise stated).   NO PARKING200 - 600 a.m.

  10. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.16 Input Welcome message For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.16 Input Welcome messageWrite a program that takes a first name as the input, and outputs a welcome message to that name.

  11. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.29 Divide by x For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.29 Divide by xWrite a program using integers user_num and x as input, and output user_num divided by x three times.

  12. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.30 Driving costs For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.30 Driving costsDriving 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 20 miles, 75 miles, and 500 miles.

  13. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.31 Expression for calories burned during workout For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.31 Expression for calories burned during workoutThe following equations estimate the calories burned when exercising (source) Women Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184

  14. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 Python LAB 2.32 Using math functions For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 Python LAB 2.32 Using math functionsGiven three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of (x minus y), and the square root of (x to the power of z).

  15. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 1 String and Text Manipulation For more course tutorials visit www.newtonhelp.com CYB 130 Week 1 String and Text Manipulation Write a Python script that meets the following requirements:

  16. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Discussion Code Structure For more course tutorials visit www.newtonhelp.com Respond to the following in a minimum of 175 words:  This week you will learn about basic code structure. The term structure, as it relates to programming, refers to the decisions you make to design your program to best meet its objective. Python provides features to create clean, efficient code. How can the basic if/elif/else control statements help meet structural design objectives in your code? Provide a code example to support your comments.

  17. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Loops and Conditional Statements For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Loops and Conditional Statements User input can be obtained using the following statement and storing it into a variable for future use:

  18. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.11 Input and formatted output Right-facing arrow For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.11: Input and formatted output: Right-facing arrowGiven input characters for an arrowhead and arrow body, print a right-facing arrow.

  19. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.12 Phone number breakdown For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.12: Phone number breakdownGiven 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:

  20. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.13 Input and formatted output House real estate summary For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.13: Input and formatted output: House real estate summarySites 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.

  21. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.14 Simple statistics For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.14: Simple statisticsGiven 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.

  22. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.25 Smallest number For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.25: Smallest numberWrite a program whose inputs are three integers, and whose output is the smallest of the three values.

  23. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.26 Seasons For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.26: SeasonsWrite 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.

  24. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.27 Exact change For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.27: Exact changeWrite 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:

  25. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Python LAB 3.28 Leap year For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Python LAB 3.28: Leap yearA 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

  26. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 2 Using Loops For more course tutorials visit www.newtonhelp.com CYB 130 Week 2 Using Loops Write a Python script that asks the user to input an integer and then a character. Use those values to print the character in the following pattern:

  27. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Accessing the Internet For more course tutorials visit www.newtonhelp.com CYB 130 Week 3 Accessing the Internet Write a Python script that accesses a website’s URL and dowloads a picture to your computer’s hard drive. Then access another URL and dowload the HTML file associated with that web address. Add print statements to indicate the program is downloading the content. For example:

  28. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Discussion Loop Statements For more course tutorials visit www.newtonhelp.com Respond to the following in a minimum of 175 words:  Most programming languages provide loop statements that help users iteratively process code. In Python you can write loops that handle many situations. What is the intuition behind using a loop statement? What do you gain from using loops in your code? Provide a code example to support your comments.

  29. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python and HTML For more course tutorials visit www.newtonhelp.com CYB 130 Week 3 Python and HTML Write a Python script that builds an HTML file of your own design.  Add an image tag into your HTML and link it to an image on your hard drive.  Make sure you store the image in the same directory as the html file, otherwise it might not find the file.

  30. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python LAB 4.14 LAB Count input length without spaces, periods, or commas For more course tutorials visit www.newtonhelp.com 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.

  31. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python LAB 4.15 Password modifier For more course tutorials visit www.newtonhelp.com 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.

  32. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python LAB 4.17 Print string in reverse For more course tutorials visit www.newtonhelp.com CYB 130 Week 3 Python LAB 4.17: Print string in reverse Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Quit", "quit", or "q" for the line of text. Ex: If the input is:

  33. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python LAB 4.18 Smallest and largest numbers in a list For more course tutorials visit www.newtonhelp.com CYB 130 Week 3 Python LAB 4.18: Smallest and largest numbers in a list Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the smallest and largest integers in the list.

  34. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python LAB 4.19 Output values in a list below a user defined amount For more course tutorials visit www.newtonhelp.com CYB 130 Week 3 Python LAB 4.19: Output values in a list below a user defined amount Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value.

  35. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Discussion Containers For more course tutorials visit www.newtonhelp.com Respond to the following in a minimum of 175 words:  Python lists are commonly used to store data types. Lists are a collection of information typically called a container. Think of a physical container that can hold all kinds of objects, not just one

  36. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Individual: Functional Programming For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Individual: Functional Programming Write a 2-part program as follows: Part 1: Write a function to convert Celsius to Fahrenheit. Part 2: Write a function to convert Fahrenheit to Celsius.

  37. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Individual: Object Oriented Programming (OOP) For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Individual: Object Oriented Programming (OOP) As defined on pp. 449 to 468 in Ch. 17, “Object-Oriented Programming,” of Introduction to Computing and Programming in Python, a Turtle is an object from the class Turtle with the following

  38. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.18 Miles to track laps For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.18: Miles to track lapsOne 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.

  39. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 3 Python LAB 4.19 Output values in a list below a user defined amount For more course tutorials visit www.newtonhelp.com CYB 130 Week 3 Python LAB 4.19: Output values in a list below a user defined amount Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value.

  40. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Discussion Containers For more course tutorials visit www.newtonhelp.com Respond to the following in a minimum of 175 words:  Python lists are commonly used to store data types. Lists are a collection of information typically called a container. Think of a physical container that can hold all kinds of objects, not just one object of the same type. Python includes a built-in list type called a list. They can be managed by many built-in functions that help fill, iterate over, add to, and delete a list. Why is it useful to

  41. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Individual: Functional Programming For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Individual: Functional Programming Write a 2-part program as follows:

  42. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Individual: Object Oriented Programming (OOP) For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Individual: Object Oriented Programming (OOP) As defined on pp. 449 to 468 in Ch. 17, “Object-Oriented Programming,” of Introduction to Computing and Programming in Python, a Turtle is an object from the class Turtle with the following features:

  43. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.18 Miles to track laps For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.18: Miles to track lapsOne 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.

  44. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.19 Driving costs – functions For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.19: Driving costs - functionsDriving 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:

  45. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.20 Step counter For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.20: Step counterA 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:

  46. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.21 Leap year – functions For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.21: Leap year - functionsA 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

  47. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.22 Swapping variables For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.22: Swapping variablesWrite a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is:38

  48. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.23 Exact change – functions For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.23: Exact change - functionsWrite 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.

  49. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 4 Python LAB 5.24 Even/odd values in a list For more course tutorials visit www.newtonhelp.com CYB 130 Week 4 Python LAB 5.24: Even/odd values in a listWrite 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.

  50. CYB 130 Effective Communication/newtonhelp.com CYB 130 Week 5 Discussion Handling Errors For more course tutorials visit www.newtonhelp.com Respond to the following in a minimum of 175 words:  It is important to program your code efficiently. Efficient code manages errors and exceptions and cleans up memory after it ends. The try-except statements are helpful in handling errors that are detected during execution. What are the two categories of errors when debugging code? How can the try-except statements handle errors in Python? Provide a code example that supports your comments.

More Related