Write a function that takes a list containing characters and numbers as input (in random orders) and displays as output a string containing the character and a list containing the numbers, e.g., given the lists ("h" 1 2 3 "e" "I" 4 5 "I" "o"), your method should output: "hello" and '(1 2 3 4 5 6). Please make sure to test your function and to explain how your code works.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.4: Character Manipulation Functions
Problem 5E
icon
Related questions
Question
Note: I need this in Drracket(racket). Write a function that takes a list containing characters and numbers as input (in random orders) and displays as output a string containing the character and a list containing the numbers, e.g., given the lists ‘("h" 1 2 3 "e" "l" 4 5 "l" "o"), your method should output: "hello" and '(1 2 3 4 5 6). Please make sure to test your function and to explain how your code works.
SOB 35 – (Block 2 – material covered in Week 13)
Write a function that takes a list containing characters and numbers as input (in random orders)
and displays as output a string containing the character and a list containing the numbers, e.g.,
given the lists '("h" 1 2 3 "e" "I" 4 5 "I" "o"), your method should output: "hello" and '(1 2 3 4 5
6). Please make sure to test your function and to explain how your code works.
Transcribed Image Text:SOB 35 – (Block 2 – material covered in Week 13) Write a function that takes a list containing characters and numbers as input (in random orders) and displays as output a string containing the character and a list containing the numbers, e.g., given the lists '("h" 1 2 3 "e" "I" 4 5 "I" "o"), your method should output: "hello" and '(1 2 3 4 5 6). Please make sure to test your function and to explain how your code works.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr