Use visual studio C# kindly provide a screenshot of code and output,help me with
ID: 3710472 • Letter: U
Question
Use visual studio C# kindly provide a screenshot of code and output,help me with no. 4,5 and 6
ENAST RIKA First Program Using C# 4. Write, compile, and test a program named PersonalInfo that displays a persons 5. Write, compile, and test a program named Lyrics that displays at least four lines of 6. Write, compile, and test a program named Comments that displays a statement name, e-mail address, and phone number. Det 1. Each o has sy progra with F a. De b. De c. De d. De your favorite song. 4 that define comment in the program. Write, compile, and test a program named WineGlass that displays a pattern similar to the following on the screen: s program comments. Include at least one block comment and one line 7. Cas The case p book, you conceptsy 1. Greenv Write a program named Bigletter that displays a large letter composed of smaller letters as in the following example: 8.Explanation / Answer
If you post more than 1 question, as per chegg guidelines I have to solve only first question.
Ques 4.
using System;
namespace Rextester
{
class PersonInfo
{
string name;
string email;
string phone_number;
// constructor
public PersonInfo(string name, string email, string phone_number)
{
this.name = name;
this.email = email;
this.phone_number = phone_number;
}
// setter method
public void setName(string name)
{
this.name = name;
}
public void setEmail(string email)
{
this.email = email;
}
public void setPhoneNumber(string phone_number)
{
this.phone_number = phone_number;
}
// getter method
public string getName()
{
return this.name;
}
public string getEmail()
{
return this.email;
}
public string getPhoneNumber()
{
return this.phone_number;
}
}
public class Program
{
public static void Main(string[] args)
{
PersonInfo ob = new PersonInfo("Chandler Bing" , "chandlerbing@mail.com", "987564892");
Console.WriteLine("Name : " + ob.getName() + " ");
Console.WriteLine("Email : " + ob.getEmail() + " ");
Console.WriteLine("Phone Number : " + ob.getPhoneNumber());
}
}
}
Sample Output
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.