Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4) Create an application that when the user clicks a button, call a sub procedure to input a student name, size and quantity of

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. se 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 InputshirtInfo (name, size, qty) price Calc Price (size, qty) OutputorderInfo (name, price) Your input and output should look like this: Orders Student Name: Size Quantity Problem 4 Bill Smith Medium X-Large Quit The student BILL SMITH owes $36.00.

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

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

Public Class Form1 Public Sub problem4ClickByVal sender As SystemObject ByVal e As SystemEventArgs H... 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

Programming With Microsoft Visual Basic 2017

Authors: Diane Zak

8th Edition

1337102121, 9781337517058, 978-1337102124

More Books

Students also viewed these Programming questions