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...
-
The following CVP income statements are available for Blanc Company and Noir Company. Instructions (a) Compute the break-even point in dollars and the margin of safety ratio (round to 3 places) for...
-
In a survey of 2000 people, it was found that 1320 have a microwave oven. Find the percent of people who own microwaves.
-
SWIGART v. BRUNO CALIFORNIA COURT OF APPEALS 13 CAL. APP. 5TH 529 2017 According to the American Endurance Ride Conference, endurance riding is a highly competitive and demanding sport. It is...
-
MKM International is seeking to purchase a new CNC machine in order to reduce costs. Two alternative machines are in consideration. Machine 1 costs $500,000, but yields a 15 percent savings over the...
-
Two transverse sinusoidal waves combining in a medium are described by the wave functions V = 5.00 sin[(x + 0.300t)] Y25.00 sin[(x -0.300)] where x, y, and y are in centimeters and t is in seconds....
-
You are the manager of the Mighty Fine mutual fund. The following table reflects the activity of the fund during the last quarter. The fund started the quarter on January 1 with a balance of $40...
-
Tent cards, brochures, and fliers are examples of ____________ materials. A) effective copy B) collateral C) supplemental D) distributive
-
What are the internal and external stressors you have experienced or continue to experience? What motivates you to enter your classroom every day? How will you influence the stakeholders in your...
-
There are 5 Sequential steps to Effective Self Leadership List and Describe the 5 Sequential Steps. Part 2 (6 Marks) Setting Goals and objectives are a critical Start. Write on Goal that you can...
-
What are the challenges of today's educational climate? What does your learning environment look like? Who are your learners? How will you evolve to become a teacher- leader in today's educational...
-
What are some effective marketing channels for reaching customers?
-
Differentiate between benign and malignant tumors? Which one is lethal and why?
-
4. Show graphically that the following ILP has no feasible solution, and then verify the result using B&B. subject to Maximize z = 2x + x 10x + 10x 9 10x + 5x2 1 x1, x20 and integer
-
An auto-parts manufacturer is considering establishing an engineering computing center. This center will be equipped with three engineering workstations each of which would cost $25,000 and have a...
-
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
-
Go to https://www.youtube.com/watch?v=Fp9m4GNwGng to view a brief video on the Brazilian Jet manufacturer Embraer and their use of Critical Chain Project Management for maintenance services. How has...
-
It is sometimes argued that state revenue generated by lotteries is different from tax revenue because people choose to buy lottery tickets. Compare three state revenue sources cigarette excise...
-
Suppose that the demand for personalized license plates and the marginal cost of production in a state is as shown in Figure 16.1. If all the profits go to the government and the state wants to...
Study smarter with the SolutionInn App