CustomerInfo.txt
5
Anna Alaniz
123 10th st, McAllen, TX 78504
956-456-7899
A0000001
[email protected]
2500
true
Bob Ho
456 15th st, McAllen, TX 78504
956-456-1000
A0000002
[email protected]2500
true
Hector Alcoser
2004 44th st, McAllen, TX 78501
956-456-5555
A0000003
[email protected]495
false
Jorge Lee
123 10th st, McAllen, TX 78504
956-555-6666
A0000004
[email protected]1200
true
Pablo Gonzalez
777 2th st, McAllen, TX 78502
956-100-2000
A0000005
[email protected]1750
false
main.cs
using System;
class Person
{
public string name;
public string address;
public string phone;
public void displayPerson()
{
Console.WriteLine("Name\t\t: {0}", name);
Console.WriteLine("Address\t: {0}", address);
Console.WriteLine("Phone\t:{0}", phone);
}
}
class Customer: Person
{
public string customerNumber;
public string customerEmail;
public double spentAmount;
public bool InMailingList;
public double calcAmount()
{
spentAmount = 0;
return spentAmount;
}
public void displayCustomer()
{
Console.WriteLine("Customer No.\t:{0}", customerNumber);
Console.WriteLine("Email\t\t:{0}", customerEmail);
Console.WriteLine("Amount Spent\t:{0}", spentAmount);
Console.WriteLine("InMailingList\t:{0}", InMailingList);
}
}
class PreferredCustomer: Customer
{
public int discountLevel;
public PreferredCustomer(string a, string b, string c, string d, string e, double f, bool g)
{
name = a;
address = d;
phone = b;
customerNumber = e;
customerEmail = c;
...