Question: C# Program: Make a class that contains the following functions: isLong, isDouble, stringToLong, and stringToDouble. Each receives a string and returns the appropriate type (bool,

C# Program:

Make a class that contains the following functions: isLong, isDouble, stringToLong, and stringToDouble. Each receives a string and returns the appropriate type (bool, bool, long, and double). VERY IMPORTANT : During the rest of the semester you will paste this class into your programs and will no longer use any of the "standard" c# functions to convert strings to numbers.

The first two functions (isLong and isDouble) are there to check whether the input is a long or is a double. Then the other two (stringToLong and stringToDouble) are there to convert the string input to their respective types (Long and Double).

Thank you for your help!

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!