# get user input
hometown = input("Enter a city name: ")
speed = eval(input("Enter the speed of a vehicle in mph: ")
hours = eval(input("Enter the hours the vehicle traveled: ")
# compute age in days
distance = speed * hours
Date/ Time Due:
CMPS - 002
Tuesday, January 24, 2017
Friday, January 27, 2017 - 11:55 pm
This program uses string and numeric input.
It also processes using
# print a couple of blank lines before the program begins
# asking for input
# ask the user for the radius of the pizza (in inches)
# compute the area of the pizza (in square inches)
radius = eval(input("Enter the radius of pizza: ")
# Print sin/cos/tan for the "common" angles of 30, 45 & 90 degrees
# Remember, sometimes one of these trig functions is undefined
September 14, 2016
CMPS 310 Section 1
Chapter 2 Review
2.8 A company in the Netherlands that make navigation devices collect location data from the
devices to provide real-time services to its customers. It also provides anonymous statist
September 7, 2016
In ensuring cyber security, companies must keep their operation systems updated. It is
important to guarantee digital safety across the internet when youre sharing information wit
September 8, 2015
Public class ScannerDemo
public static void main(Stringargs)
Scanner scanner Object = new Scanner(System.in);
System.out.println(Enter two whole numbers);
1. Objects in a program can either represent objects in the real world
(automobiles, houses, employee records) or abstractions (colors,
2. A class is the definition of a kind of object. Sort of like a plan or
Utility Program Operations
Operating System Utility Programs
What is a disk scanner?
Searches for and removes unnecessary files
Windows vista includes Disk Cleanup
What is a disk defragmenter?
Reorganizes files and unused space on hard disk so that progra
Networks from Computer Communication
What is a local area network (LAN) and a metropolitan area network (MAN)?
A LAN is a network in limited geographical area such as home or office building
Wireless LAN (WLAN)
Metropolitan area network (MAN) con
Networks and Computer Software
Networks and the Internet
What is a network?
Collection of computers and devices connected together, often wirelessly
Used to share
Resources; hardware devices; software programs; data; information
What is a server?
Relational, Object-Oriented, and Multidimensional Databases
What is a data model?
Rules and standards that define how database organizes data
Defines how users view organization of data
Four popular data models
Maintaining Data and Moving into Databases
Data and information
What is a database?
Collection of data organized so you can access, retrieve, and use it
Database software also called database management system (DBMS)
Database allows you to
Introduction of Internet
What are some services found on the Internet
History of the Internet
How did the internet originate?
Networking project by pentagons advanced research projects agency (ARPA
Database Management Systems
What are some popular database management systems (DBMSs)?
What is a data dictionary
Contains data about each file in database and each field within those files
What is a query?
Request for specific
Computer Processors and Data Representation
What is parallel processing?
Using multiple processors simultaneously to execute a program faster
Requires special software to divide problem and bring results together
How do compu