Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description The purpose of this challenge is to manually manipulate character arrays. This challenge converts a Spanish word to the diminutive version. Requirements Write a

Description

The purpose of this challenge is to manually manipulate character arrays. This challenge converts a Spanish word to the diminutive version.

Requirements

Write a function to determine the diminutive form of a word in Spanish. Call it void smallify(char before[], char after[]). If a word in Spanish ends in co or ca, the diminutive form of the word takes the first part of the word, converts the c to quit and completes the word with the suffix of the original word. DO NOT cout after IN THIS FUNCTION.

If the before word does not end in co or ca, then simply copy before to after with no changes. For example: taco becomes taquito (ta-co becomes ta-quit-o) flaca becomes flaquita (fla-ca becomes fla-quit-a) flores becomes flores (flores becomes flores)

Ensure that your after array allows for more characters than your before array.

Sample Interaction / Output

Enter a string: flaca flaca becomes flaquita Enter a string: taco taco becomes taquito 

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions