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
Here is my program:
static void Main(string[] args)
{
int grossmonincome;
int montaxdeduct;
int groceries;
int waterandlights;
Console.WriteLine("Enter gross monthly income (before deductions): ");
grossmonincome = Int32.Parse(Console.ReadLine());
Console.WriteLine("Enter estimated monthly tax deducted: ");
montaxdeduct = Int32.Parse(Console.ReadLine());
Console.WriteLine("Enter estimated monthly expenditures in each of the following categories: ");
Console.WriteLine("1) Groceries: ");
Console.WriteLine("2) Water and lights: ");
groceries = Int32.Parse(Console.ReadLine());
waterandlights = Int32.Parse(Console.ReadLine());
}
Comments
Leave a comment