# Stock Portfolio
# by: Adrian Cameron
Names=cfw_
Prices=cfw_
Exposure=cfw_
Portfolio=cfw_
def AddName():
global symbol
symbol = input("Please enter the Stock Symbol that you would like added to
your portfolio: ")
name = input("Please enter the Stock Name
#Multiplication Tutor
#by: Adrian Cameron
from random import randint
from math import trunc
numProblems = True
count_down = False
orginal_number = 0
guess = 0
answer = 0
trys = 0
average = 0
print("Welcome to the Multiplication Tutor!")
while numProblems
# 10 Functions
# by: Adrian Cameron
#Function 1
def name_major():
name=input("What is your name? ")
major=input("What is your major? ")
print("Name:", name)
print("Major:", major)
#Function 2
def age():
age=int(input("Please enter your age: ")
print("Your
Operators and Expressions
Copy this page into a Word document. Insert your answers where indicated. Save your Word
document and submit it to the appropriate Dropbox before midnight on the due date for this
assignment.
This assignment is worth 100 points.
#Word Madness
#by: Adrian Cameron
def count_vowels(word):
num_vowels = 0
for c in word:
if c in 'aeiouAEIOU':
num_vowels += 1
return num_vowels
def count_consonants(word):
num_consonants = 0
for c in word:
if c not in 'aeiouAEIOU':
num_consonants += 1
ret
#Decision Logic (Graduation)
#by: Adrian Cameron
print("Welcome! Let's see if you will graduate.")
print(")
student_gpa = float(input("Please enter your current GPA ")
total_credits = int(input("Please enter your current total credits ")
print(")
print("H
Dirty Laundry Algorithm and Flowchart
by:
Adrian Cameron
Start: A Pile of Dirty Laundry
"Select an Article of Clothing"
<Is it White?>
if Yes: "Place Article of Clothing in Pile A"
if No: "Place Article of Clothing in Pile B"
<Is There Still Unsorted Dirt
Decimal to Binary Algorithm
by:
Adrian Cameron
Start
"Enter a Decimal Number Between 1 and 9999"
<Is The Decimal Greater Than 0 and Less Than 10,000?>
if Yes: Go To "Conversion Process"
if No: Go To "Enter a Decimal Between 1 and 9999"
"Conversion Process
Peanut Butter and Jelly Sandwich Instructions
by:
Adrian Cameron
Gather ingredients
Obtain 2 slices of bread
Obtain 1 jar of peanut butter
Obtain 1 jar of jelly
Obtain 1 plate
Obtain 1 butter knife
Obtain 1 napkin or paper towel
Place ingredients on count
Binary to Decimal Algorithm
by:
Adrian Cameron
Start
"Enter a Binary Number"
<Does The Number Consist of Only 1's and 0's?>
if Yes: Go To "Conversion Process"
if No: Go To: "Enter a Binary Number"
"Conversion Process"
Calculate the (Number of Digits) in t