Question: Set the email address james.smith@xyz . chc . com' as a string value to a variable. Use proper string functions and create two variables

Set the email address "
james.smith@xyz.chc.com' as a string value to a variable. Use proper string functions and create two variables with string values as follows:
name = 'james.smith'
company ='xyz.chc'
Use code to determine length and positions.
2. Set up the following two variables as string values. No credit if these are set up as numbers.
price =' $252.15'
discount ='15%'
a. Clean up the strings and then convert them to numeric data type.
b. Using the cleaned up numeric data type variables from (a) assemble and print the following string.
"Price is $252.15 with discount of 15% the net price is $214.33.
Note: No credit if the numbers in the string are simply typed into it.
 Set the email address " james.smith@xyz.chc.com' as a string value to

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 Databases Questions!