Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions