Using C# and Visual Studio, design and implement a standalone command line application that fulfils the following requirements:
1. The user shall be able to enter the following values:
a. Gross monthly income (before deductions).
b. Estimated monthly tax deducted.
c. Estimated monthly expenditures in each of the following categories:
i. Groceries
ii. Water and lights
iii. Travel costs (including petrol)
iv. Cell phone and telephone
v. Other expenses
internal class Program
{
static void Main(string[] args)
{
SetExpensenAndIncome();
Console.ReadKey();
}
static void SetExpensenAndIncome()
{
Console.WriteLine("Enter your expenses and income");
Console.Write("Gross monthly income (before deductions): ");
Console.ReadLine();
Console.Write("Estimated monthly tax deducted: ");
Console.ReadLine();
Console.WriteLine("Estimated monthly expenditures in each of the following categories:");
Console.Write("Groceries: ");
Console.ReadLine();
Console.Write("Water and lights: ");
Console.ReadLine();
Console.Write("Travel costs (including petrol): ");
Console.ReadLine();
Console.Write("Cell phone and telephone: ");
Console.ReadLine();
Console.Write("Other expenses: ");
Console.ReadLine();
}
}
Comments
Leave a comment