Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

File ToolsViw CSC139Chapter 5 Lab Assignment 2) SP2019 (1) Proterted Vicw Saved to this P PROTECTED VIEW Re carefi files frerm the Internet can contain

image text in transcribedimage text in transcribedimage text in transcribed

File ToolsViw CSC139Chapter 5 Lab Assignment 2) SP2019 (1) Proterted Vicw Saved to this P PROTECTED VIEW Re carefi files frerm the Internet can contain vinuses. UIniles ynu need to edit, it's safer to stay in Protected Vilew. Fnable Fditing CSC139 Chapter 5 Lab Assignment (2) Repetition Structure to display the cumulated distance the vehicle has traveled every hour in that time period Distance Cakoulto In this lab assignment, students will learn: How to use multiline textbox How to use &operator How to define counter controlled repetition statement Hour Disance In this lab assignment, students will demonstrate the abilities to -Use multiline textbox -Use & operator Define counter controlled repetition statement radin r each project: Create the form interface (20 pts) Define event handler methods (30 pts) Define repetition structures 1. Create a new windows form application, please be sure to select Visual 50 pts) Basic template in the New Projcct dialog box. In this lab assignment, you will create a DistanceCalculator windows form application which asks user to enter speed of a vehicle (in miles per hour) and the number of hours it has traveled. It should then use a loop Screens 1-2 of b +147% 1:37 PM O Type here to search File ToolsViw CSC139Chapter 5 Lab Assignment 2) SP2019 (1) Proterted Vicw Saved to this P PROTECTED VIEW Re carefi files frerm the Internet can contain vinuses. UIniles ynu need to edit, it's safer to stay in Protected Vilew. Fnable Fditing Speed 2. Add controls to the form and set the properties for each control. For the result text box, make it a multiline box by checking the MultiLine from the smart tag menu 3. Double click the Calculate button from the designer to create an event handler method, write code in the code view to perform the following tasks a. Read input speed and hours from the text boxes. b. Display the header of the output in the multiline text box using the code below: txtResult.Text vbNewLine "Hour" & vbTab & "Distance" & & -- concatenate string literals vbTab - represents a Tab space Screens 3-4 of b +147% 1:38 PM O Type here to search File ToolsViw CSC139Chapter 5 Lab Assignment 2) SP2019(1) Proterted Vicw Saved to this P PROTECTED VIEW Re carefi files frerm the Internet can contain vinuses. UIniles ynu need to edit, it's safer to stay in Protected Vilew. Fnable Fditing vbNewLine represent a new line Distance Calcu ator Speed 4. Use a For loop statement to calculate the distance for cach hour repeatedly and display each hour and the corresponding distance in the text box below the header. Follow the above code to format the hour and distance in two columns as shown below. You may use "&- to append each new line of result message: txtResult.Text 5. Double click the Exit button to create an event handler method to close Exct this form. 6. Save and test the application using the following testing data, results should be displayed with correct value and formats 7. Compress the whole project folder into a zip file (right-click the folder > Send to -Compressed (zipped) folder) and submit the .zip file to Black Board for credits End of documem Screens 5-o of b +147% 1:38 O Type here to search

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

Students also viewed these Databases questions

Question

7. List behaviors to improve effective leadership in meetings

Answered: 1 week ago

Question

6. Explain the six-step group decision process

Answered: 1 week ago