Write a function called getChar that has no function inputs, buttakes in two character inputs from the user (in1 and in2) andoutputs them to the function that calls them (The function must useinput validation to make sure it is a character – Hint: use thelength() function). Write another function called chars2string thattakes in two character function inputs and combines them into onestring that repeats each character 5 times and returns the joinedstring (as function output). Call both functions in a mainfunction.
Expert Answer
Answer to Write a function called getChar that has no function inputs, but takes in two character inputs from the user (in1 and in…