You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an application named Multiplication whose Main() method asks the user to input an integer and then calls a method named DisplayMultiplicationTable(), which displays the results of multiplying the integer by each of the numbers 2 through 10. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by …
Create a program for The Cactus Cantina named FoodOrder that accepts a user’s choice from the options in the accompanying table. Allow the user to enter either an integer item number or a string description. Pass the user’s entry to one of two overloaded GetDetails() methods, and then display a returned string with all the order details. The met…
The Saffir-Simpson Hurricane Scale classifies hurricanes into five categories numbered 1 through 5. Write an application named Hurricane that outputs a hurricane’s category based on the user’s input of the wind speed. Category 5 hurricanes have sustained winds of at least 157 miles per hour. The minimum sustained wind speeds for categories 4 thr…
Create a program named TestFileAndDirectory that allows a user to continually enter directory names until the user types end. If the directory name exists, display a list of the files in it; otherwise, display a message indicating the directory does not exist. If the directory exists and files are listed, prompt the user to enter one of the file…
Write, compile, and test a program named Lyrics that displays at least four lines of your favorite song. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page 44, Exercise 5.
The Chat-A-While phone company provides service to six area codes and charges the per-minute rates for phone calls shown in Figure 6-25. Write a program named ChatAWhile that stores the area codes and rates in parallel arrays and allows a user to enter an area code and the length of time for a call in minutes, and then display the total cost of …
Write a program named SubscriptExceptionTest in which you declare an array of 20 doubles and store values in the array. Write a try block in which you place a loop that prompts the user for a subscript value and displays the value stored in the corresponding array position. Create a catch block that catches any IndexOutOfRangeException and displ…
In a “You Do It” section of this chapter, you created a tipping table for patrons to use when analyzing their restaurant bills. Now, create a modified program named TippingTable3 in which each of the following values is obtained from user input: - The lowest tipping percentage - The highest tipping percentage - The lowest possible restaurant bil…
Create an application named TestHockeyPlayer that instantiates and displays a HockeyPlayer object. The HockeyPlayer class contains fields for a player’s name (a string), jersey number (an integer), and goals scored (an integer). Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page…
Create a project named RecentlyVisitedSites that contains a Form with a list of three LinkLabels that link to any three Web sites you choose. When a user clicks a LinkLabel, link to that site. When a user’s mouse hovers over a LinkLabel, display a brief message that explains the site’s purpose. After a user clicks a link, move the most recently …
Create a project named FiveColors2. Its Form contains at least five RadioButton objects, each labeled with a color. When the user clicks a RadioButton, change the BackColor of the Form appropriately. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page 603, Exercise 3.
Write a GUI program named MilesToKilometersGUI that allows the user to input a distance in miles and output the value in kilometers. There are 1.6 kilometers in a mile. Taken from Microsoft Visual C# 2015: An Introduction to Object-Oriented Programming 6th Edition by Joyce Farrell. Page 134, Exercise 1.