name = input('What is your name?
print('Hello,' + name)
#The data type returned by input is a string
string = input('How many bottles of glue do you have?
bottles = string * 12
string = int(input('How many bott
#Display the code on multiple lines
print('We had a wonderful time at the Sioux Empire Fair in sioux Falls,
SD, on August 13, 2014.')
print('We had a wonderful time '\
'at the Sioux Empire Fair '\
'in Sioux Falls, SD, ' \
A value is passed into a function, a calculation
is made, and the result is returned
#Get user input
user_input = input('Enter a number:
#Pass the input to the function get_input and return
#Introduce the program
print('This program displays a list of numbers')
print('and their squares.')
#Get the starting value
start = int(input('Enter the starting number: ')
#Get the ending value
end = int(input('How high should I go? ')
#Assign a value to the variable dollars and prnt it
dollars = 5
print('I have', dollars, 'dollars to my name.')
#Assing a different value to dollars
dollars = 75
print('I now have', dollars, 'dollars to my name.')
#Assign yet a
This program validates user input
#Get user input
wholesale_cost = float(input('Enter the wholesale cost: ')
#Validate the data
while wholesale_cost < 0:
print('\nERROR: the cost cannot be negative.')
wholesale_cost = float(input
The use inputs two sides of a triangle and the
program calculates the length of the hypotenuse
#Input the sides of the triangle
s1 = float(input('What is the length of one side of the traingle? ')
s2 = float(input('
The user gives square feet to be painted and the price
per gallon of paint. The program calculates the number
of gallons needed, the hours of labor, the total paint
#Description: Demonstrates a while loop that keeps going as long
as the user enters the correct response
#Create a variable to control the loop
keep_going = 'y'
#Start the loop
while keep_going = 'y':
#Get the sales person's sales amount and
#Input the number of hours worked and the hourly pay rate
#to caluculate the gross pay
BASE_HOURS = 40
OT_MULTIPLIER = 1.5
#Base hours per week
#Get the hours worked and the hourly rate
hours_worked = float(inpu
#Description: Calculates a student's letter grade bsed on the
#Constants for grade thresholds
A_SCORE = 90
B_SCORE = 80
C_SCORE = 70
D_SCORE = 60
OVER_SCORE = 100
#Get the test score from the user
score = int(input('Enter y
1. In what ways was the Marshall Fields flood disaster recovery effort a project? Why are large
scale disaster response and recovery efforts projects?
Marshall Fields flood disaster recovery effort is a project because of the following:
Windows apps for Windows
To sell your Universal Windows app or distribute it to other users, you need to create an
appxupload package for it. When you create the appxupload, another appx package will be
generated to use for testing
Case Study 1-1
1. In what ways was the Marshall Fields flood disaster recovery effort a project?
Why are large-scale disaster response and recovery efforts projects?
The Marshall Fields flood disaster recovery effort a project in a
way of having a great u
PHP - Loosely-typed scripting language.
-Interpreted during runtime.
if statement - use this statement to execute some code
only if a specified condition is true
-Commonly used to build web applications
-Personal Home Page / Forms I
1. In what ways was the Marshall Fields flood disaster recovery effort a project? Why are large-scale
disaster response and recovery efforts projects?
-It was a project and a large scale one, it has large uncertainty and it is also unique if we b
Heres a list of resources that might help you make your own websites. If all else fails, try to recreate a website you like by copying it exactly as it is, then make some minor modifications. The
point is to be creative and play around wi
What is PHP?
Loosely-typed scripting language.
Interpreted during runtime.
Commonly used to build web applications.
Personal Home Page / Forms Interpreter
Created by Rasmus Lerdorf
PHP/FI 1.0 released in 1995
PHP/FI 2.0 released in 19
Case 2-1 Glades County Sanitary District
1. What is the system? What are its key elements and subsystems? What are the
boundaries and how are they determined? What is the environment?
1. What is the system?
An comprehensive water waste management program
Case 1-1 Disaster Recovery at Marshall Fields
1. In what ways was the Marshall Field's flood disaster recovery effort a project? Why are
large-scale disaster response and recovery efforts projects?
Marshall Field's flood disaster recovery effort is a proj
Case 3-1: WEST COAST UNIVERSITY MEDICAL CENTER
1. Why was the system a failure?
The system was a failure because of the following:
a. The system lacked the desired results the users or customers (in this case the doctors)
b. Some benefits of the sys
Home Work 5
1. In Kerberos System, can the TGS and client be authenticated to each other? If so, how?
Can the network server and the client be authenticated with each other? If so, how?
Sol: Kerberos System is a network authentication protocol developed b
1.a) When Host D in Figure 1-26 transmits a packet to Host C, how many physical
links, data links, and routes will there be?
The number of physical links are 7.
The number of data links are 3.
The number of routes are 1.
b) How many packets will t