Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
AnswerRe: Rookie needs help with array Pin
OriginalGriff27-Oct-18 6:12
mveOriginalGriff27-Oct-18 6:12 
GeneralRe: Rookie needs help with array Pin
Member 1398787028-Oct-18 12:39
Member 1398787028-Oct-18 12:39 
GeneralRe: Rookie needs help with array Pin
OriginalGriff28-Oct-18 20:58
mveOriginalGriff28-Oct-18 20:58 
Question[Solved]How i deserialize a specific JSON with Newtonsoft Pin
Kapparina26-Oct-18 13:35
Kapparina26-Oct-18 13:35 
AnswerRe: How i deserialize a specific JSON with Newtonsoft Pin
josda100026-Oct-18 17:45
josda100026-Oct-18 17:45 
GeneralRe:How i deserialize a specific JSON with Newtonsoft Pin
Kapparina26-Oct-18 18:11
Kapparina26-Oct-18 18:11 
GeneralRe:How i deserialize a specific JSON with Newtonsoft Pin
josda100029-Oct-18 6:10
josda100029-Oct-18 6:10 
QuestionHow do i do this assignment???? Pin
C#NoobHelpMe25-Oct-18 16:49
C#NoobHelpMe25-Oct-18 16:49 
Complete Programming Problem #1, Distance Calculator, on page 337 of the textbook.
(using the "starting out with Visual C#" 4th edition Author tony Gaddis, and using visual studios 2015)
The ADDITIONAL REQUIREMENTS described below MUST also be implemented:

Assume the value of Vehicle Speed in MPH may store whole or floating-point numbers (non-monetary).
Assume the value of Hours Traveled can only store whole numbers.
Prevent data conversion exception for the Vehicle Speed in MPH text box by using the appropriate TryParse method. If the data entered is invalid display an appropriate error message to the user, set the focus back to the text box causing the error, and either clear the text box or select all the data entered into it so that it can be replaced.
Validate the input for the Vehicle Speed in MPH to make sure the data entered is greater than zero and does not exceed 180. If not, display an appropriate error message to the user, set the focus back to the text box causing the error, and either clear the text box or select all the data entered into it so that it can be replaced.
Prevent data conversion exception for the Hours Traveled text box by using the appropriate TryParse method. If the data entered is invalid display an appropriate error message to the user, set the focus back to the text box causing the error, and either clear the text box or select all the data entered into it so that it can be replaced.
Validate the input for Hours Traveled to make sure the data entered is greater than zero and not more than 50. If not, display an appropriate error message to the user, set the focus back to the text box causing the error, and either clear the text box or select all the data entered into it so that it can be replaced.
Implement the following fields:
Total Distance which accumulates the distance for each entry (i.e., as shown in the ListBox control)
Total Hours Traveled which accumulates the hours traveled for each entry (i.e., as entered in the Hours Traveled TextBox control)
Total Trips which counts each entry (i.e., incremented each time the user clicks the Calculate Button control)
Display appropriate output to the ListBox control as shown in the sample input-output document attached.
Display Total Distance as a number with two-decimal places.
Display Total Hours Traveled and Total Trips as a number with no decimal places.
Calculate and display the Average Distance which is the Total Distance divided by the Total Trips (recall, average distance is not an accumulator or counter) formatted as a number with two-decimal places.
The program MUST include standard features of a Windows application including:

Change the default Text property of the form to something descriptive
Appropriate naming conventions for all controls (i.e., buttons, labels, text boxes, list). The standard naming convention is descriptive name including control type using camelCase notation. For example: hoursTraveledTextBox, distanceListBox, totalHoursTraveledLabel, exitButton. The exception is controls not referenced in the code-behind of Form1. For example, Label controls used for descriptive purposes only or PictureBox controls used for aesthetic purposes only.
Calculate, Clear, and Exit buttons with appropriate name and keyboard access key
AcceptButton and CancelButton properties should be appropriately assigned to the Calculate button and Clear button, respectively
Ensure tab order for form is logical
When Clear button is clicked the controls outside of the Summary GroupBox control should be cleared (i.e. using the Clear method or assigning an empty string) and the focus set back to the first TextBox control for entering data. The controls inside the Summary GroupBox control should NOT be cleared (i.e., using the Clear method or assigning an empty string). Do NOT reset the values of the fields to zero.
Appropriate naming conventions and data type declarations for variables and fields.
Remove all unused event handlers from the program code.

AnswerRe: How do i do this assignment???? Pin
OriginalGriff25-Oct-18 19:29
mveOriginalGriff25-Oct-18 19:29 
AnswerRe: How do i do this assignment???? Pin
Richard MacCutchan25-Oct-18 21:23
mveRichard MacCutchan25-Oct-18 21:23 
JokeRe: How do i do this assignment???? Pin
Peter_in_278025-Oct-18 21:50
professionalPeter_in_278025-Oct-18 21:50 
GeneralRe: How do i do this assignment???? Pin
Richard MacCutchan25-Oct-18 21:52
mveRichard MacCutchan25-Oct-18 21:52 
GeneralRe: How do i do this assignment???? Pin
OriginalGriff26-Oct-18 0:47
mveOriginalGriff26-Oct-18 0:47 
AnswerRe: How do i do this assignment???? Pin
Pete O'Hanlon26-Oct-18 1:40
mvePete O'Hanlon26-Oct-18 1:40 
GeneralRe: How do i do this assignment???? Pin
Eddy Vluggen26-Oct-18 8:33
professionalEddy Vluggen26-Oct-18 8:33 
QuestionBackground worker release resources Pin
udi altman24-Oct-18 8:00
udi altman24-Oct-18 8:00 
AnswerRe: Background worker release resources Pin
OriginalGriff24-Oct-18 20:01
mveOriginalGriff24-Oct-18 20:01 
AnswerRe: Background worker release resources Pin
Eddy Vluggen25-Oct-18 0:45
professionalEddy Vluggen25-Oct-18 0:45 
QuestionDataGridView with scrollbar is flickering Pin
Shine Ashraf23-Oct-18 23:40
Shine Ashraf23-Oct-18 23:40 
AnswerRe: DataGridView with scrollbar is flickering Pin
Eddy Vluggen23-Oct-18 23:48
professionalEddy Vluggen23-Oct-18 23:48 
GeneralRe: DataGridView with scrollbar is flickering Pin
Shine Ashraf24-Oct-18 0:03
Shine Ashraf24-Oct-18 0:03 
GeneralRe: DataGridView with scrollbar is flickering Pin
Eddy Vluggen24-Oct-18 0:07
professionalEddy Vluggen24-Oct-18 0:07 
AnswerRe: DataGridView with scrollbar is flickering Pin
OriginalGriff23-Oct-18 23:53
mveOriginalGriff23-Oct-18 23:53 
GeneralRe: DataGridView with scrollbar is flickering Pin
Shine Ashraf24-Oct-18 0:07
Shine Ashraf24-Oct-18 0:07 
QuestionHow to program credit card swipe in winform ? Pin
Member 245846723-Oct-18 21:18
Member 245846723-Oct-18 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.