Question: Use This language Visual C# (C# - similar in syntax to Java, Your app is computing and displaying tax for the user, in the format

Use This language Visual C# (C# - similar in syntax to Java,

Your app is computing and displaying tax for the user, in the format Hello John Doe, Your Tax is: ...... , where John Doe is the name entered, and .... indicates the tax amount as a dollar figure.

Your form has two textboxes, where the user will enter his/her name, and income, and click a Submit button.

Your app will store the name entered by the user into a variable of type String, and store the income into a variable of appropriate type.

Within the submit click: Declare a String variable to hold user name, and a variable of appropriate type to hold income. Start off by setting the name to an arbitrary name in the code, and the income to an arbitrary value as well. Later you can update these two lines to read inputs from the textboxes.

Naming style for variables: consult notes; variable names should include a descriptive word and type name. An example: to store price as a double, you would use priceDouble as the variable name.

You assume the tax rate is 15%. Declare variables to hold rate and tax. Choose appropriate type.

You can multiply two numbers x and y like this: Product = x * y

(the multiplication operator is * )

Use the name and the tax variables in your output display. You can choose how to display the information (label, message box, or textbox).

Do use a variable to hold the tax rate, instead of using the number directly in computation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!