Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions