Write a program to convert a percentage to a decimal


Problem:

Write a program to carry out each task. The program should use variables for each of the quantities and display the outcome in a text box with a label.

Question 1: Calculate the amount of a waiter's tip, given the amount of the bill and the percentage tip as input. (Test the program with $20 and 15 percent.)

Question 2: Convert a percentage to a decimal. For instance, if the user enters 125% into a text box, then the output should be 1.25.

Question 3: Write a program that contains a button and a read-only text box on the form, with the text box initially containing 100. Each time the button is clicked on, the number in the text box should decrease by 1.

Question 4: Request a company's annual revenue and expenses as input, and display the company's net income (revenue minus expenses). (Test the program with the amounts $550,000 and $410,000.)

Show the code, demonstrate it works properly and describe what it is doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to convert a percentage to a decimal
Reference No:- TGS0892023

Expected delivery within 24 Hours