Individual Homework- Create Your Own Password! Due: September 15 th, 2014 Before 11:55PM Out of 100 points

Similar documents
CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points

CS 2316 Pair 1: Homework 3 Enigma Fun Due: Wednesday, February 1st, before 11:55 PM Out of 100 points

CS 1803 Individual Homework 2 Conditionals & Loops Due: Wednesday, September 8th, before 6 PM Out of 100 points

CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points

CS 1803 Individual Homework 2 Conditionals & Loops Due: Wednesday, February 2 nd, before 6 PM Out of 100 points

CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points

CS 1301 Pair Homework 4 Conditionals & Loops Due: Friday, October 1, before 6 PM Out of 100 points

CS 1803 Individual Homework 1 Python Practice Due: Wednesday, January 26th, before 6 PM Out of 100 points

Ascii Art. CS 1301 Individual Homework 7 Ascii Art Due: Monday April 4 th, before 11:55pm Out of 100 points

CS 1301 Individual Homework 3 Conditionals & Loops Due: Monday February 8 th before 11:55pm Out of 100 points

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points

Visit the TA Helpdesk (schedule posted on class website)

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, August 28th, before 11:55 PM Out of 100 points

This homework has an opportunity for substantial extra credit, which is described at the end of this document.

CMSC 201 Fall 2016 Homework 6 Functions

CS 2316 Homework 9a GT Pizza Login Due: Wednesday November 6th Out of 100 points. Premise

CS 2316 Homework 9a GT Room Reservation Login

CS 1803 Pair Homework 10 Newsvendor Inventory Policy Due: Monday, November 29th before 6:00 PM Out of 100 points

CS 2316 Homework 9a Login Due: Friday, November 2nd, before 11:55 PM Out of 100 points. Premise

CS 2316 Individual Homework 5 Joint Probability Out of 100 points

CS Homework 4 Employee Ranker. Due: Wednesday, February 8th, before 11:55 PM Out of 100 points. Files to submit: 1. HW4.py.

CS 1301 Homework Robot Web Writer

If you have never used IACRA, your first step is to become registered as an applicant.

CS Homework 4 Lifeguard Employee Ranker. Due: Tuesday, June 3rd, before 11:55 PM Out of 100 points. Files to submit: 1. HW4.py.

Functional Programming, Classes, and Recursion!

CS 2316 Homework 9b GT Room Reservation

CS 1301 Pair Homework 2 Conversions Due: Monday January 27th, 2014, before 11:55pm Out of 100 points Files to submit: hw2.py

San José State University Computer Science CS 122 Advanced Python Programming Spring 2018

CS 2316 Homework 9b GT Thrift Shop Due: Wednesday, April 20 th, before 11:55 PM Out of 100 points. Premise

CS 135: Fall Project 2 Simple Cryptography

Due: March 8, 11:59pm. Project 1

Math 180 Written Homework Solutions Assignment #1 Due Thursday, September 4th at the beginning of your discussion class.

Homework 8 Lights, Camera, Robot Action! Due: Friday, April 13th, before 11:55 PM EST Out of 200 points Files to submit: {filmingcode.

APPLICATION FOR THE UAL FOUNDATION DIPLOMA IN ART & DESIGN

CS1100: Excel Lab 1. Problem 1 (25 Points) Filtering and Summarizing Data

CPSC 233: Assignment 4 (Due March 26 at 4 PM)

MY SCHOOL DC APPLICATION USER GUIDE School Year

Programming Studio #1 ECE 190

CSE 231 Summer 2018 Computer Project #4

CSCI 561: Foundations of Artificial Intelligence Instructor: Prof. Laurent Itti Homework 1: Uninformed Search Due on September 23rd at 11:59pm, 2015

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w

Assignment 3, Due October 4

Assignment 2, due September 17

Registration and Login

Benefit Enrollment User Guide

Online Admissions Frequently Asked Question (FAQ s)

CSCI 2824, Discrete Structures Fall 2017 Tony Wong. Lecture 1: Introduction and Binary Arithmetic

CS Operating Systems, Fall 2018 Project #0 Description

2015 Canadian Computing Competition: Junior Division. Sponsor:

CS 374 Fall 2014 Homework 2 Due Tuesday, September 16, 2014 at noon

Using C++, design an Abstract Data Type class named MyGrades. The class must have the following private members :

MATH 1MP3 Homework #4 Due: 11:59pm, Wednesday, March 6.

CS 1301 Exam 1 Fall 2009

CMSC 201 Spring 2016 Lab 12 Classes and Objects

What is an operating system (OS or O/S)?

EECS2031 Winter Software Tools. Assignment 2 (15%): C Programming

CS 115 Lecture 8. Selection: the if statement. Neil Moore

ACORN.COM CS 1110 SPRING 2012: ASSIGNMENT A1

CMSC 201 Spring 2017 Lab 01 Hello World

VCheck Data-Entry User s Guide

Provider Portal Help Guide

Self Service Password Reset

SPRING 2017 CSCI 304 LAB1 (Due on Feb-14, 11:59:59pm)

Lecture 13: Analysis Modeling

e-application Quick Reference Card for Rotations and Publications V 1.1 In This Reference Card

FALL 2017 CSCI 304 LAB1 (Due on Sep-19, 11:59:59pm)

CS 1428 Programming Assignment 2 Due Wednesday September 19 th :15 am Section 3 3:45 pm Section 4

A. Getting Started About e-access Enrolling in e-access: Authenticating your account Login... 5

Sonoma State University Computer Science Department CS 115 Fall 2010 Watts. Project 3 Part 1

Go to and follow the link to log into the patient portal

education portal Atheneo

Lab 4: Strings/Loops Due Apr 22 at midnight

CMSC 201 Fall 2018 Python Coding Standards

MY SCHOOL DC APPLICATION USER GUIDE School Year

Using Microsoft Access

e-application Quick Reference Card for Rotations and Publications v1.7 In This Reference Card

Using the Computer for Essays

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.

CS2223: Algorithms D- Term, Homework I. Teams: To be done individually. Due date: 03/27/2015 (1:50 PM) Submission: Electronic submission only

Please make sure that when you submit your assignment, you submit a single HW6.py file that contains your entire assignment.

Curves & Splines. Assignment #3. Overview & Objectives. Due Dates. CPSC 453 Fall 2018 University of Calgary

CS 150 Introduction to Computer Science 1

CMSC 201 Spring 2018 Project 3 Minesweeper

CIS 101 Introduction to Computers Online Section About This Course and Getting Started Online Instructor Brad Ford

Additionally, you may be able to change your password and enter challenge questions to be used if you forget your username or password.

cs1114 REVIEW of details test closed laptop period

************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE

Python Day 3 11/28/16

Honors Computer Science Python Mr. Clausen Programs 4A, 4B, 4C, 4D, 4E, 4F

Database in Microsoft Access

CMSC 201 Spring 2018 Lab 01 Hello World

Programming Studio #1 ECE 190

Unit 7: Algorithms and Python CS 101, Fall 2018

Homework 7: Subsets Due: 11:59 PM, Oct 23, 2018

Pulaski County Special School District: New Student Online Registration Manual for Parents

NHSmail Portal User Guide: Guide for New Users

onecard Smart Data OnLine Getting Started Guide for Program Administrators

CSE 5A Introduction to Programming I (C) Homework 4

CIS 110: Introduction to Computer Programming

CS 1301 Exam 1 Answers Fall 2009

Transcription:

CS 2316 Individual Homework- Create Your Own Password! Due: September 15 th, 2014 Before 11:55PM Out of 100 points Files to submit: HW3.py For Help: TA Helpdesk Schedule posted on class website Use Piazza or email TA s Notes: Don t forget to include the required comments and collaboration statement (as outlined on the course syllabus). Do not wait until the last minute to do this assignment in case you run into problems User Interaction You will write a few python functions for practice with user interaction and string and list processing. In your HW3.py file, include a comment at the top with your names, section, GTID/Emails, and your collaboration statement. Also include each of the following functions: 1. worldtime() 2. beyonce() 3. personalitytype() 4. passwordcreator()

FUNCTION NAME: worldtime Parameters: None Return Value: (List list of all integers in your answer) Description: 1. This function should request that the user select a city from a list of at least six cities with at least four different time zones. Hardcode the cities of your choice into the program. It should not matter in which case the user types the word (i.e. Delhi, delhi, DELHI). 2. The function will then print the current time and date in the city that was chosen. If anything other than those cities is typed, the question should be repeated. The time should not be in military time and should indicate if it is AM or PM. You do not need to include seconds. Note! Be careful with the date, as it will change if the time difference of the country is far enough ahead or behind. 3. Return a list of all the integers in your time and date. This list will change in length depending on the time and date. Hint: The datetime module and datetime.datetime.now() function may be of use to you for this problem! Test Cases: (let s say the time is 6:01 PM in Atlanta and the date is 2014-09-02) worldtime() Do you want the time in Coventry, Timbuktu, Delhi, San Diego, Budapest, or Istanbul? Istanbul The current time in istanbul is 1:01 AM. The date is 2014-09-03 return [1,0,1,2,0,1,4,0,9,0,3] note: It is okay to have the time as 01:01 AM, but make sure to add the leading 0 to your final list. The format of your time/date should be reflected in the list. worldtime() Do you want the time in Coventry, Timbuktu, Delhi, San Diego, Budapest, or Istanbul? Berlin Do you want the time in Coventry, Timbuktu, Delhi, San Diego, Budapest, or Istanbul? coventry The current local time in conventry is 11:01 PM. The date is 2014-09-02 return [1,1,0,1,2,0,1,4,0,9,0,2]

FUNCTION NAME: beyonce Parameters: None Return Value: (string string of your celebrity name) Description: This function should ask the user for their information and will create a unique celebrity title depending on their information. It will ask the user to input their name, their birth date, and their gender. It will then create a celebrity name based on the information. 1. If they are male and 21+ old (this will change depending on the date the function is run not the date the function is created), the function will take their name up to the second consonant and then add Z. If they are female and 21+, you again take their name up to the second consonant and then add yonce. If the user is under 21 or their gender is listed as other, then their name must be completely changed to Kanye. A vowel can be considered as a, e, i, o, or u 2. The function must print a lyric of your choice (no profanity please!) with their name in it. You can get creative when it comes to the output as long as the name is clear and obvious. 3. Return the final name (only). You can assume that all inputs will be in the correct format, but should be able to handle different cases if necessary. If a name only has one consonant, take the entire name. Test Cases: beyonce() What is your name? Ilya What is your birth date? 07/27/1994 Do you identify as male, female, or other? Male Brush that dirt off Kanye s shoulders Return Kanye beyonce() What is your name? Meghna What is your birth date? 12/03/1992 Do you identify as male, female, or other? female Say my name, Say my name.megyonce Return Megyonce

FUNCTION NAME: personalitytest Parameters: none Return Value: (String A or B ) Description: This function will ask the user a series of questions about their personality. Each answer will fall under one of two different categories, a type A personality or type B personality. 1. The function will use two different lists (provided below) hard coded into the program and iterate through them, asking the user Would you describe yourself as the adjective from Type A or Type B (note: the adjective s positions in the lists correspond, i.e. adjective1 in type A list should be compared to adjective1 in type B list). Note! Do not hardcode each entire question into the program. Type A adjectives: ambitious, rigidly organized, impatient, ontime, high-stress, fast, competitive Type B adjectives: content, relatively disorganized, patient, late, low-stress, slow, easy going 2. Then the function will take into account each adjective the user selects (lower/upper case should not matter) and calculate the percentage of Type A personality and Type B personality (Type percent = Type score/total questions). The function will also compare the sums of the number of Type A adjectives selected and Type B adjectives selected and diagnose the user on their type of personality (A or B). The output will reveal the user s percentage of Type A and Type B personality and the user s overall personality. The percent should not have any decimals. 3. Finally, return the user s personality type as a letter A or B. Test Cases: personalitytest() Would you describe yourself as ambitious or content? ambitious Would you describe yourself as rigidly organized or relatively disorganized? Rigidly Organized Would you describe yourself as impatient or patient? impatient Would you describe yourself as on-time or late? On-

time Would you describe yourself as high-stress or lowstress? Low-stress Would you describe yourself as fast or slow? fast Would you describe yourself as competitive or easy going? Competitive You are 86% Type A and 14% Type B. Overall, you have a Type A personality. Return A personalitytest() Would you describe yourself as ambitious or content? ambitious Would you describe yourself as rigidly organized or relatively disorganized? Relatively disorganized Would you describe yourself as impatient or patient? impatient Would you describe yourself as on-time or late? late Would you describe yourself as high-stress or lowstress? Low-stress Would you describe yourself as fast or slow? slow Would you describe yourself as competitive or easy going? Competitive You are 43% Type A and 57% Type B. Overall, you have a Type B personality. Return B

FUNCTION NAME: passwordcreator Parameters: None Return Value: (String string of a password you encrypted) Description: Write a function that uses the output of the previous functions to create a unique password for your user. 1. The function will call your other three functions to get values for the world time and date, Celebrity name, and personality type. 2. For each letter in the user s celebrity name you will shift the letter the number of spaces in the alphabet indicated by the numbers in the world time list (i.e. use the first number in the worldtime list to indicate the shift for the first letter, the second number to indicate the shift for the second letter, etc.). All numbers leftover should be added to the end of the password. If the user has a Type A personality, the characters should shift right (i.e d + 3 = g). If the user has a Type B personality, the characters should shift left (i.e. d 3 = a). You can assume the name will never be longer than the list. 3. The function will not print anything, but will return the final password. Be careful of shifting past the letter z or before the letter a, you will need to create a way to wrap around the alphabet. Hint: You can use string.ascii_lowercase and string indexing to help you. Test Cases: Assume previous answers: Megyonce, B, [3,0,1,0,0,2,0,1,4,0,9,0,2]) PasswordCreator () Return jefyolcd40902 Assume previous answers: Kanye, A, [1,0,1,0,0,2,0,1,4,0,9,0,3]) PasswordCreator () Return laoye20140903

Grading: You will earn points as follows for each function that works correctly according to the specifications. PersonalityTest 20 Properly shows prompt without hardcoding 5 Properly prints answer with calculation 5 Properly iterates through lists 10 Beyonce 20 Properly shows prompt 3 Properly handles concatenation of strings 7 Properly distinguishes consonants and vowels 3 Properly returns output 7 WorldClock 30 Properly shows prompt 2 Properly handles changing time 10 Properly handles changing date 5 Properly shows output 10 Properly converts data types 3 PasswordCreator 30 Uses previously written functions properly 10 Does correct shift 10 Returns the correct string 10