Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Submission Requirements Python . py file with no markdown language. Only Python code and comments. Group Assignment: Only 1 assignment needs to be submitted for
Submission Requirements Python py file with no markdown language. Only Python code and comments. Group Assignment: Only assignment needs to be submitted for each group. Task Create a program by the following definition: Define the following setting variables variables containing the following values for a string: I would suggest a list of some kind Consonants are worth Vowels are worth points all other characters are worth WordToTest Your code must perform the following operations: roll a random number low value of random range is high value for range is defined as: lengthWordToTest NumberOfVowelsWordToTest Score the WordToTest based on the letter values found in bullet Create a conditional logic output to test: which has the higher value computed wordtotest or random gen Notes and Hints When looping through the string to score, the function isalpha might be helpful. Also might be useful as well. Example Hello would be scored as points! The random number would be from a range of to
Submission Requirements
Python py file with no markdown language. Only Python code and comments.
Group Assignment: Only assignment needs to be submitted for each group.
Task
Create a program by the following definition:
Define the following setting variables
variables containing the following values for a string: I would suggest a list of some kind
Consonants are worth
Vowels are worth points
all other characters are worth
WordToTest
Your code must perform the following operations:
roll a random number
low value of random range is
high value for range is defined as:
lengthWordToTest NumberOfVowelsWordToTest
Score the WordToTest based on the letter values found in bullet
Create a conditional logic output to test:
which has the higher value computed wordtotest or random gen
Notes and Hints
When looping through the string to score, the function isalpha might be helpful. Also might be useful as well.
Example
Hello would be scored as points! The random number would be from a range of to
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