Question: 1) Create a method minOfTwo(double a, double b) that returns the minimum of a and b. Then create a form with a button and THREE

1) Create a method minOfTwo(double a, double b) that returns the minimum of a and b. Then create a form with a button and THREE text boxes in which the user can enter three double numbers. When the button is pressed, a message box shows the minimum of the three numbers, by using the method. Hint: In the button click event you need to have two function calls to the minOfTwo

2) Create a method named ConvertToWeekday that expects an integer between 1 and 7 and returns the weekday name. For example, 1 > Sunday, 2 > Monday, etc. Use the method: create a form with a button and a textbox, in which the user can enter a number; after the user presses a button a label displays the corresponding weekday

Visual Studio C# Windows Form

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!