Question: Problem 1 ( 20 points): - Write a function called count_upper that returns the number of uppercase characters that appear in the input parameter my_string.

Problem 1 ( 20 points): - Write a function called
Problem 1 ( 20 points): - Write a function called count_upper that returns the number of uppercase characters that appear in the input parameter "my_string". - Write a print_percentage that takes a string as its parameter and prints the percentage of uppercase letters in that string. Make sure you use the count_upper function to calculate the uppercase percentage. Use the following formula to find the uppercase percentage: uppercase rate = number of uppercase letters / total number of characters (uppercase percentage is the uppercase rate printed in percentage format) - Find the percentage of the uppercase characters in the following strings: "Hello, My Name is ABC." "\#012\%6jjX: This is NOT GOOD" The output should be as follows: Percentage of uppercase letters in "Hello, My Name is ABC." is: 27.27\% Percentage of uppercase letters in " #012%6jJJ: This is NOT GOOD" is: 33.33%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!