ITSE 1359 – Program10 Page 1 of 5 General Points • Program10 can be completed using content from the following chapters: o Python @ ACC - Welcome! through File I/O & Modules o Textbook - Chapters 6,...

1 answer below »
In PDF File.



ITSE 1359 – Program10 Page 1 of 5 General Points • Program10 can be completed using content from the following chapters: o Python @ ACC - Welcome! through File I/O & Modules o Textbook - Chapters 6, 7, and 8 • Create a file named program10.py. • Do not repeat identical examples from the course material. Requirements (these are the requirements to identify by number): See the Get pyperclip First section after the requirements list. 1. Output a header in the console: “This is Program10 - ” 2. Print “This program works with strings, uses regular expressions, and performs input validation tasks.” 3. Demonstrate the following: • a string that includes the five Python escape characters • a raw string that includes the five Python escape characters • triple quotes using single and double quote examples. • an example of multiline comments in your code. 4. Assign a string to a list and print: • a single indexed character • the character 5 index places from the end • the characters starting at 3 until the end • the characters from the beginning up to but not including character 7 5. Demonstrate the in and not in operators. 6. Demonstrate including two strings inside another string using: • the ‘+’ operator https://www.austincode.com/itse1359/ https://automatetheboringstuff.com/ ITSE 1359 – Program10 Page 2 of 5 • string interpolation • f-strings 7. Demonstrate: isalpha(), isalnum(), isdecimal(), isspace(), and istitle(). 8. Use two isX() methods in two loops (one per loop) for input validation. 9. Convert a list of strings into one string. 10. Convert one string into a list of strings. 11. Demonstrate the following string methods: • partition() • center() • strip() • ord() • chr() 12. Demonstrate the following using pyperclip: • copy() to the clipboard • paste() from the clipboard 13. Ask the user to enter a user id in the following format: • AAAA-#### • The first four characters must be a-z and/or A-Z. The next four are numbers. • example: RWVT-7733 14. Use regular expressions to verify the user id supplied by the user meets format above. If not, inform the user and ask them to retry or exit. 15. After verifying the user id meets the format, verify that one of the following user ids has been entered. 16. Only accept the following user ids: • gdrt-8493, DBTF-6253, UyHt-8326, YYrv-5329, qzrb-8264 17. After successful entry, display a message stating, “Thank you for entering your user id.” 18. Ask the user to enter a phone number in the following format: • ###-###-###-#### ITSE 1359 – Program10 Page 3 of 5 • The first three numbers are the international calling code, followed by the area code, the exchange, and the number. Three dashes separate the values. • example: 506-745-223-4433 (using country code for Costa Rica) 19. Use regular expressions to verify the phone number supplied by the user meets format above. If not, inform the user and ask them to retry or exit. 20. After verifying the phone number meets the format, verify the call is being placed to one of the countries below. 21. Only accept calls to the following countries: • Andorra – 376 • Bolivia – 591 • Djibouti – 253 • Georgia – 995 • Lithuania – 370 22. After successful entry, display a message stating, “Your call has been placed. Thank you for calling .” 23. Demonstrate five PyInputPlus functions to validate input. 24. Demonstrate the following PyInputPlus keyword arguments: • min, max, greaterThan, and lessThan • limit, timeout, and default • allowRegexes and blockRegexes 25. Print a statement explaining your experiences with Program10. Make this authentic (minimum of 2-3 sentences). TEST – TEST – TEST your application to ensure the requirements are met. • Use the list above and the common requirements as a checklist. • Not meeting all requirements = 0 points for the assignment. ITSE 1359 – Program10 Page 4 of 5 Get pyperclip First This program requires the use of pyperclip, a module to work with the clipboard. The Steps below describe installing pyperclip from: The Command Line and PyCharm. To install via the Command Line: Navigate to your working directory and run the commands: C:\python -m pip install --upgrade pip - upgrade pip installer C:\pip install pyperclip - install pyperclip C:\set PYTHONPATH=. - may need if your PYTHONPATH is not set correctly NOTE: Personally, I needed to copy pyperclip folder from c:\python36\lib\site- packages to c:\python36\Lib for the package to be recognized. To install via PyCharm: In PyCharm | File | Settings, add the pyperclip package using the following steps: Find the pyperclip package in the list on the left and select Install Package. ITSE 1359 – Program10 Page 5 of 5 PyCharm should report that the pyperclip package was installed successfully. Select OK. NOTE: Personally, I also needed to copy the pyperclip folder from c:\python36\lib\site-packages to c:\python36\Lib for the package to be recognized.
Answered Same DayNov 09, 2021

Answer To: ITSE 1359 – Program10 Page 1 of 5 General Points • Program10 can be completed using content from the...

Vicky answered on Nov 12 2021
144 Votes
'''This is Program10 - Matthew Jordan'''
print('This program works with strings, uses regular expres
sions, and performs input validation tasks.')
print("Hello there!\nHow are you?\nI\'m doing fine.")
print(r"Hello there!\nHow are you?\nI\'m doing fine.")
print('''Dear Alice,
Eve's cat has been arrested for catnapping, cat burglary, and extortion.
Sincerely,
Bob''')
'''This is a
multiline comment'''
data= ['hello_world']
print(data[0][4])
print(data[0][-5])
print(data[0][3:])
print(data[0].replace(data[0][6],''))
string = 'hello_world'
print('e' in string)
print('j' in string)
print('e' not in string)
print('j' not in string)
name = 'World'
program = 'Python'
print(name+"'s best language is "+program)
print("Welcome to % s of % s"% (name,program)) # % formatting
print("{b1}! This is {b2}.".format(b1 = name, b2 = program)) # Str.format()
print(f'Hello {name}! This is {program}') # f-string
str1 = 'hello'
str2 = 'Hello'
str3 = '123hello'
str4 = '\u0033'
str5 = ' ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here