def writing():
writefile=open("Assignment7.txt", "a")
customer_ID=input('1 of 4 Enter customer ID:')
widgets=abs(int(input('2 of 4-Number of widgets ordersed@ $10.55 each:')
gidgets=abs(int(input('3 f 4-Number of gidgets ordersed@ $7.30 each:')
doodads=ab
base_hours=40
minimum_hours=0
maximum_hours=60
again = "y"
while again = "y" or again = "Y":
employee_ID=input('1 of 3-Enter Employee ID:')
hours=abs(float(input('2 of 3-Enter Hours worked(Maximum of 60 hours):')
pay_rate=abs(float(input("3 of 3-Enter Emp
Milk_price=8.50
Dark_price=9.75
White_price=10.50
European_price=12.50
customer_ID=input('1 of 5-Enter your customer ID:')
Milk=abs(float(input('2 of 5-Enter the number of pounds of the Milk
Chocolate@$8.50:')
Dark=abs(float(input('3 of 5-Enter the number
import random
times=0
head_times=0
tails_times=0
correct=0
incorrect=0
again='y'
while(again='y' or again='Y'):
g=random.randint(1,2)
times+=1
print('Guess whether the coin is a Heads or a Tails')
guess=input("\nEnter 'H' for Heads OR 'T' for Tails:")
if
CSCI 7/082: Introduction to Computer
Programing Concepts
What is a computer?
A computer is a machine that performs five functions:
1)
2)
3)
4)
5)
Input
Output
Processing
Storage
Control
Computers work autonomously: Self guiding
FILES
A file is a named col
CS7: Intro to programming concepts
Basic concepts and keyterms
ALGORITHMS, ANALGORITHMS AND PROGRAMS
Algorithm: a step-step procedure to solve a problem in a
finite amount of time
Analgorithm: a finite sequence of discrete, well defined
steps which will a