Exercise1Chp2Solut

Exercise1Chp2Solut - First Name (Print)_ Last Name (Print)_...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
First Name (Print)__________________ Last Name (Print)_______________________ CSE182 Exercise 1 (Chapter 2) 1. Show the output exactly as it would be displayed on the screen: line1 using System; line2 //WriteLine Exercise line3 namespace DisplaySomeLines line4 { line5 class DisplayMoreLines line6 { line7 static void Main() line8 { line9 Console.Write("\tHe said \"This nation "); line10 Console.Write("shall have"); line11 Console.WriteLine(" a new birth of freedom -- "); line12 Console.Write("and that government of "); line13 Console.WriteLine("the people,\n by the people,\n for the people, \n"); line14 Console.WriteLine("shall not perish from the earth. \"\n"); line15 } line16 } line17 } He said “This nation shall have a new birth of freedom - - and that government of the people, by the people, for the people, shall not perish from the earth. ” 2. Using the program segment in question #1, answer the following questions: a. What are the keywords (have special meaning in C#) using, System, namespace, class, static, void, etc
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Exercise1Chp2Solut - First Name (Print)_ Last Name (Print)_...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online