Answer to Question #259928 in C++ for mmm

Question #259928

The Chemistry department has 4 computers, the Physics department has 8, the English de-

partment has 2, and the Math lab has 12. Write a program that produces the following out-

put. Have the computer perform the calculation in the last line. Format the output using the

appropriate escape sequences.


1
Expert's answer
2021-11-01T18:45:29-0400
class Program
{
    static void Main(string[] args)
    {
        Person person = new Person { Name = "Tom", Age = 23 };
 
        Console.WriteLine("Имя: {0}  Возраст: {1}", person.Name, person.Age);
        Console.Read();
    }
}
 
class Person
{
    public string Name { get; set; }
    public int Age { get; set; }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS