Question: Debugging Exercise 8-4 Tasks >_ Terminal * Program produces correct output JO DebugEight.cs 1 // Progran demonstrates overloaded methods 2 // that display an int,

Debugging Exercise 8-4 Tasks >_ Terminal * Program produces correct output JO DebugEight.cs 1 // Progran demonstrates overloaded methods 2 // that display an int, an amount of money, or a string 3 // decorated with an argument character 4 // or a default character 'X' 5 using System; using static System.Console; 7 using Systen. Globalization; class Debugzight4 Method FancyOusplay is overloaded to accept a double 30 Method Fancytoplay is overloaded to accept an int > Method Fankyousplay is overloaded to accept a string 10 11 12 13 14 Stalic void Main() { Fancyoisplay(); Fancyoisplay ( 14, "); Fancybisplay(55.55): FancyDisplay (77.77. ***): FancyDisplay("hello"): Fancoisplay("goodbye", "); 15 16 17 18 19 public static void FancyDisplay(int nur, char decoration - 'x') 28 21 22 23 24 25 26 27 28 20 se 31 32 33 34 35 WriteLine("}}2} {1} (@}12} ", decoration, nun); 1 public static void Fancy Disply(double num, chiar decoration - 'X") { WriteLine("{0}0} {OHOXon", decoration, nun.ToString("c", Culture Info.GetCultureTnfo (en-US")); 1 public static void FancyDisplay (word, char decoration - 'X) { WriteLine("{@}}) (1) (1) (@}n". decoration, word): 30 Run Checks Submit 09
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
