Question: create a Windows Forms App that will allow users to track the number of points they earned from a given exercise. The following information will
create a Windows Forms App that will allow users to track the number of points they earned from a given exercise.
The following information will need to be collected from the user:
Username: Take username as a string
Exercise Number: Take exercise ID number as int. Verify that the exercise number is between and inclusive
Exercise Difficulty: Difficulty of exercise completed. Use a combo box to store the different exercise difficulties see below Regarding the combo box control, here are some hints for you: Using a combo box will allow us to know the user has selected a valid exercise difficulty, if some value in the box is selected. Combo boxes can be found in the common controls section. To check for a selection, we check that the SelectedIndex property is or above like arrays, index here starts at zero An example is: if difficultyComboBoxSelectedIndex We can retrieve the users selected text through the Text property. The Items property controls what is in the box and is most easily set from the form designer since it will be static for this program
Exercise Duration: Time spent on exercise in minutes. Store as an int.
Actual Interview Question: Use radio buttons to determine if the exercise has appeared in actual interviews. Put radio button controls in a Groupbox container.
Regarding the radio button controls: Radio buttons can be found in the toolbox in common controls or by searching. Radio button objects have a Checked property that might be useful in assessing whether or not a radio button has been checked. Put the radio buttons in a Groupbox, which can be found in the containers section of the toolbox.
Use MessageBox.Show to indicate that if any of the Textboxes, Combo boxes, Radio buttons are left blank or the value entered in the Textbox for Exercise Number is out of range and to prompt the user to fill them out.
The following are the exercise difficulties along with their point values:
Exercise Difficulty
Point Value
Easy
Points
Medium
Points
Hard
Points
Very Hard
Points
For each minute the user spends on an exercise, there is a point penalty to their score. If the exercise has appeared in actual interviews, there is a bonus. Use a button to calculate the total score and then display the score using an output label.
Provide cs code and form designer code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
