Question
Chapter 3 B: Keyboard Character Programming Assignment Prolog: In this assignment, you are going to write compound if statements based on the order of characters
Chapter 3 B: Keyboard Character Programming Assignment
Prolog: In this assignment, you are going to write compound if statements based on the order of characters in the ASCII system. There is an ASCII table at the end of your text book and you can find one here: http://www.asciitable.com/
python program please
Do not use functions such as isNumeric to determine category.
Here is a bit of code that may help you:
char = str("")
char = input("Enter 1 character from the keyboard")
if char >= "a" and char <= "z":
print ("lower case", char)
Part 1: Design Document (Worth 20 points)
- Student Information, Requirements and design/pseudocode: 5 pts
- Copy of program source code taken from IDLE
- Includes comments for each section of code specifying input, process, and output for each: 10 pts
- Screen shot of output that is legible: 5 pts
Part 2: Source code (Worth 50 - 80 points)
- Base program: up to 50 pts + 20 Design points = final score up to 70 points
- Moderate extension: up to 65 pts + 20 Design points = final score up to 85 points
- Complex extension: up to 80 pts + 20 Design points = final score up to 100 points
Base Program Requirements: 50 points
- Program should accept a single character of input from the user. Using a decision structure, determine if the character is a letter, a digit, or a symbol. Print the character entered along with the category (letter, digit, symbol)
- Display the value of each of the variables with appropriate labels (See output example)
Output Example: User Input: b
User entered the letter: b
User Input: 6
User entered the digit: 6
User Input: $
User entered the symbol: $
Moderate Extension Requirements: 65 points
- Program should accept a single character of input from the user. Using a decision structure, determine if the character is a letter, a digit, or a symbol. Print the character entered along with the category (upper case letter, lower case letter, digit, symbol)
- Display the value of each of the variables with appropriate labels (See output example)
Output Example: User Input: b
User entered the lower-case letter: b
User Input: G
User entered the upper-case letter: G
User Input: 6
User entered the digit: 6
User Input: $
User entered the symbol: $
Complex Extension Requirements: 80 points
- Program should accept a single character of input from the user. Using a decision structure, determine if the character is a letter, a digit, or a symbol. Print the character entered along with the category (upper case consonant, lower case consonant, upper case vowel, lower case vowel, digit, symbol)
- Display the value of each of the variables with appropriate labels (See output example)
Output Example: User Input: b
User entered the lower-case consonant: b
User Input: G
User entered the upper-case consonant: G
User Input: a
User entered the lower-case vowel: a
User Input: E
User entered the upper-case vowel: E
User Input: 6
User entered the digit: 6
User Input: $
User entered the symbol: $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started