Mt. San Jacinto College Computer Information Systems
Minimize header.

CSIS 111B: Assignments

Assignment 2

  1. After reading Lesson 5 and completing the String Variable Code Example at the bottom of Lesson 5, complete the following steps:
  2. Create a new C# Console Project named Assignment2.
    1. Write a C# statement inside of the Main() method of your Assignment2 program.cs file which displays the words "Enter first name: " on the user's screen when executed.
    2. Write a C# statement inside of the Main() method of your Assignment2 program.cs file which assigns the user input from the keyboard to a string variable named "firstName" when executed.
    3. Write a C# statement inside of the Main() method of your Assignment2 program.cs file which displays the words "Enter last name: " on the user's screen when executed.
    4. Write a C# statement inside of the Main() method of your Assignment2 program.cs file which assigns the user input from the keyboard to a string variable named "lastName" when executed.
    5. Write a C# statement inside of the Main() method of your Assignment2 program.cs file which concatenates the text "Hello " along with the values of the firstName and lastName variables and displays the results to the screen. Output should look something like "Hello Bill Bennett".
    6. Be sure to run your program to verify that it executes without error(s). If there are errors, you better fix them if you want full credit for the assignment.
  3. Save changes to the Program.cs file in Visual Studio.
  4. Use a Web browser to open the CSIS 111B course shell in Canvas.
  5. Click on the Assignments link from the Canvas menu to the left of the Home page.
  6. Click on the title for the assignment you are submitting
  7. Click on the Submit Assignment button.
  8. Use hilite.me to convert your copied Visual Studio source code into HTML.
    1. Copy your source code from Visual Studio and paste it into the Source code window on hilite.me.
    2. Select C# from the Language drop-down list.
    3. Check the Line Numbers check box.
    4. Click the Hilite! button.
    5. Copy the HTML code from the hilite.me HTML window.
  9. IMPORTANT! Click the HTML Editor link in the upper right of this assignment submission page.
  10. Paste the copied HTML code into the text submission box.
  11. Click Submit to complete the process.
  12. Check you submission by clicking the Submission Details link that appears in the Submission Completed box in the upper-right of this screen.

That's it you have completed the assignment submission process.