PROG 8011 - Lab 5 - W24
PROG 8011 - Lab 5 - W24
PROG 8011 - Lab 5 - W24
https://www.javatpoint.com/c-sharp-strings
2. Code Implementation: Write a C# program that demonstrates the use of at least five
different string methods. You can choose from methods such as Substring(), ToUpper()
etc. Create a new method for each example of using a string method.
3. Comments and Documentation: Provide comments throughout your code to explain
the purpose of each method call and any significant steps in your program. Additionally,
write a brief documentation explaining the functionality of each string method you have
used in your program.
4. Testing: Test your program with various input strings to ensure that it behaves as
expected in different scenarios. Document your test cases and their outcomes.
5. Submission: Submit your lab5.cs file as lab5.zip
Additional Notes:
You are encouraged to experiment with additional string methods beyond the minimum
requirement.
Collaborative work is not allowed.
Plagiarism will not be tolerated. Ensure that all code and documentation are your own
work.
This assignment is designed to be completed within a few hours.
The deadline to submit is on d2l.
Category Scale Description
Code 1-60 5: Exemplary implementation of five or more different string methods with outstanding code
Implementation structure, clarity and is unique
4: Good implementation of five or more different string methods with commendable code
structure and clarity.
3: Adequate implementation of at least five different string methods with some issues in code
structure or clarity.
2: Partial implementation of the required string methods with significant issues in code structure
or clarity.
1: Failure to implement the required string methods with poor code structure and clarity.
Comments and 1-20 5: Comprehensive comments explaining each method call and significant steps, along with clear,
Documentation concise documentation and is unique.
4: Sufficient comments explaining most method calls and significant steps, with clear
documentation.
3: Some comments present but lacking clarity or completeness, with somewhat clear
documentation.
2: Few unclear comments or lack of comments, along with documentation lacking clarity.
4: Demonstrates creativity and innovation in applying string methods, with some unique
approaches or solutions.
1: Very poorly formatted and extremely difficult-to-read code, with no adherence to naming
conventions.
/// <summary>
/// Converts the input string to uppercase and outputs the result.
/// </summary>
static void ConvertToUpperCase()
{
// Input string
string inputString = "hello, world!";
/// <summary>
/// Gets a substring from the input string and outputs the result.
/// </summary>
static void GetSubstring()
{
// Input string
string inputString = "hello, world!";