Question: Lab 8 - Strings Problem 1 . Character Analysis - Use the file text.txt that is attached to Blackboard. Write a program that reads the
Lab Strings
Problem Character Analysis Use the file text.txt that is attached to Blackboard. Write a program that reads the file's contents and determines the following:
The number of uppercase letters in the file
The number of lowercase letters in the file
The number of digits in the file
The number of whitespace characters in the file
Output should look like this:
Uppercase letters:
Lowercase letters:
Digits:
Spaces:
Hint: This program does not need to use any lists the entire file can be read into one string.
Problem Date Printer Write a program that reads a string from the user containing a date in the form mmddyyyy It should print the date in the format March
Sample dialog:
Enter a date in the format mmddyyyy:
January
You should have py files to turn in
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
