Question: 5 . ( 1 0 ) Given the following variables: > > mystring = No Halloween Parties!!; > > yourchvec = ' Be Safe!!

5.(10) Given the following variables:
>> mystring="No Halloween Parties!!";
>> yourchvec='Be Safe!!';
Explain why length(yourchvec) is 9 but length(mystring) is 1.
Also, show how you could index into mystring to get the H using
just one expression, without using any functions, and explain your
answer.
6.(15) Write a function that will prompt the user separately for a
filename and extension and will create and return a string with the
form filename.ext.

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