Menu

[solved]-Vb Windows Forms App Net Framework Assignment Create Program Convert Feet Inches Meter Con Q39000818

VB Windows Forms App (.NET Framework)

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

Input data:

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

Instructions:

  1. Create a new project and name it asyourlastname-firstname-Assignment4. Save thisproject in VB folder you created earlier.
  2. Change form’s title to: Your full nameAssignment 4 – Conversion.
  3. Form contains four Labels, two TextBoxes, and threeButton controls.
  4. Use labels to identify Feet, Inches and Meters. See below FormLayout with Controls for more details. Note: Youwill 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 convertEnglish system to Metric. Make sure to declare a Constantfor this literal number.
  2. You construct a Function for this conversion. It will be placedafter End Sub for btnConvert_Click.
  3. Start the Function code with typing Functionkeyword, followed by the function name, followed by parameters,followed by function type.
  4. This Function has two parameters; feet and inches. See belowfor suggested program’s infrastructure.
  5. Items to note:.
  6. Variables names must follow the conventions and rules explainedearlier and must have proper data type for the values that will bestored in them.
  7. Appearance of the form is very important; Make sure that yourdesign is clean; Spelling is important.
  8. Clear button, clears TextBoxes and Labelcontrol 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 createunnecessary code. If you do, please delete them.
  12. Run the program, enter values for Feet and Inches, then clickConvert button, to see the Meters equivalentdisplays in the Label control. See example for the complete programbelow.
  13. Note: If you leave TextBoxes blank whenprogram is running, your program would crash. Avoid testing withblank TextBoxes. We will learn how to solve this problem.
  14. To save the project, from File, select Save All.
  15. Continue with SaveAll after making changes.
  16. Once project is complete, open File Explorer; open VB folderand you will see a folder named:yourlastname-firstname-Assignment4. This foldercontains a folder and a solution file with SLN extension. Both arenamed the same. Solution file (.SLN) and the folder containing VBnecessary files to run the project.
  17. To receive credit for this assignment, create a zip file namedYourlastname-firstname-Assignment4.ZIP. Submitthis ZIP file in Assignment 4. Only ONE file,please. See SubmittingAssignmentsPreview the document for creating azip file.

Here is a screenshot of Form layout with controls:

Assign4-1.png

Here is a screenshot of Form layout when program is running:

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

Input data:

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

Instructions:

  1. Create a new project and name it asyourlastname-firstname-Assignment4. Save thisproject in VB folder you created earlier.
  2. Change form’s title to: Your full nameAssignment 4 – Conversion.
  3. Form contains four Labels, two TextBoxes, and threeButton controls.
  4. Use labels to identify Feet, Inches and Meters. See below FormLayout with Controls for more details. Note: Youwill 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 convertEnglish system to Metric. Make sure to declare a Constantfor this literal number.
  2. You construct a Function for this conversion. It will be placedafter End Sub for btnConvert_Click.
  3. Start the Function code with typing Functionkeyword, followed by the function name, followed by parameters,followed by function type.
  4. This Function has two parameters; feet and inches. See belowfor suggested program’s infrastructure.
  5. Items to note:.
  6. Variables names must follow the conventions and rules explainedearlier and must have proper data type for the values that will bestored in them.
  7. Appearance of the form is very important; Make sure that yourdesign is clean; Spelling is important.
  8. Clear button, clears TextBoxes and Labelcontrol 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 createunnecessary code. If you do, please delete them.
  12. Run the program, enter values for Feet and Inches, then clickConvert button, to see the Meters equivalentdisplays in the Label control. See example for the complete programbelow.
  13. Note: If you leave TextBoxes blank whenprogram is running, your program would crash. Avoid testing withblank TextBoxes. We will learn how to solve this problem.
  14. To save the project, from File, select Save All.
  15. Continue with SaveAll after making changes.
  16. Once project is complete, open File Explorer; open VB folderand you will see a folder named:yourlastname-firstname-Assignment4. This foldercontains a folder and a solution file with SLN extension. Both arenamed the same. Solution file (.SLN) and the folder containing VBnecessary files to run the project.
  17. To receive credit for this assignment, create a zip file namedYourlastname-firstname-Assignment4.ZIP. Submitthis ZIP file in Assignment 4. Only ONE file,please. See SubmittingAssignmentsPreview the document for creating azip file.

Here is a screenshot of Form layout with controls:

Assign4-1.png

Here is a screenshot of Form layout when program is running:

Assign4-2.png

We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this imageShow transcribed image text

Expert Answer


Answer to VB Windows Forms App (.NET Framework) In this assignment you create a program to convert feet and inches to meter. The c… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *