Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is Visual Basics Programming In this assignment you create a program to convert feet and inches to meter. The conversion is done with a

This is Visual Basics Programming

In this assignment you create a program to convert feet and inches to meter. The conversion is done with a function you write in the program and then call it.

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-Assignment4. Save this project in VB folder you created earlier.
  2. Change forms title to: Your full name Assignment 4 - 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)
  • Inches (Single)

- Output variables:

  • Meters (Single)
  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.
  14. To save the project, from File, select Save All.

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

Database And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

3031143426, 978-3031143427

More Books

Students also viewed these Databases questions

Question

e. Compute R2 and .

Answered: 1 week ago