Input data: Feet: User enters a number for feet   Period: User enters a number for inches Instructions: Create a new project and name it as yourlastname-firstname-Assignment5. Save this project in VB folder you created earlier. Change form’s title to: Your full name – Assignment 5 - Conversion. Form contains four Labels, two TextBoxes, and three Button controls.  Use labels to identify Feet, Inches and Meters. See below Form Layout with Controls for more details. Note: You will use the same control Names shown below. - Input variables: Feet (Single)  - TextBox,    txtFeet Inches (Single)  - TextBox,    txtInches - Output variables:  Meters (Single)   -Label,  lblMeters To convert feet and inches to meters, use this formula: (feet * 12 + inches) * 0.0254. 0.0254 is a constant value to convert English system to Metric. Make sure to declare a Constant for this literal number. You construct a Function for this conversion. It will be placed after End Sub for btnConvert_Click. Start the Function code with typing Function keyword, followed by the function name, followed by parameters, followed by function type. This Function has two parameters; feet and inches. See below for suggested program's infrastructure. Items to note:. Variables names must follow the conventions and rules explained earlier and must have proper data type for the values that will be stored in them. Appearance of the form is very important; Make sure that your design is clean;  Spelling is important. Clear button, clears TextBoxes and Label control that displays Meters.  Exit button, closes the Form. You will write the code for the three buttons.  Avoid double-clicking on TextBox and Label Controls to create unnecessary code. If you do, please delete them. Run the program, enter values for Feet and Inches, then click Convert button, to see the Meters equivalent displays in the Label control. See example for the complete program below. Note: If you leave TextBoxes blank when program is running, your program would crash. Avoid testing with blank TextBoxes. We will learn how to solve this problem.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Input data:

  • Feet: User enters a number for feet  
  • Period: User enters a number for inches

Instructions:

  1. Create a new project and name it as yourlastname-firstname-Assignment5. Save this project in VB folder you created earlier.
  2. Change form’s title to: Your full name – Assignment 5 - Conversion.
  3. Form contains four Labels, two TextBoxes, and three Button controls
  4. Use labels to identify Feet, Inches and Meters. See below Form Layout with Controls for more details. Note: You will use the same control Names shown below.

- Input variables:

  • Feet (Single)  - TextBox,    txtFeet
  • Inches (Single)  - TextBox,    txtInches

Output variables: 

  • Meters (Single)   -Label,  lblMeters
  1. To convert feet and inches to meters, use this formula: (feet * 12 + inches) * 0.0254. 0.0254 is a constant value to convert English system to Metric. Make sure to declare a Constant for this literal number.
  2. You construct a Function for this conversion. It will be placed after End Sub for btnConvert_Click.
  3. Start the Function code with typing Function keyword, followed by the function name, followed by parameters, followed by function type.
  4. This Function has two parameters; feet and inches. See below for suggested program's infrastructure.
  5. Items to note:.
  6. Variables names must follow the conventions and rules explained earlier and must have proper data type for the values that will be stored in them.
  7. Appearance of the form is very important; Make sure that your design is clean;  Spelling is important.
  8. Clear button, clears TextBoxes and Label control that displays Meters. 
  9. Exit button, closes the Form.
  10. You will write the code for the three buttons. 
  11. Avoid double-clicking on TextBox and Label Controls to create unnecessary code. If you do, please delete them.
  12. Run the program, enter values for Feet and Inches, then click Convert button, to see the Meters equivalent displays in the Label control. See example for the complete program below.
  13. Note: If you leave TextBoxes blank when program is running, your program would crash. Avoid testing with blank TextBoxes. We will learn how to solve this problem.
Your Name - Assignment 5 - Conversion
Feet
Inches
Meters
Convert
Clear
Exit
Transcribed Image Text:Your Name - Assignment 5 - Conversion Feet Inches Meters Convert Clear Exit
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education