Question: code In C# 3. Create & Test a function that counts all integers and all doubles from a passed string and creates a resulting string

 code In C# 3. Create & Test a function that counts

code In C#

3. Create & Test a function that counts all integers and all doubles from a passed string and creates a resulting string in the following format: "The of sum of all integers is XXXX; The sum of all doubles is YYYY.YY" where XXXX is the sum of all integers found in the input string and YYYY.YY is the sum of all double values found in the input string. The function will take a pointer to a string as input and will return the pointer to the resulting string back. Note: Your string may be long (spans over multiple lines). Do not use static allocation. Your function should have the following interface: Input (function arguments): Pointer to a string (i.e., character array / pointer) Output (function return value): Pointer to the start of the resulting string buffer. Note: Do not update the interface without a valid reason or explanation

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!