
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question

Transcribed Image Text:zy Section 1.3 - IT 140: Introduction
zy Section 1.3 - IT 140: Introduction x
O ) (158) SNHU IT 140 Module
b Answered: Run the program and x
8 https://learn.zybooks.com/zybook/SNHUIT140V3/chapter/1/section/3?content_resource_id%=D40688398
= zyBooks My library > IT 140: Introduction to Scripting v3 home > 1.3: Input/Output
E zyBooks catalog
? Help/FAQ
8 Jose Roque
ZYDE 1.3.1: Basic input.
Run the program and observe the output. Change the input box value from 3 to another number, and run again.
Load default template..
1 human_years = int(input('Enter age of dog (in human years): '))
2 print()
3
4 dog_years = 7 * human_years
5
6 print(human_years, 'human years is about', end=' ')
7 print(dog_years, 'dog years.')
8
10
Pre-enter any input for program, then press run.
Run
Failed to compile
Traceback (most recent call last):
File "main.py", line 1, in <module>
human vears =int(input("Enter the age of the dog (in human vears ):")).
1:35 AM
O Type here to search
82°F Rain coming
A G O 4)
7/5/2021
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

Knowledge Booster
Similar questions
- Can you please help with this Use the provided template below BASE_YEAR = 1903 #***************************************************************# Function: main# # Description: The main function of the program## Parameters: None## Returns: Nothing ##**************************************************************def main():# Local dictionary variablesyear_dict = {}count_dict = {}developerInfo()# Open the file for readinginput_file = open('Program11.txt', 'r') # End of the main function #*********************************************## Function: # # Description: ## Parameters:## Returns: ##*****************************************def showResults(year_dict, count_dict):# Receive user inputyear = int(input('Enter a year in the range 1903-2018: ')) # Print resultsif year == 1904 or year == 1994:print("The world series wasn't played in the year", year)elif year < 1903 or year > 2018:print('The data for the year', year, \'is not included in our database.')else:winner = year_dict[year]wins…arrow_forwardHomework 10-2 Programming Challenge: 12 - Password Verifier Use the string data type. Do not use arrays of type char or any functions in the old "C String" libraries. Six characters? Seriously? Set the minimum password length to twelve characters. We will also require that the password not contain any space characters. In addition to the requirement that the password contain at least one upper case letter, one lower case letter, and one digit, add the additional requirement that the password contain at least one "special" character. We will consider any character that is printable, not alphanumeric, and not a space character to be "special." That includes punctuation, but may include additional non-punctuation characters. Unfortunately at our level of C++ it's more or less impossible for us to actually test passwords like Señor_99 but the ñ (with a tilde) would count as a special character using our rules. Write functions to complete these tasks as appropriate.arrow_forwardmergeAndRemove(int[], int[]) This is a public static function that takes a int[] and int[] for the parameters and returns an int[]. Given two arrays of integers. Your job is to combine them into a single array and remove any duplicates, finally return the merged array.arrow_forward
- 1. Write a program that defines a struct named Info. That Info struct should define two strings, a double and array of strings. In your main program, define a variable v using that Info struct and then initialize it to hold your first name, your last name, your lucky non-whole number (e.g. 26.5), your major, and a listing (an array) of your six most favorite college courses you have ever taken or plan to take. Then your program should access and print all the stored data held in the variable v. 2. print the data twice, once using the structure variable and do-while loop, and next using a pointer variable and a while-do loop.) Using the embed icon shown above show screenshots demoing the execution of your program.arrow_forwardQuestion 19 a Consider the following statement, which is intended to create an ArrayList named years that can be used to store elements both of type Integer and of type String. /* missing code */ = new ArrayList(); Which of the following can be used to replace /* missing code */ so that the statement compiles without error? ArrayList years B ArrayList years() ArrayList years[] D ArrayList years E ArrayList yearsarrow_forwardThe below cod is the code that it’s mentioned in the question. Write your cod and show it in a picture, please.arrow_forward
- In C#: Run the following console application. This program should produce the union of two sets, but has several errors. Use a variety of debugging techniques to locate and correct the errors. NOTE: A set is a collection of like elements that does not contain any duplicates. The union of two sets is the set that contains all the elements in both sets. Formally: A union B = {x : x Î A or x Î B}read: A union B is the set of all x such that x is in A or x is in B Example: A = {1,2,3,4,5} and B = {2,4,6,8}, then A union B = {1,2,3,4,5,6,8} (notice, no duplicates!) Debug the program. When you find an error, comment out the offending line, give an explanation of the error, write a corrected line, and include a screenshot of your program running with successful output. Submit the modified files and screenshots of any breakpoints you use. Program using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace…arrow_forwardWhat would be the missing line of codes?arrow_forwardCreate a program called array.py that has a function that takes four integer arguments. Those arguments should be put into an Numpy array. The function will have two print statements. The first will print the type of the array you create (which should be <class ‘numpy.ndarray’>). The second will print the multiplication of the four items in your array.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY