Question: Write a function plural(str, n) which returns a plural version of str when n is O or greater than 1. Complete the following file: plural.cpp

 Write a function plural(str, n) which returns a plural version of

Write a function plural(str, n) which returns a plural version of str when n is O or greater than 1. Complete the following file: plural.cpp 1 #include 2 using namespace std; 3 #include "plural.h" 4 5 6 7 NMN Submit Use the following files: Tester.cpp #include #include using namespace std; #include "plural.h" int main() { cout Returns a plural string based on the quantity @param s the string to "pluralize" @param n the quantity @return the unchanged string if n is 1, add "s" otherwise. std::string plural (const std::string s, int n); #edit

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