Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**Visual Basic** Paint Job Estimator Scenario A painting company has determined that for every 115 square feet of wall space, one gallon of paint and

**Visual Basic**

image text in transcribed

Paint Job Estimator Scenario A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor are required. The company charges $18.00 per hour for labor. They would like an application that allows the user to enter the number of rooms to be painted and the price of the paint per gallon. The application should use input boxes to ask the user for the square feet of wall space in each room. It should then display the following information The number of gallons of paint required The hours of labor required The cost of the paint The labor charges The total cost of the paint job Input validation: Do not accept a value less than 1 for the number of rooms. Do not accept a value less than $10.00 for the price of paint. Do not accept a negative value for the square footage of wall space Discussion This lesson focused on two types of procedures, the Sub procedure and the Function procedure. You also had some exposure to passing variables by value and passing variables by reference in the tutorial programs you coded 1.From the scenario above, select one task that needs to be completed 2. For the task you select, indicate whether you would you use a Function procedure or a Sub procedure a. Describe what the procedure should accomplish, and b. whether you would pass variables by value or by reference 3. Explain why you chose to use a Function or a Sub and why you chose to pass variables either ByRef or ByVal

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions