Outcomes Parsing user input from text boxes Using the assignment and arithmetic operators Develop, test,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Outcomes • Parsing user input from text boxes Using the assignment and arithmetic operators Develop, test, and debug computer programs Problem Description: A local shoe store is asking you to develop a simple sales application that compute the sales tax (VAT) on the price of a pair of shoes, and display the amount of the tax, and total price plus tax, on two separate text boxes. Your program should compute the tax amount multiplying the tax rate of 10% compute the total sales amount by adding the tax amount to the sale price. The user will enter only the unit price of a pair of shoes, and your program should compute and display the tax amount and total sales amount. Your program should do the following: 1) Read the product unit price from the text box. 2) Compute the Tax Amount, by multiplying the unit price by the tax rate of 10% 3) Compute the Total Sales Amount by adding the Tax Amount to the Unit Price 4) Display both the Tax Amount and the Total Sales Amount on two separate text boxes, both formatted to currency with two decimals Interface Design with a sample run: Unit Price: Tax Amount: Total SalsAmount: Compute&play Sales 500 $50.00 $550.00 Clear All Ext Dr. Mohamed A Nou/Foll2023 2024 The following are the button controls and their expected behavior: 1. Compute & Display Sales Amounts: when clicked will do the following a. Compute Tax Amount and Total Sales Amount b. Display both computed amounts 2. Clear All Fields: This should do the following: a. Clear all the three text box fields b. Set the focus back to the "UnitPrice" text box. a. Close and exit the application. The following are additional requirements: 1. Form: the form should have the following property set a. Text property set to "Product Sales Application" 2. The last two output text boxes: The text boxes for the Tax Amount and the Total Sales Amount should have both the following properties set a. Readonly: set to TRUE b. Backcolor: set to "Control" or "Light Control Submission Requirements: 1. Design the form and the controls as given above 2. Write the code, compile, and test your project to ensure that it works Outcomes • Parsing user input from text boxes Using the assignment and arithmetic operators Develop, test, and debug computer programs Problem Description: A local shoe store is asking you to develop a simple sales application that compute the sales tax (VAT) on the price of a pair of shoes, and display the amount of the tax, and total price plus tax, on two separate text boxes. Your program should compute the tax amount multiplying the tax rate of 10% compute the total sales amount by adding the tax amount to the sale price. The user will enter only the unit price of a pair of shoes, and your program should compute and display the tax amount and total sales amount. Your program should do the following: 1) Read the product unit price from the text box. 2) Compute the Tax Amount, by multiplying the unit price by the tax rate of 10% 3) Compute the Total Sales Amount by adding the Tax Amount to the Unit Price 4) Display both the Tax Amount and the Total Sales Amount on two separate text boxes, both formatted to currency with two decimals Interface Design with a sample run: Unit Price: Tax Amount: Total SalsAmount: Compute&play Sales 500 $50.00 $550.00 Clear All Ext Dr. Mohamed A Nou/Foll2023 2024 The following are the button controls and their expected behavior: 1. Compute & Display Sales Amounts: when clicked will do the following a. Compute Tax Amount and Total Sales Amount b. Display both computed amounts 2. Clear All Fields: This should do the following: a. Clear all the three text box fields b. Set the focus back to the "UnitPrice" text box. a. Close and exit the application. The following are additional requirements: 1. Form: the form should have the following property set a. Text property set to "Product Sales Application" 2. The last two output text boxes: The text boxes for the Tax Amount and the Total Sales Amount should have both the following properties set a. Readonly: set to TRUE b. Backcolor: set to "Control" or "Light Control Submission Requirements: 1. Design the form and the controls as given above 2. Write the code, compile, and test your project to ensure that it works
Expert Answer:
Answer rating: 100% (QA)
Based on the requirements youve provided heres an example of how you might design the form and write the code for this simple sales application in a language like C assuming a Windows Forms Applicatio... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Required Report Topic: Backbone Network Design on NETSIM Simulator having 12 nodes 1. Introduction (500 words) 2. Literature review on routing protocols used backbone networks (1000 words) RIP and...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Starting with acetylene as your only source of carbon atoms, identify how you would prepare each member of the following homologous series of aldehydes: a. Ethanal b. Propanal c. Butanal d. Pentanal
-
The structure is subjected to the loadings shown. Member AB is supported by a ball-and-socket at A and smooth collar at B. Member CD is supported by a pin at C. Determine the x, y, z components of...
-
Under managed care, how are providers and patients incentivized to control costs?
-
Use stepwise regression with \(F_{\mathrm{IN}}=F_{\text {OUT }}=4.0\) to find the "best" set of regressor variables for the Belle Ayr liquefaction data in Table B.5. Repeat the analysis with...
-
Mike Lyons incorporated Lyons Concrete, Inc., in Montana, but did not file its first annual report, so the state involuntarily dissolved the firm in 1996. Unaware of the dissolution, Lyons continued...
-
s Machine-hours required to support estimated production Fixed manufacturing overhead cost Variable manufacturing overhead cost per machine-hour Required: 1. Compute the plantwide predetermined...
-
Prepare the 2021 statement of cash flows for Smolira Golf Corp. Some recent financial statements for Smolira Golf Corp. follow. Use this information to work this problem. SMOLIRA GOLF CORP. 2020 and...
-
Cactus Company's trial balance reflected the following account balances at December 31st: Accounts Receivable (net) $38,288 Trading Securities $30,928 Accumulated Depreciation on Equipment and...
-
The acidity or alkalinity of a solution is measured using pH. A pH less than 7 is acidic; a pH greater than 7 is alkaline. The accompanying data represent the pH in samples of bottled water and tap...
-
(a) Roll a single die 50 times, recording the result of each roll of the die. Use the results to approximate the probability of rolling a three. (b) Roll a single die 100 times, recording the result...
-
What is the linear form of y = ab x ?
-
In January 2015, the mean amount of money lost per visitor to a local riverboat casino was $135. Do you think the median was more than, less than, or equal to this amount? Why?
-
log a 14 = 3 Change each logarithmic expression to an equivalent expression involving an exponent.
-
Buservice Inc. is a transportation company in the Tampa area that provides bus services. Twelve months ago. Buservice Inc. initiated a project with the intent of reducing the annual maintenance cost,...
-
What is EBIT/eps analysis? What information does it provide managers?
-
Ray and Maria Gomez have been married 3 years. They live at 1610 Quince Ave., McAllen, TX 78701. Ray works for Palm Oil Corporation and Maria works for the City of McAllen. Maria's Social Security...
-
Greg died on July 1, 2012, and left Lea, his wife, a $50,000 life insurance policy which she elects to receive at $5,000 per year plus interest for 10 years. In the current year, Lea receives $6,200....
-
William sold Section 1245 property for $25,000 in 2012. The property cost $35,000 when it was purchased 5 years ago. The depreciation claimed on the property was $16,000. a. Calculate the adjusted...
-
The topological optimization is discussed in chapter 1. Here, we will consider a topological optimization problem for a chemical process plant. The layout of the chemical process plant has been shown...
-
For installation and operation of a pipeline for an incompressible fluid, the total cost (in dollars per year) can be represented as follows: \[C=C_{1} D^{1.5} L+C_{2} m \Delta p / ho\] where...
-
An adiabatic two-stage compressor is used to compress a gas, which is cooled to the inlet gas temperature between the stages, the theoretical work can be expressed by the following equation:...
Study smarter with the SolutionInn App