Question
In questions given below, determine the output produced by the lines of code using Visual Basic where Courier New is the font setting for the
In questions given below, determine the output produced by the lines of code using Visual Basic where Courier New is the font setting for the list box.
53. Dim fmtStr As String = "(0,-13}(1,-10}(2,-7:N0}" IstOutput.Items.Add("123456789012345678901234567890") IstOutput.Items.Add(String.Format(fmtStr, "Mountain", "Place", "Ht (ft)")) IstOutput.Items.Add(String.Format(fmtStr, "K2", "Kashmir", 28250))
54. Dim fmtStr As String = "{0,11} {1,-11}" 'Three spaces IstOutput.Items.Acid("12345678901234567890") IstOutput.Items.Add(String.Format(fmtStr, "College", "Mascot")) IstOutput.Items.Add(String.Format(fmtStr, "Univ. of MD", "Terrapins")) IstOutput.Items.Add(String.Format(fmtStr, "Duke", "Blue Devils"))
55. 'Elements in a 150 Pound Person Dim fmtStr As String = "{0,-7} {1,-7:N1} {2,-7:Pl}" 'Two spaces IstOutput.Items.Clear() IstOutput.Items.Add("12345678901234567890") IstOutput.Items.Add{String.Format(fmtStr, "Element", "Weight", "Percent")) IstOutput.Items.Add(String.Format(fmtStr, "Oxygen", 97.5, 97.5 / 150)) IstOutput.Items.Add(String.Format(fmtStr, "Carbon", 27, 27 / 150))
56. Dim fmtStr As String = "{0,10} {1,-10:CO}" 'Three spaces IstOutput.Items.Clear() IstOutput.Items.Add("12345678901234567890") IstOutput.Items.Add(String.Format(fmtStr, "Tuition")) IstOutput.Items.Add(String.Format(fmtStr, "College", "& Fees")) IstOutput.Items.Add(String.Format(fmtStr, "Stanford", 46300)) IstOutput.Items.Add(String.Format(fmtStr, "Harvard", 45278))
I want answers with outputs for all the four parts.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started