4) Create an application that when the user clicks a button, call a sub procedure to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4) Create an application that when the user clicks a button, call a sub procedure to input a student name, size and quantity of shirts ordered. Write a function to order price based on the rule: If the size is Small or Medium, the price is $10 per shirt, otherwise the price is $12.00 per shirt. Output to a label as shown using a sub procedure. (Use input validation where necessary). Your calls to your sub procedures and a function should look like this: Dim name as String Dim size as String Dim qty as Integer Dim price as Double Orders : : InputShirtInfo (name, size, qty) price CalcPrice (size, qty) OutputOrderInfo(name, price) Your input and output should look like this: Problem 4 Quit Student Name: Bill Smith The student BILL SMITH owes $36.00. Size: Small Medium Large X-Large Quantity: 3 x 4) Create an application that when the user clicks a button, call a sub procedure to input a student name, size and quantity of shirts ordered. Write a function to order price based on the rule: If the size is Small or Medium, the price is $10 per shirt, otherwise the price is $12.00 per shirt. Output to a label as shown using a sub procedure. (Use input validation where necessary). Your calls to your sub procedures and a function should look like this: Dim name as String Dim size as String Dim qty as Integer Dim price as Double Orders : : InputShirtInfo (name, size, qty) price CalcPrice (size, qty) OutputOrderInfo(name, price) Your input and output should look like this: Problem 4 Quit Student Name: Bill Smith The student BILL SMITH owes $36.00. Size: Small Medium Large X-Large Quantity: 3 x
Expert Answer:
Answer rating: 100% (QA)
Public Class Form1 Public Sub problem4ClickByVal sender As SystemObject ByVal e As SystemEventArgs H... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Create an application that stores data about your DVD collection in a file. The application should have a structure to hold the following fields: Video Name, Year Produced, Running Time, and Rating....
-
Create an application that accepts employee data interactively. Users might make any of the following errors as they enter data: The employee number is not numeric, less than 1000, or more than 9999....
-
Create an application that the Martin Company's accountant can used to calculate an asset's annual depreciation. You can either create your own interface. The figure shows a sample depreciation...
-
Date 1 July 2019 1 June 2020 30 June 2020 1 July 2020 1 July 2020 30 June 2021 1 July 2021 Particulars (???) (???) (To record acquisition of delivery truck) (???) (???) (???) (To record minor repair...
-
Long aluminum wires of diameter 5 mm (Æ¿ = 2702 kg/m3 and cp = 0.896 kJ/kg·°C) are extruded at a temperature of 350°C and are cooled to 50°C in atmospheric air at...
-
In Exercises 4750, evaluate C F dr using the Fundamental Theorem of Line Integrals. F(x, y) = sin yi - x cos yj C: clockwise around the circle (x + 1) + y = 16 from (-1, 4) to (3, 0)
-
Match threats in the first column to appropriate control procedures in the second column. Threat 1. Failing to take available purchase discounts 2. Receiving unordered goods 3. Recording and posting...
-
After looking at the projections of the HomeNet project, you decide that they are not realistic. It is unlikely that sales will be constant over the four-year life of the project. Furthermore, other...
-
Question 17 of 40 View Policies -/2.5 E: Current Attempt in Progress Sunland Co. had 250 units of product A on hand at January 1, 2025, costing $22 each. Purchases of product A during January were as...
-
Bowman Specialists Inc. (BSI) manufactures specialized equipment for polishing optical lenses. There are two modelsone (A25) principally used for fine eyewear and the other (A10) for lenses used in...
-
1. Suppose Steelcase doubled the amount of time to pay trade creditors. Use the proforma sheet to indicate the impact on the financial statements. What are the new plug figure to make the balance...
-
The median is the same as the ________________ quartile. In Exercises 912, fill in each blank with the appropriate word or phrase.
-
_____________ divide the data set approximately into quarters. In Exercises 912, fill in each blank with the appropriate word or phrase.
-
An auditor who has been engaged to audit the financial statements of Ajax Inc. is ready to begin considering Ajax's internal controls. Required: 1. What are the objectives of internal control? 2....
-
A sociologist samples five families in a certain town and records their annual income. The incomes are $34,000, $57,000, $13,000, $1,200,000, and $62,000. In Exercises 19 and 20, identify the...
-
A population has mean = 25 and standard deviation = 4. a. Find the z-score for a population value of 16. b. Find the z-score for a population value of 31. c. What number has a z-score of 2.5?
-
How could the cashflow issue be addressed to fix the FOH issue? Give two ways. Option 1 and your contingency plan
-
Design an experiment to demonstrate that RNA transcripts are synthesized in the nucleus of eukaryotes and are subsequently transported to the cytoplasm.
-
Which of the following statements generates a random integer from 1 to 25 (including 25)? a. intNum = randGen.Next(1, 25) b. intNum = randGen.Next(1, 26) c. intNum = randGen(1, 25) d. intNum =...
-
A form contains six check boxes. Three of the check boxes are located in a group box. How many of the check boxes on the form can be selected at the same time? a. One b. Two c. Three d. Six
-
Which property is used to specify a combo boxs style? a. ComboBoxStyle b. DropDownStyle c. DropStyle d. Style
-
(a) Prove that \(\sqrt{3}\) is irrational. (b) Prove that there are no rationals \(r, s\) such that \(\sqrt{3}=r+s \sqrt{2}\).
-
Prove that if \(n\) is any positive integer, then \(\sqrt{n}+\sqrt{2}\) is irrational.
-
Critic Ivor Smallbrain is watching the horror movie Salamanders on a Desert Island. In the film, there are 30 salamanders living on a desert island: 15 are red, 7 blue and 8 green. When two of a...
Study smarter with the SolutionInn App