Question: please answer the second question. its C++ prgram and i use netbeans as my complier 1. This function computes the factorial of its argument int

please answer the second question. its C++ prgram and i use netbeans as my complierplease answer the second question. its C++ prgram and i use netbeans

1. This function computes the factorial of its argument int fact (int n) fi return n>1 ? n* fact (n-1) : 1; Write a program that uses fact to display the first 10 factorials, with the values arranged in columns of width 4 and 10 characters. The output should look like this 1 2 24 10 3628800 2 > 2. Write code for these functions using the string API .A boolean function no ell that takes a string as parameter and returns true if the string does not contain any instance of character ell ('1' or 'L') bool no ell (string s) f 1 .A string function no_ells that takes a string as parameter and returns a copy of the parameter with all instances of character ell (1' and 'L') removed. string no ells (string s) f 1 . A void function noel that takes a string as parameter and replaces all occurrences of the string "Noel" or "noel" with "Christmas". Since the function does not return a value, you'll need to consider how to make the modified string available to the caller. void noel (string s) t... h Make sure your functions produce correct output with this test code string s = "Noel has a canoeload of ells"; if (no el1(s)) cout

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!