Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images
Knowledge Booster
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
- When the contents of a text box change, the text box’s event occurs.a. ChangedTextb. ModifiedTextc. TextModifiedd. TextChangedarrow_forwarduse any language GUI The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box: Be sure to add the image as a local resource. Set the Size property to 100, 50 Click the Size Mode list arrow, then click StretchImage in the list. For the Labels: One label will have your name as the programmer – see bottom left corner of the windows above. The other label will be used to display the name of the capital city. When a country button is clicked assign the name of the city into this label.arrow_forwardAndroid Studio with Javaarrow_forward
- The look of a button changes when an access key is assigned to it.arrow_forwardMany controls have characteristics that influence whether or not they are shown on a form during runtime.arrow_forwardThe control's visibility on the form is determined by its attribute, which is found in the majority of controls at run time.arrow_forward
- The appearance of most controls on the form while the application is running is determined by an attribute.arrow_forwardInitial values are assigned to the text attributes of Label controls such that those values correspond to the name of the Label control. This value is assigned during the process of the control's initial construction.arrow_forwardA control's property governs whether or not it is shown on the form during runtime, much like with other controls.arrow_forward
- Initial values that correspond to the name of the Label control are assigned to the text attributes of Label controls. This value is set when the control is originally constructed.arrow_forwardWhen a form has been modifi ed since the last time it was saved, whatappears on its tab in the designer window?arrow_forwardAs with other controls, a control's properties may determine whether it appears on the form during execution.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education