Write code for function that accepts any number of arguments


Problem

Write code for a function that accepts any number of arguments, and displays the total number of arguments and the total number of numeral arguments passed to it in each invocation. The function must make use of a variable-length parameter list.

For example, if the function is invoked with the arguments "Thando", 23, "Busi", 40, it will display the following:

Total number of arguments: 4, total number of numerals in these arguments: 2
On the other hand, if the function is invoked with the argument "Mutsa", it will display the following:

Total number of arguments: 1, total number of numerals in these arguments: 0

Write code to invoke the function twice with arguments:

(1) "Thando", 23, "Busi", 40
(2) "Mutsa".

Request for Solution File

Ask an Expert for Answer!!
Management Information Sys: Write code for function that accepts any number of arguments
Reference No:- TGS03212997

Expected delivery within 24 Hours