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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started