Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Strings group 1 , group 2 , and group 3 are read from input. Each string represents a list of animal ( s ) surrounded

Strings group1, group2, and group3 are read from input. Each string represents a list of animal(s) surrounded by "" and ">".
Assign combinedAnimals with the concatenation of group1, group2, and group3 in the order read.
Assign groupOfAll with a string that contains all the animal(s) in group1, group2, and group3 in the order read, separated by "-" and surrounded by "" and ">".
Ex: If the input is:
then the output is:
All groups in one line:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

Students also viewed these Databases questions