Answer to Question #310089 in C# for TtT

Question #310089

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

1
Expert's answer
2022-03-12T04:56:04-0500

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());
        }

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